/* squint — Fomo-style dark UI in BNB gold */
:root {
  --bg: #0b0e11;
  --bg-2: #0f1216;
  --card: #181a20;
  --surface: #1e2329;
  --surface-2: #2b3139;
  --line: #2b3139;
  --text: #eaecef;
  --muted: #848e9c;
  --muted-2: #5e6673;
  --gold: #f0b90b;
  --gold-2: #fcd535;
  --gold-soft: rgba(240, 185, 11, 0.12);
  --green: #0ecb81;
  --red: #f6465d;
  --primary: var(--gold);
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.5; min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
img { max-width: 100%; }
::selection { background: var(--gold); color: #000; }

.glow { position: fixed; pointer-events: none; z-index: 0; border-radius: 50%; opacity: .5; }
.glow-a { width: 60vw; height: 60vw; top: -30vw; right: -20vw; background: radial-gradient(circle, rgba(240,185,11,.28), transparent 62%); }
.glow-b { width: 50vw; height: 50vw; bottom: -25vw; left: -15vw; background: radial-gradient(circle, rgba(240,185,11,.14), transparent 62%); }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(11,14,17,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.4px; }
.brand-accent { color: var(--gold); }
.mark { width: 34px; height: 34px; border-radius: 9px; }
.chain-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240,185,11,.3); padding: 4px 10px; border-radius: 999px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(14,203,129,.7); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); background: var(--surface); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; white-space: nowrap; transition: transform .08s, filter .15s, background .15s; }
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-color: transparent; color: #0b0e11; box-shadow: 0 6px 22px rgba(240,185,11,.28); }
.btn-ghost { background: transparent; }
.btn-mono { font-family: var(--mono); font-size: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.wide { width: 100%; }
.hide-sm { display: none; }
@media (min-width: 640px) { .hide-sm { display: inline-flex; } }

main { position: relative; z-index: 1; min-height: calc(100dvh - 140px); }
.hero { position: relative; text-align: center; padding: 72px 20px 40px; }
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero .marquee { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240,185,11,.3); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; letter-spacing: .02em; }
.hero-logo { width: clamp(84px, 13vw, 128px); height: auto; margin: 0 auto 14px; display: block; border-radius: 26px; box-shadow: 0 12px 40px rgba(240,185,11,.25); }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(40px, 8vw, 80px); letter-spacing: -.03em; line-height: 1.02; margin: 0; }
.hero h1 .gold { color: var(--gold); }
.hero p.sub { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 16px auto 0; text-wrap: balance; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 40px auto 0; max-width: 720px; padding: 0 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 12px; text-align: center; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 4vw, 34px); color: var(--gold); }
.stat .l { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 6px; }

.section { padding: 28px 20px; max-width: 1100px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.section-head .hint { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }

.card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; transition: transform .12s, border-color .12s, box-shadow .12s; }
.card:hover { border-color: rgba(240,185,11,.5); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.card-top { display: flex; gap: 12px; align-items: center; }
.avatar { width: 54px; height: 54px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); flex-shrink: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 16px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.ticker { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.mcap { margin-left: auto; text-align: right; }
.mcap .v { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--gold); }
.mcap .l { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.bar { height: 8px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-top: 14px; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .4s ease; }
.bar.done > i { background: linear-gradient(90deg, var(--green), #6ee7b7); }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid; }
.pill.blinking { color: var(--gold); border-color: rgba(240,185,11,.4); background: var(--gold-soft); }
.pill.blinking .dot { background: var(--gold); box-shadow: 0 0 8px rgba(240,185,11,.8); animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240,185,11,.6); } 75%, 100% { box-shadow: 0 0 0 6px rgba(240,185,11,0); } }
.pill.open { color: var(--green); border-color: rgba(14,203,129,.4); background: rgba(14,203,129,.1); }
.pill.open .dot { background: var(--green); }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; border: 1px dashed var(--line); border-radius: 18px; }

.token { max-width: 860px; margin: 0 auto; padding: 24px 20px; }
.token-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.token-head .avatar { width: 88px; height: 88px; border-radius: 22px; font-size: 26px; }
.token-head h1 { font-family: var(--display); font-size: 32px; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.token-head .ticker { font-size: 14px; margin-top: 6px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.links a { font-size: 12px; font-weight: 600; color: var(--gold); padding: 5px 11px; border: 1px solid rgba(240,185,11,.3); border-radius: 999px; background: var(--gold-soft); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; margin-top: 16px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.kv .k { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.kv .v { font-family: var(--display); font-weight: 700; font-size: 18px; margin-top: 4px; color: var(--gold); word-break: break-word; }
.kv .v.small { font-family: var(--mono); font-size: 13px; color: var(--text); font-weight: 500; }
.bio { color: var(--muted); margin-top: 12px; white-space: pre-wrap; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.blink-box { border-color: rgba(240,185,11,.45); background: linear-gradient(180deg, rgba(240,185,11,.14), rgba(240,185,11,.03)); }
.blink-box h3 { margin: 0 0 8px; font-family: var(--display); font-size: 18px; color: var(--gold); }
.blink-box p { margin: 0; color: var(--muted); font-size: 14px; }
.panel h3.free { margin: 0 0 8px; font-family: var(--display); font-size: 18px; color: var(--green); }
.ca { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-top: 10px; word-break: break-all; flex-wrap: wrap; }
.ca button { padding: 4px 10px; font-size: 11px; border-radius: 8px; }
.timeline { font-size: 13px; color: var(--muted); margin-top: 8px; }

.form { max-width: 580px; margin: 0 auto; padding: 24px 20px; }
.form h1 { font-family: var(--display); font-size: 30px; letter-spacing: -.02em; margin: 0 0 8px; }
.form .lead { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.field input, .field textarea, .field select { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; color: var(--text); outline: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,185,11,.2); }
.field small { color: var(--muted-2); font-size: 12px; }
.field.fomo { border: 1px solid rgba(240,185,11,.35); background: var(--gold-soft); border-radius: 14px; padding: 12px; }
.field.fomo label { color: var(--gold); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.summary b { color: var(--text); }
.result { margin-top: 16px; }
.pfp-preview { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; }
.pfp-preview img { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--gold); }
.pfp-preview span { font-size: 13px; color: var(--muted); flex: 1; }
.field input[type=file] { padding: 8px; font-size: 13px; color: var(--muted); }
.field input[type=file]::file-selector-button { font: inherit; font-weight: 700; font-size: 12px; background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(240,185,11,.3); padding: 6px 12px; border-radius: 8px; margin-right: 10px; cursor: pointer; }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--line); padding: 18px 20px 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: flex-end; background: var(--bg-2); }
.foot-text { font-size: 11.5px; line-height: 1.5; color: var(--muted-2); max-width: 720px; }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--muted); }
.foot-links a:hover { color: var(--gold); }

.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(11,14,17,.85); backdrop-filter: blur(6px); animation: fade-in .2s ease; }
@media (min-width: 640px) { .modal { align-items: center; padding: 16px; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.modal-card { width: 100%; max-width: 480px; background: var(--card); border: 1px solid var(--line); border-radius: 22px 22px 0 0; padding: 24px; animation: slide-up .3s ease; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
@media (min-width: 640px) { .modal-card { border-radius: 22px; } }
.modal-pill { display: inline-flex; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240,185,11,.3); }
.modal-card h2 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 14px 0 14px; line-height: 1.25; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 14px; padding-bottom: 16px; }
.steps li:last-child { padding-bottom: 0; }
.steps .n { display: inline-flex; width: 28px; height: 28px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 9px; background: var(--gold); color: #0b0e11; font-weight: 800; font-size: 13px; }
.steps b { font-size: 14.5px; }
.steps p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; background: var(--surface); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; max-width: min(92vw, 520px); box-shadow: 0 10px 30px rgba(0,0,0,.5); animation: slide-up .25s ease; }
.toast.err { border-color: var(--red); }
.skeleton { height: 110px; border-radius: 18px; background: linear-gradient(90deg, var(--card), var(--surface), var(--card)); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
[hidden] { display: none !important; }


/* home widgets */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.widget { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; min-height: 180px; }
.w-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.w-head h3 { margin: 0; font-family: var(--display); font-size: 16px; font-weight: 700; }
.w-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); background: var(--gold-soft); border: 1px solid rgba(240,185,11,.3); padding: 3px 8px; border-radius: 999px; }
.w-note { font-size: 12px; color: var(--muted-2); margin: 10px 0 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-grid .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat-grid .v { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--gold); margin-top: 2px; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feed li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; background: var(--surface); border-radius: 10px; }
.feed .who { color: var(--muted); }
.feed .who a { color: var(--text); font-family: var(--mono); font-size: 12px; }
.feed .what a { color: var(--gold); font-weight: 700; }
.feed .amt { margin-left: auto; font-weight: 700; color: var(--green); }
.lb { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.lb li { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 7px 10px; background: var(--surface); border-radius: 10px; }
.lb .rank { width: 20px; font-weight: 800; color: var(--gold); font-family: var(--display); }
.lb .pfp { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); object-fit: cover; flex-shrink: 0; }
.lb .handle { font-weight: 600; }
.lb .pnl { margin-left: auto; font-weight: 700; color: var(--green); font-family: var(--mono); font-size: 12.5px; }
.lb .pnl.neg { color: var(--red); }

/* meme characters peeking in from the screen edges (home only) */
#peek { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.peek-char { position: absolute; width: var(--w); height: auto; filter: drop-shadow(0 10px 26px rgba(0,0,0,.6)); opacity: .97; animation: peek var(--dur) ease-in-out var(--delay) infinite; transform-origin: center; }
/* soft fade along the image's cropped (bottom) edge so no hard cut is visible */
.peek-char { -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
/* rotated 90°: the faded bottom edge ends up against the screen edge */
.peek-char.from-left { transform: rotate(calc(90deg + var(--jit))) translateY(6%); }
.peek-char.from-right { transform: rotate(calc(-90deg + var(--jit))) translateY(6%); }
.peek-char.from-bottom { transform: rotate(var(--jit)); }
/* Doge stays upright on the right, just tucked in */
.peek-char.doge { transform: rotate(var(--jit)); -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
@keyframes peek { 0%, 100% { margin-top: 0; } 50% { margin-top: -10px; } }
@media (max-width: 900px) { .peek-char { --w: 100px !important; opacity: .6; } .peek-char.doge, .peek-char.wojak, .peek-char.broccoli, .peek-char.coin { display: none; } }
@media (prefers-reduced-motion: reduce) { .peek-char { animation: none; } }

/* fee recipient on cards / token page */
.card-fees { margin-top: 8px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.card-fees .l { color: var(--muted-2); }
.fee-to { color: var(--gold); font-weight: 600; cursor: pointer; }
.fee-to:hover { text-decoration: underline; }
.fee-to.plain { color: var(--text); font-family: var(--mono); font-weight: 500; cursor: default; }
.fee-link { color: var(--gold); font-weight: 600; font-family: inherit; }
.field.fomo label + input + small + label { display: block; }

/* X link in the nav */
.nav .x-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; color: var(--text); }
.nav .x-btn:hover { color: var(--gold); }

.fomo-pfp { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; margin-right: 6px; border: 1px solid rgba(240,185,11,.4); }
.kv .v .fomo-pfp { width: 22px; height: 22px; }

.nav .fomo-btn { color: var(--gold); }
.nav .fomo-btn:hover { color: var(--text); }
