/* ============ buythetop.lol ============ */
:root{
  --bg:#07070c;
  --bg2:#0c0c14;
  --panel:#101018;
  --line:#1d1d2a;
  --text:#f2f2f5;
  --dim:#9a9aac;
  --gold:#ffd24a;
  --gold2:#ffb300;
  --green:#00ff88;
  --red:#ff3b5c;
  --fire:#ff7a1a;
  --font-display:'Archivo Black',sans-serif;
  --font-ui:'Space Grotesk',sans-serif;
  --font-mono:'JetBrains Mono',monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  background:var(--bg);color:var(--text);
  font-family:var(--font-ui);
  overflow-x:hidden;
  min-height:100vh;
}
a{color:inherit}
b{font-weight:700}
.gold{color:var(--gold)}
.fire{color:var(--fire)}
.hidden{display:none!important}

/* ---------- cinematic background ---------- */
#chartbg{
  position:fixed;inset:0;width:100vw;height:100vh;z-index:-2;
  opacity:.55;
}
.vignette{
  position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(ellipse 90% 60% at 50% 10%,transparent 30%,rgba(7,7,12,.85) 100%),
    linear-gradient(180deg,rgba(7,7,12,.25) 0%,rgba(7,7,12,.92) 78%,var(--bg) 100%);
}

/* ---------- takeover bar ---------- */
.takeover-bar{
  position:sticky;top:0;z-index:60;
  background:linear-gradient(90deg,#3a2a00,#7a5200 30%,#3a2a00);
  border-bottom:1px solid var(--gold2);
  animation:takeoverPulse 2.2s ease-in-out infinite;
}
@keyframes takeoverPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.35)}}
.takeover-inner{
  max-width:1100px;margin:0 auto;padding:.6rem 1rem;
  display:flex;align-items:center;gap:.8rem;justify-content:center;
  font-size:.95rem;color:#ffe9b0
}
.takeover-count{font-family:var(--font-mono);font-weight:800;color:var(--gold)}

/* ---------- nav ---------- */
.nav{
  position:sticky;top:0;z-index:50;
  display:flex;justify-content:space-between;align-items:center;
  padding:1rem 1.4rem;
  background:rgba(7,7,12,.6);backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.05);
}
.logo{font-family:var(--font-display);font-size:1.05rem;text-decoration:none;letter-spacing:.02em}
.logo-flag{color:var(--gold)}
.logo-lol{color:var(--dim);font-family:var(--font-ui);font-weight:400}
.nav nav{display:flex;gap:1.4rem;align-items:center}
.nav nav a{color:var(--dim);text-decoration:none;font-size:.95rem;transition:color .2s}
.nav nav a:hover{color:var(--gold)}
.nav-x{font-size:1.1rem}

/* ---------- token bar ---------- */
.token-bar{
  display:flex;align-items:center;justify-content:center;gap:1.6rem;flex-wrap:wrap;
  padding:.65rem 1.2rem;
  background:linear-gradient(90deg,rgba(255,210,74,.05),rgba(255,210,74,.12) 50%,rgba(255,210,74,.05));
  border-bottom:1px solid rgba(255,210,74,.25);
  font-size:.88rem;
}
.tb-left{display:flex;align-items:center;gap:.6rem}
.tb-coin{
  font-family:var(--font-display);color:#1a1200;font-size:.85rem;
  background:linear-gradient(180deg,#ffe082,var(--gold2));border-radius:999px;padding:.22rem .7rem;
  box-shadow:0 0 18px rgba(255,179,0,.35);
}
.tb-info{color:var(--dim)}
.tb-info b{color:var(--text)}
.tb-ca{
  display:flex;align-items:center;gap:.5rem;
  background:rgba(7,7,12,.55);border:1px solid var(--line);border-radius:10px;padding:.35rem .7rem;
  max-width:100%;
}
.tb-ca-label{color:var(--dim);font-size:.72rem;letter-spacing:.12em}
.tb-ca code{
  font-family:var(--font-mono);font-size:.82rem;color:var(--gold);white-space:nowrap;
}
.tb-ca code.soon{color:var(--dim);font-family:var(--font-ui);white-space:normal}
.tb-copy{
  background:none;border:1px solid rgba(255,210,74,.4);color:var(--gold);border-radius:6px;
  padding:.18rem .55rem;cursor:pointer;font-size:.72rem;font-weight:700;
}
.tb-copy:hover{background:rgba(255,210,74,.12)}
.tb-copy:disabled{opacity:.35;cursor:default}
.tb-link{color:var(--gold);text-decoration:none;font-weight:700;font-size:.82rem;white-space:nowrap}
.tb-link:hover{text-decoration:underline}
.tb-tweet{color:var(--dim)}
.tb-tweet b{color:var(--gold)}
.tb-tweet a{color:var(--text);text-decoration:none;font-weight:700}
.tb-tweet a:hover{color:var(--gold)}
@media(max-width:820px){
  .token-bar{
    flex-direction:column;gap:.55rem;padding:.75rem 1rem .85rem;text-align:center;
  }
  .tb-left{justify-content:center}
  .tb-ca{
    width:100%;max-width:420px;justify-content:center;
    padding:.55rem .8rem;border-color:rgba(255,210,74,.3);
  }
  .tb-ca code{font-size:.88rem}
  .tb-ca code.soon{font-size:.8rem}
  .tb-copy{padding:.35rem .8rem;font-size:.78rem}
}
@media(max-width:600px){
  .tb-tweet{display:none} /* covered in How It Works; keeps the bar tight on phones */
  .tb-info{font-size:.82rem}
}

/* ---------- storm bar ---------- */
.storm-bar{
  text-align:center;padding:.6rem 1rem;font-size:.92rem;color:#e8f6ff;
  background:linear-gradient(90deg,#02222e,#054a63 30%,#02222e);
  border-bottom:1px solid #0aa3d1;
  animation:takeoverPulse 1.6s ease-in-out infinite;
}
.storm-bar b{color:#7fe3ff}
.tk-like{font-family:var(--font-mono);font-weight:800;color:#7fe3ff}

/* ---------- owner strip (the billboard) ---------- */
.owner-strip{
  display:inline-flex;align-items:center;gap:.55rem;flex-wrap:wrap;justify-content:center;
  font-family:var(--font-mono);font-size:.92rem;letter-spacing:.08em;color:var(--dim);
  border:1px solid rgba(255,210,74,.4);border-radius:999px;
  background:rgba(255,210,74,.06);
  padding:.5rem 1.2rem;margin-bottom:1.6rem;
  animation:rise .8s cubic-bezier(.2,.7,.2,1) both;
}
.os-crown{filter:drop-shadow(0 0 8px rgba(255,210,74,.6))}
.owner-strip a{color:var(--gold);font-weight:700;text-decoration:none}
.owner-strip a:hover{text-decoration:underline}
.os-since{color:#6a6a80;font-size:.8rem}

/* ---------- hero ---------- */
.hero{
  min-height:52vh;
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  text-align:center;padding:2.4rem 1.2rem 2rem;
}
.hero-title{font-family:var(--font-display);line-height:.98;letter-spacing:-.01em}
.hero-title .line1{display:block;font-size:clamp(1.9rem,6vw,4.4rem);color:var(--text);
  text-shadow:0 0 60px rgba(0,255,136,.12)}
.hero-title .line2{
  display:block;font-size:clamp(1.5rem,4.6vw,3.4rem);margin-top:.3rem;
  background:linear-gradient(100deg,#f7c948 15%,#fff3c4 38%,#ffb300 60%,#f7c948 85%);
  background-size:200% auto;
  -webkit-background-clip:text;background-clip:text;color:transparent;
  opacity:0;
  animation:rise .8s cubic-bezier(.2,.7,.2,1) .26s forwards,shine 4.5s linear infinite;
  filter:drop-shadow(0 0 26px rgba(255,210,74,.28));
}
@keyframes shine{to{background-position:200% center}}
.hero-sub{margin-top:1.1rem;font-size:clamp(.92rem,2vw,1.08rem);color:var(--dim);line-height:1.6}
.hero-cta{margin-top:1.5rem;display:flex;gap:.9rem;flex-wrap:wrap;justify-content:center}
.hero-takeover{margin-top:.9rem}

.hero-live{margin-top:1rem;color:var(--dim);font-size:.84rem;font-family:var(--font-mono)}
.hero-live b{color:var(--green)}
.hero-live a{color:var(--dim)}
.hero-live a:hover{color:var(--gold)}
.live-dot{
  display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--green);
  box-shadow:0 0 10px var(--green);animation:livePulse 2s ease-in-out infinite;vertical-align:1px;
}
@keyframes livePulse{0%,100%{opacity:1}50%{opacity:.35}}

/* reveal-on-load */
.reveal{opacity:0;transform:translateY(26px);animation:rise .8s cubic-bezier(.2,.7,.2,1) forwards}
.d1{animation-delay:.12s}.d2{animation-delay:.26s}.d3{animation-delay:.45s}
.d4{animation-delay:.62s}.d5{animation-delay:.78s}
@keyframes rise{to{opacity:1;transform:none}}

/* ---------- buttons ---------- */
.btn-gold{
  font-family:var(--font-display);font-size:1rem;
  color:#1a1200;background:linear-gradient(180deg,#ffe082,var(--gold) 45%,var(--gold2));
  border:none;border-radius:12px;padding:.95rem 1.6rem;cursor:pointer;
  box-shadow:0 0 0 1px rgba(255,210,74,.55),0 8px 32px rgba(255,179,0,.28);
  transition:transform .15s,box-shadow .15s;
  text-decoration:none;display:inline-block;text-align:center;
}
.btn-gold:hover{transform:translateY(-2px) scale(1.02);box-shadow:0 0 0 1px var(--gold),0 12px 44px rgba(255,179,0,.45)}
.btn-gold.big{font-size:1.02rem;padding:.95rem 1.6rem;animation:heartbeat 2.6s ease-in-out infinite}
@keyframes heartbeat{0%,100%{box-shadow:0 0 0 1px rgba(255,210,74,.55),0 8px 32px rgba(255,179,0,.28)}
  50%{box-shadow:0 0 0 2px var(--gold),0 8px 52px rgba(255,179,0,.5)}}
.btn-ghost{
  font-family:var(--font-ui);font-weight:700;font-size:1rem;color:var(--text);
  background:transparent;border:1px solid var(--line);border-radius:12px;
  padding:.95rem 1.5rem;cursor:pointer;transition:border-color .2s,background .2s;
}
.btn-ghost:hover{border-color:var(--gold);background:rgba(255,210,74,.06)}
.link-danger{
  background:none;border:none;cursor:pointer;color:var(--red);
  font-family:var(--font-ui);font-size:.95rem;opacity:.85;
  border-bottom:1px dashed rgba(255,59,92,.5);padding-bottom:2px;
}
.link-danger:hover{opacity:1}
.link-danger.locked{color:var(--dim);border-bottom-style:solid;border-bottom-color:rgba(154,154,172,.25);cursor:default;opacity:.7}
.link-danger.locked:hover{opacity:.7}
.wide{width:100%}

/* ---------- ticker ---------- */
.ticker{
  border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  background:rgba(12,12,20,.7);overflow:hidden;white-space:nowrap;
  padding:.55rem 0;font-family:var(--font-mono);font-size:.85rem;color:var(--dim);
}
.ticker-track{display:inline-block;animation:tick 40s linear infinite}
.ticker-track span{margin:0 1.6rem}
.ticker-track .up{color:var(--green)}
.ticker-track .burn{color:var(--fire)}
@keyframes tick{from{transform:translateX(0)}to{transform:translateX(-50%)}}

/* ---------- stats ---------- */
.stats{
  display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);
  border-bottom:1px solid var(--line);
}
.stat{background:var(--bg2);padding:1.4rem 1rem;text-align:center}
.stat-num{display:block;font-family:var(--font-mono);font-weight:800;font-size:clamp(1.4rem,3.4vw,2.1rem)}
.stat-label{color:var(--dim);font-size:.82rem;text-transform:uppercase;letter-spacing:.12em}

/* ---------- board ---------- */
.board{max-width:1100px;margin:0 auto;padding:4.5rem 1.2rem 3rem}
.section-title{font-family:var(--font-display);font-size:clamp(1.6rem,4vw,2.4rem);text-align:center}
.section-sub{color:var(--dim);text-align:center;margin:.8rem auto 2.4rem;max-width:560px;line-height:1.6}

/* takeover hero — shown while someone owns the page */
.takeover-hero{
  position:relative;overflow:hidden;text-align:center;
  border:2px solid var(--gold);border-radius:20px;
  background:linear-gradient(160deg,#241a02,#120d03 65%);
  box-shadow:0 0 90px rgba(255,179,0,.22),inset 0 0 120px rgba(255,179,0,.06);
  padding:2.6rem 1.6rem;margin-bottom:2rem;
  animation:takeoverPulse 2.2s ease-in-out infinite;
}
.takeover-hero::after{
  content:'';position:absolute;top:0;bottom:0;width:50%;left:-70%;
  background:linear-gradient(100deg,transparent,rgba(255,235,170,.12),transparent);
  animation:sweep 3.2s ease-in-out infinite;
}
.th-label{
  display:block;font-family:var(--font-mono);font-weight:800;font-size:.8rem;
  letter-spacing:.28em;color:var(--red);text-transform:uppercase;margin-bottom:1rem;
}
.th-name{
  display:inline-block;font-family:var(--font-display);
  font-size:clamp(1.8rem,5.5vw,3.4rem);color:var(--gold);text-decoration:none;
  filter:drop-shadow(0 0 22px rgba(255,210,74,.4));
}
.th-name:hover{text-decoration:underline}
.th-desc{color:#e8d9a8;margin-top:.7rem;font-size:1.05rem}
.th-time{display:block;margin-top:1.3rem;color:var(--dim);font-size:.85rem}
.th-time b{font-family:var(--font-mono);color:var(--gold)}

/* podium (#1-#3) */
.podium{display:grid;grid-template-columns:1fr;gap:1rem;margin-bottom:1.6rem}
.pod{
  position:relative;border-radius:16px;padding:1.5rem 1.6rem;overflow:hidden;
  background:var(--panel);border:1px solid var(--line);
  display:flex;align-items:center;gap:1.2rem;
  animation:podIn .6s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes podIn{from{opacity:0;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.pod.p1{
  border:1px solid rgba(255,210,74,.6);
  background:linear-gradient(160deg,#191307,#0f0d08 60%);
  box-shadow:0 0 60px rgba(255,179,0,.14),inset 0 0 80px rgba(255,179,0,.05);
}
.pod.p1::after{ /* shine sweep */
  content:'';position:absolute;top:0;bottom:0;width:60%;left:-80%;
  background:linear-gradient(100deg,transparent,rgba(255,235,170,.09),transparent);
  animation:sweep 4s ease-in-out infinite;
}
@keyframes sweep{0%{left:-80%}55%,100%{left:130%}}
.pod.p2{border-color:rgba(200,205,220,.35)}
.pod.p3{border-color:rgba(205,140,80,.35)}
.pod-rank{
  font-family:var(--font-display);font-size:2rem;min-width:3.2rem;text-align:center;
}
.p1 .pod-rank{color:var(--gold);font-size:2.6rem;filter:drop-shadow(0 0 14px rgba(255,210,74,.5))}
.p2 .pod-rank{color:#cdd2e0}
.p3 .pod-rank{color:#d08b50}
.pod-crown{display:block;font-size:1.1rem;line-height:1;margin-bottom:.2rem}
.pod-main{flex:1;min-width:0}
.pod-name{font-weight:700;font-size:1.25rem;text-decoration:none;display:inline-block}
.p1 .pod-name{font-size:1.5rem;color:var(--gold)}
.pod-name:hover{text-decoration:underline}
.pod-desc{color:var(--dim);font-size:.95rem;margin-top:.25rem;line-height:1.5}
.pod-meta{color:var(--dim);font-size:.8rem;margin-top:.4rem;font-family:var(--font-mono)}
.pod-side{text-align:right}
.pod-price{font-family:var(--font-mono);font-weight:800;font-size:1.5rem}
.p1 .pod-price{color:var(--gold);font-size:1.8rem}
.pod-outbid{
  margin-top:.5rem;font-size:.82rem;font-weight:700;color:#1a1200;
  background:linear-gradient(180deg,#ffe082,var(--gold2));border:none;border-radius:8px;
  padding:.45rem .8rem;cursor:pointer;transition:transform .15s;
}
.pod-outbid:hover{transform:scale(1.05)}
.mini-topup{
  display:block;margin-top:.4rem;margin-left:auto;background:none;border:none;color:var(--dim);
  font-size:.72rem;cursor:pointer;text-decoration:underline dotted;font-family:var(--font-ui);
}
.mini-topup:hover{color:var(--gold)}
.row-actions{display:flex;flex-direction:column;align-items:flex-end}
.pod .mini-topup{margin-left:0}

/* avatars */
.pod-ava,.row-ava{
  position:relative;flex:none;display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;overflow:hidden;background:#1c1c28;border:1px solid var(--line);
}
.pod-ava{width:52px;height:52px}
.row-ava{width:34px;height:34px}
.pod-ava img,.row-ava img{width:100%;height:100%;object-fit:cover;display:block}
.ava-fallback{
  width:100%;height:100%;display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);color:var(--gold);font-size:1rem;
}
.row-ava .ava-fallback{font-size:.8rem}

/* table rows (#4+) */
.rows{display:flex;flex-direction:column;gap:6px}
.row{
  display:grid;grid-template-columns:3rem 34px 1fr auto auto auto;gap:1rem;align-items:center;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;
  padding:.85rem 1.1rem;transition:transform .18s,border-color .18s,box-shadow .18s;
  animation:podIn .5s both;
}
.row:hover{transform:translateY(-2px);border-color:rgba(255,210,74,.4);box-shadow:0 6px 30px rgba(0,0,0,.5)}
.row-rank{font-family:var(--font-mono);font-weight:800;color:var(--dim);text-align:center}
.row-main{min-width:0}
.row-name{font-weight:700;text-decoration:none}
.row-name:hover{color:var(--gold)}
.row-desc{color:var(--dim);font-size:.85rem;line-height:1.5}
.row-meta{color:var(--dim);font-family:var(--font-mono);font-size:.78rem;text-align:right;white-space:nowrap}
.row-price{font-family:var(--font-mono);font-weight:800;white-space:nowrap}
.row-outbid{
  font-size:.78rem;font-weight:700;color:var(--gold);background:transparent;
  border:1px solid rgba(255,210,74,.4);border-radius:8px;padding:.4rem .7rem;cursor:pointer;
  transition:background .15s;white-space:nowrap;
}
.row-outbid:hover{background:rgba(255,210,74,.12)}

/* empty board */
.empty{text-align:center;padding:3.5rem 1rem;border:1px dashed var(--line);border-radius:16px}
.empty-flag{font-size:3rem;color:var(--gold);animation:floaty 3s ease-in-out infinite}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
.empty h3{font-family:var(--font-display);font-size:1.6rem;margin:.8rem 0 .5rem}
.empty p{color:var(--dim);line-height:1.7;margin-bottom:1.4rem}

/* ---------- most clicked ---------- */
.clicked{max-width:700px;margin:0 auto;padding:3.5rem 1.2rem 1rem}
.clicked-list{display:flex;flex-direction:column;gap:6px}
.clicked-item{
  display:flex;align-items:center;gap:.9rem;text-decoration:none;
  background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:.7rem 1rem;
  transition:border-color .15s,transform .15s;
}
.clicked-item:hover{border-color:rgba(0,255,136,.4);transform:translateY(-1px)}
.ci-rank{font-family:var(--font-mono);font-weight:800;color:var(--dim);min-width:1.2rem}
.ci-name{flex:1;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ci-clicks{font-family:var(--font-mono);font-size:.82rem;color:var(--green)}

/* revenge */
.mini-topup.revenge{color:var(--red);text-decoration-color:rgba(255,59,92,.5)}
.mini-topup.revenge:hover{color:#ff7186}
.row-mini{display:flex;gap:.9rem;margin-top:.3rem}
.row-mini .mini-topup{margin:0}

/* ---------- how ---------- */
.how{max-width:1100px;margin:0 auto;padding:4rem 1.2rem 5rem}
.how-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin-top:2.2rem}
.how-card{
  background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.6rem;
  transition:transform .2s,border-color .2s;
}
.how-card:hover{transform:translateY(-4px);border-color:rgba(255,210,74,.35)}
.how-n{
  font-family:var(--font-display);color:var(--gold);font-size:1.4rem;
  display:inline-block;margin-bottom:.7rem;
}
.how-card h3{font-size:1.1rem;margin-bottom:.5rem}
.how-card p{color:var(--dim);font-size:.92rem;line-height:1.65}
.how-rules{text-align:center;margin-top:2rem}
.how-rules a{color:var(--gold);text-decoration:none}
.how-rules a:hover{text-decoration:underline}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--line);padding:2.4rem 1.2rem;text-align:center}
.foot-meme{font-family:var(--font-display);color:var(--dim);font-size:.95rem}
.foot-small{color:#5a5a6e;font-size:.8rem;margin-top:.6rem}
.foot-small a{color:#7a7a92}

/* ---------- modal ---------- */
.modal-back{
  position:fixed;inset:0;z-index:100;background:rgba(4,4,8,.8);backdrop-filter:blur(8px);
  display:flex;align-items:center;justify-content:center;padding:1rem;
  animation:fadeIn .2s;
}
@keyframes fadeIn{from{opacity:0}to{opacity:1}}
.modal{
  position:relative;width:100%;max-width:440px;max-height:92vh;overflow-y:auto;
  background:var(--bg2);border:1px solid #26263a;border-radius:20px;padding:1.8rem;
  box-shadow:0 30px 90px rgba(0,0,0,.7);
  animation:popIn .28s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes popIn{from{opacity:0;transform:scale(.92) translateY(14px)}to{opacity:1;transform:none}}
.modal-x{
  position:absolute;top:.9rem;right:.9rem;background:none;border:none;color:var(--dim);
  font-size:1.1rem;cursor:pointer;
}
.modal-x:hover{color:var(--text)}
.modal-title{font-family:var(--font-display);font-size:1.3rem;text-align:center;margin-bottom:1.2rem}
.modal label{display:block;font-size:.85rem;font-weight:700;margin-bottom:.9rem}
.modal .hint{color:var(--dim);font-weight:400;font-size:.78rem}
.modal input,.modal textarea{
  width:100%;margin-top:.35rem;background:var(--panel);border:1px solid var(--line);
  border-radius:10px;padding:.7rem .9rem;color:var(--text);font-family:var(--font-ui);font-size:.95rem;
}
.modal textarea{resize:none;line-height:1.45;overflow:hidden;min-height:52px}
.modal input:focus,.modal textarea:focus{outline:none;border-color:var(--gold)}
.rc-count{align-self:flex-end;font-family:var(--font-mono);font-size:.68rem;color:#5a5a6e;margin-top:-2px}
.resolve-state{color:var(--dim);font-size:.85rem;margin:-.3rem 0 .8rem}
.resolve-card{
  display:flex;gap:.8rem;align-items:flex-start;
  background:var(--panel);border:1px solid rgba(255,210,74,.3);border-radius:12px;
  padding:.8rem;margin-bottom:1rem;
}
.resolve-card img{border-radius:50%;background:#1c1c28;flex:none}
.rc-ava-wrap{
  position:relative;flex:none;width:44px;height:44px;border-radius:50%;overflow:hidden;
  background:#1c1c28;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;
}
.rc-ava-wrap img{width:100%;height:100%;object-fit:cover}
.rc-ava-wrap .ava-fallback{font-size:1.05rem}
.rc-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.rc-fields input{margin-top:0!important}
.topup-info{
  background:rgba(255,210,74,.07);border:1px solid rgba(255,210,74,.25);border-radius:10px;
  padding:.8rem 1rem;font-size:.88rem;margin-bottom:1rem;line-height:1.5;
}
.amt-label{margin-bottom:.3rem!important}
.amt-row{display:flex;gap:6px;align-items:center}
.amt-row input{
  text-align:center;font-family:var(--font-mono);font-weight:800;font-size:1.1rem;margin-top:0;
  flex:1 1 76px;min-width:64px;width:auto;
}
.amt-btn{
  background:var(--panel);border:1px solid var(--line);color:var(--dim);border-radius:8px;
  padding:.55rem .5rem;cursor:pointer;font-family:var(--font-mono);font-size:.78rem;white-space:nowrap;
}
.amt-btn:hover{border-color:var(--gold);color:var(--gold)}
.rank-preview{font-size:.88rem;color:var(--green);margin:.7rem 0 .3rem;min-height:1.3em;font-family:var(--font-mono)}
.form-err{color:var(--red);font-size:.85rem;min-height:1.2em;margin-bottom:.5rem}
.modal-fine{color:var(--dim);font-size:.76rem;text-align:center;margin-top:.9rem;line-height:1.5}
.modal-fine a{color:var(--gold)}

.qr{display:flex;justify-content:center;margin-bottom:1.1rem}
.qr img,.qr canvas{border-radius:12px;background:#fff;padding:10px}
.pay-details{margin-top:1rem;display:flex;flex-direction:column;gap:6px}
.pd-row{
  display:flex;align-items:center;gap:.6rem;font-size:.8rem;color:var(--dim);
  background:var(--panel);border-radius:8px;padding:.55rem .8rem;
}
.pd-row code{
  flex:1;font-family:var(--font-mono);color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.copy{background:none;border:1px solid var(--line);color:var(--dim);border-radius:6px;padding:.2rem .5rem;cursor:pointer;font-size:.72rem}
.copy:hover{color:var(--gold);border-color:var(--gold)}
.pay-status{margin-top:1.1rem;text-align:center;font-size:.9rem;color:var(--dim)}
.spinner{
  display:inline-block;width:12px;height:12px;border:2px solid var(--line);
  border-top-color:var(--gold);border-radius:50%;margin-right:.4rem;
  animation:spin 1s linear infinite;vertical-align:-1px;
}
@keyframes spin{to{transform:rotate(360deg)}}
.done-flag{font-size:3.4rem;text-align:center;color:var(--gold);animation:floaty 2.5s ease-in-out infinite}
.done-sub{text-align:center;color:var(--dim);margin:.6rem 0 1.4rem;line-height:1.6}
#tweetIt{margin-bottom:.7rem}

/* outbid shake — applied to body when someone loses #1 */
.shake{animation:shake .5s}
@keyframes shake{
  10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(2px)}
  30%,50%,70%{transform:translateX(-4px)}40%,60%{transform:translateX(4px)}
}

/* ---------- responsive ---------- */
@media(max-width:820px){
  .how-grid{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .row{grid-template-columns:2.2rem 34px 1fr auto;row-gap:.55rem}
  .row-meta{display:none}
  .row-rank{grid-row:1;grid-column:1}
  .row-ava{grid-row:1;grid-column:2}
  .row-main{grid-row:1;grid-column:3}
  .row-price{grid-row:1;grid-column:4}
  .row-actions{
    grid-row:2;grid-column:1/-1;
    flex-direction:row;justify-content:flex-end;align-items:center;gap:1rem;
  }
  .row-actions .mini-topup{margin:0;white-space:nowrap}
  .nav nav{gap:.9rem}
}
@media(max-width:480px){
  .nav{padding:.9rem .9rem}
  .logo{font-size:.88rem}
  .logo-lol{display:none}
  .nav nav{gap:.55rem}
  .nav nav a{font-size:.8rem}
  .amt-btn{padding:.55rem .35rem;font-size:.7rem}
  .pod{flex-direction:column;text-align:center;gap:.6rem}
  .pod-side{text-align:center}
  .pod-side .mini-topup{margin:.4rem auto 0}
  .hero-cta{flex-direction:column;width:100%}
  .btn-gold.big{width:100%}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .reveal{opacity:1;transform:none}
}
.how-card a{color:var(--gold);text-decoration:none}
.how-card a:hover{text-decoration:underline}

/* ---------- mobile resolve card (kept last: must outrank the base .rc-fields rule) ---------- */
@media(max-width:600px){
  .resolve-card{flex-wrap:wrap;align-items:center;row-gap:.5rem}
  .resolve-card .rc-ava-wrap{width:34px;height:34px}
  .resolve-card .rc-ava-wrap .ava-fallback{font-size:.85rem}
  .resolve-card .rc-fields{flex:1 1 100%;order:2}
  .resolve-card img{width:34px;height:34px}
}
