/* =========================================================
   LEVERCAT — airdrop.css
   Leaderboard (podium, ranked rows, badges, connected asset) and the
   sending animations (batch grid, live counter, finish). Loaded only by
   airdrop.html; tokens come from styles.css. Motion is opt-out via
   prefers-reduced-motion at the bottom.
   ========================================================= */

/* ---------- board head ---------- */
.board__tools { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.board__sort { display: inline-flex; align-items: center; gap: .5rem; color: var(--cream-dim); font-weight: 600; }
.board__sort select { appearance: none; -webkit-appearance: none; padding: .55rem 2.2rem .55rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffb347' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .85rem center; color: var(--cream); font: inherit; font-weight: 700; cursor: pointer; transition: border-color .15s; }
.board__sort select:hover { border-color: var(--amber); }
.board__updated { color: var(--cream-dim); font-size: .85rem; }
.board__demo { margin: -1rem 0 1.5rem; color: var(--cream-dim); font-size: .92rem; max-width: 78ch; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.board__demo b { font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; padding: .4em .6em .35em; border-radius: 4px; border: 2px solid var(--ink); background: var(--amber); color: var(--ink); rotate: -2deg; }
.board__stats dd[data-count] { min-width: 2ch; }

/* ---------- wall of fame: the top three as polaroids, pinned up like the hero cat ---------- */
.wall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); align-items: end; margin: .5rem 0 2.5rem; padding: 1rem 0 .5rem; }
.pola { position: relative; margin: 0; padding: 10px 10px 12px; background: var(--cream); color: var(--ink); box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 1), 0 0 0 1px rgba(0, 0, 0, .25); cursor: pointer; opacity: 0; transform: translateY(-18px) rotate(var(--r, 0deg)); animation: pola-in .7s cubic-bezier(.2, .9, .3, 1.2) forwards; animation-delay: calc(var(--i, 0) * 140ms + 60ms); transition: rotate .35s var(--ease-spring), scale .35s var(--ease-spring); }
.pola--1 { --r: 1.5deg; order: 2; z-index: 1; scale: 1.06; margin-bottom: 1.25rem; }
.pola--2 { --r: -3deg; order: 1; }
.pola--3 { --r: 2.5deg; order: 3; }
.pola:hover { rotate: 0deg; scale: 1.05; z-index: 2; }
.pola--1:hover { scale: 1.1; }
.pola__img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--ink-3); }
.pola__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pola__rank { position: absolute; left: -12px; top: -14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--ink); background: var(--cream); border: 3px solid var(--ink); rotate: -8deg; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); z-index: 2; }
.pola--1 .pola__rank { background: var(--amber); width: 54px; height: 54px; font-size: 1.8rem; }
.pola--2 .pola__rank { background: #e6e9f0; }
.pola--3 .pola__rank { background: #e2a56f; }
.pola figcaption { padding: .7rem .2rem .2rem; text-align: center; }
.pola__sym { display: block; font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .03em; line-height: 1; }
.pola__name { display: block; font-size: .78rem; color: #3a4150; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .15rem; }
.pola__metric { display: block; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin-top: .45rem; font-variant-numeric: tabular-nums; }
.pola--1 .pola__metric { color: var(--amber-deep); }
.pola__cap { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #3a4150; margin-top: .15rem; }
.pola__sub { display: block; font-size: .8rem; color: #3a4150; margin-top: .45rem; }
.pola__stk { display: flex; justify-content: center; gap: .4rem; margin-top: .6rem; min-height: 1.4rem; }
.pola__asset { position: absolute; right: -14px; top: -4px; display: inline-flex; align-items: center; gap: .35rem; padding: .35em .7em .35em .4em; border-radius: 999px; border: 3px solid var(--ink); background: var(--amber); color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; line-height: 1; rotate: 7deg; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .9); white-space: nowrap; z-index: 2; }
.pola__asset img, .pola__asset i { width: 20px; height: 20px; border-radius: 50%; display: block; background: var(--ink-3); }
@keyframes pola-in { to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }

/* ---------- the ledger: one panel, one header, calm rows ---------- */
.lb { list-style: none; margin: 0 0 1rem; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--ink-2); overflow: hidden; }
.lb .board__empty { border: 0; }
.lb-head, .lb-row__main { display: grid; grid-template-columns: 2.4rem minmax(0, 1.7fr) repeat(4, minmax(0, .7fr)) minmax(0, 1.05fr) 1rem; align-items: center; gap: .9rem; padding: .8rem 1.1rem; }
.lb-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-dim); border-bottom: 1px solid var(--line); background: var(--ink); }
.lb-head span:nth-child(n+3):nth-child(-n+6) { text-align: left; }
.lb-icon { border-radius: 50%; background: var(--ink-3); object-fit: cover; display: inline-block; flex: 0 0 auto; }
.lb-icon--none { background: radial-gradient(circle at 35% 35%, var(--steel-dark), var(--ink-3)); }
.lb-row { border-top: 1px solid var(--line); opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1), background .2s; transition-delay: calc(var(--i, 0) * 45ms); }
.lb-row:first-of-type { border-top: 0; }
.lb-row.is-in { opacity: 1; transform: none; }
.lb-row:hover { background: rgba(246, 233, 214, .03); }
.lb-row.is-open { background: rgba(255, 179, 71, .05); }
.lb-row__main { width: 100%; border: 0; background: none; color: inherit; text-align: left; }
.lb-row__main:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
.lb-row__rank b { font-family: var(--display); font-size: 1.5rem; font-weight: 400; color: var(--cream-dim); font-variant-numeric: tabular-nums; display: inline-block; }
.lb-row[data-rank="1"] .lb-row__rank b, .lb-row[data-rank="2"] .lb-row__rank b, .lb-row[data-rank="3"] .lb-row__rank b { color: var(--amber); }
.lb-row__rank b.is-bump { animation: bump .5s var(--ease-spring); }
@keyframes bump { 0% { transform: scale(.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.lb-row__who { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.lb-row__who .lb-icon { width: 38px; height: 38px; }
.lb-row__name { display: flex; flex-direction: column; min-width: 0; }
.lb-row__name b { font-family: var(--display); font-size: 1.2rem; letter-spacing: .02em; line-height: 1.05; font-weight: 400; text-transform: uppercase; }
.lb-row__name span { color: var(--cream-dim); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lb-row__name span span { display: inline-flex; align-items: center; gap: .25rem; vertical-align: -2px; }
.lb-row__name span img { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 auto; }
.m { display: flex; flex-direction: column; min-width: 0; }
.m small { display: none; color: var(--cream-dim); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.m b { font-family: var(--display); font-size: 1.3rem; font-weight: 400; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--cream); }
.m b i { font-style: normal; font-size: .8em; margin-right: .15em; }
.m b.is-up i { color: var(--green); }
.m b.is-down i { color: var(--red); }
.lb[data-sort="peak"] .m[data-k="peak"] b, .lb[data-sort="value"] .m[data-k="value"] b, .lb[data-sort="reach"] .m[data-k="reach"] b { color: var(--amber); }
.lb-row__badges { display: flex; flex-wrap: wrap; gap: .35rem .45rem; align-items: center; }
.lb-row__badges .more { color: var(--cream-dim); font-size: .72rem; }
.lb-row__chev { width: 9px; height: 9px; border-right: 2px solid var(--cream-dim); border-bottom: 2px solid var(--cream-dim); transform: rotate(45deg); margin: 0 0 4px; transition: transform .3s var(--ease-spring); justify-self: end; }
.lb-row.is-open .lb-row__chev { transform: rotate(-135deg) translate(-2px, -2px); }
.lb-row__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
.lb-row.is-open .lb-row__more { grid-template-rows: 1fr; }
.lb-row__inner { overflow: hidden; display: flex; flex-direction: column; gap: .9rem; padding: 0 1.1rem 0 4.2rem; opacity: 0; transition: opacity .3s, padding .3s; }
.lb-row.is-open .lb-row__inner { padding: .25rem 1.1rem 1.25rem 4.2rem; opacity: 1; }
.lb-row__tags { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; }
.lb .drop__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb .drop__value { background: var(--ink); }

/* ---------- badges as stickers (Anton, ink border, a little crooked, like the hero) ---------- */
.stk { display: inline-block; font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: .66rem; line-height: 1; padding: .4em .55em .35em; border-radius: 4px; border: 2px solid var(--ink); background: var(--cream); color: var(--ink); white-space: nowrap; rotate: -2deg; box-shadow: 0 4px 10px -5px rgba(0, 0, 0, .9); cursor: help; transition: rotate .2s var(--ease-spring), scale .2s var(--ease-spring); }
.stk:nth-child(even) { rotate: 2deg; }
.stk:hover { rotate: 0deg; scale: 1.08; }
.stk--amber { background: var(--amber); }
.stk--green { background: var(--green); }
.stk--red { background: var(--red); color: var(--cream); }
.stk--muted { background: var(--ink-3); color: var(--cream-dim); border-color: var(--steel-dark); rotate: 0deg; box-shadow: none; }
.stk--muted:nth-child(even) { rotate: 0deg; }
.legend { margin: 0 0 1.25rem; color: var(--cream-dim); }
.legend summary { cursor: pointer; font-weight: 700; color: var(--cream); }
.legend__list { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem 1.5rem; font-size: .86rem; }
.legend__list li { display: grid; grid-template-columns: 120px 1fr; gap: .6rem; align-items: start; }
.legend__list .stk { cursor: default; rotate: 0deg; justify-self: start; }

/* ---------- connected asset (StonkFun reward coins) ---------- */
.asset { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .7rem .3rem .35rem; border-radius: 999px; font-size: .8rem; color: var(--cream-dim); border: 1px solid var(--line); background: var(--ink); max-width: 100%; }
.asset b { color: var(--cream); }
.asset small { color: var(--cream-dim); font-size: .7rem; }
.asset img, .asset__dot { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; background: var(--ink-3); flex: 0 0 auto; }
.asset--reward { border-color: rgba(255, 179, 71, .5); }
.asset--reward b { color: var(--amber); }
.tok-asset { display: block; margin-top: .5rem; }

/* ---------- steps reveal ---------- */
.is-reveal { animation: reveal .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- sending ---------- */
.send-log { position: relative; overflow: hidden; }
.send-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.send-top { display: grid; gap: .5rem; margin-bottom: .9rem; }
.send-count { display: flex; align-items: baseline; gap: .6rem; }
.send-count b { font-family: var(--display); font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; font-weight: 400; min-width: 2ch; }
.send-count span { color: var(--cream-dim); font-weight: 600; }
.send-track { position: relative; }
.send-bar { position: relative; overflow: hidden; }
.send-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-100%); animation: bar-shine 1.6s ease-in-out infinite; }
.send-bar.is-done { background: var(--green); }
.send-bar.is-done::after { animation: none; }
@keyframes bar-shine { to { transform: translateX(100%); } }
.send-grid { display: flex; flex-wrap: wrap; gap: 3px; margin: 0 0 .9rem; padding: .6rem; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.send-grid:empty { display: none; }
.send-grid i { width: 11px; height: 11px; border-radius: 3px; background: var(--ink-3); display: block; transition: background .25s, box-shadow .25s; }
.send-grid--lg i { width: 22px; height: 22px; border-radius: 5px; }
.send-grid--md i { width: 15px; height: 15px; border-radius: 4px; }
.send-grid i[data-s="sent"] { background: var(--amber); animation: cell-pulse .9s ease-in-out infinite; }
.send-grid i[data-s="ok"] { background: var(--green); box-shadow: 0 0 6px rgba(25, 214, 124, .5); }
.send-grid i[data-s="fail"] { background: var(--red); }
.send-grid i[data-s="skip"] { background: transparent; box-shadow: inset 0 0 0 2px var(--red); }
.send-grid i[data-s="split"] { background: transparent; box-shadow: inset 0 0 0 1px var(--amber); opacity: .6; }
.send-grid i.is-pop { animation: cell-pop .45s var(--ease-spring); }
.send-grid__note { flex: 1 0 100%; font-size: .78rem; color: var(--cream-dim); margin-bottom: .25rem; }
@keyframes cell-pulse { 50% { opacity: .45; } }
@keyframes cell-pop { 0% { transform: scale(.5); } 60% { transform: scale(1.5); } 100% { transform: scale(1); } }
.send-done { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; margin: 0 0 1rem; padding: 1rem 1.25rem; border-radius: 14px; border: 2px solid var(--green); background: rgba(25, 214, 124, .08); }
.send-done p { margin: 0; font-weight: 600; }
.send-done__stamp { font-family: var(--display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.5rem; line-height: 1; padding: .4em .6em; border: 3px solid var(--green); border-radius: 8px; color: var(--green); rotate: -5deg; }
.send-done.is-in .send-done__stamp { animation: stamp .6s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes stamp { 0% { transform: scale(2.2); opacity: 0; } 55% { transform: scale(.95); opacity: 1; } 100% { transform: scale(1); } }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .lb-head { display: none; }
  .lb-row__main { grid-template-columns: 2rem minmax(0, 1fr) minmax(0, 1fr) 1rem; grid-template-areas: "rank who who chev" ". peak value ." ". reach now ." ". badges badges ."; row-gap: .75rem; column-gap: .75rem; }
  .lb-row__rank { grid-area: rank; align-self: start; } .lb-row__who { grid-area: who; } .lb-row__chev { grid-area: chev; align-self: start; margin-top: .9rem; }
  .m[data-k="peak"] { grid-area: peak; } .m[data-k="value"] { grid-area: value; } .m[data-k="reach"] { grid-area: reach; } .m[data-k="new"] { grid-area: now; }
  .m small { display: block; }
  .lb-row__badges { grid-area: badges; }
  .lb-row__inner, .lb-row.is-open .lb-row__inner { padding-left: 1.1rem; }
  .lb .drop__stats { grid-template-columns: 1fr 1fr; }
  .legend__list li { grid-template-columns: 1fr; gap: .3rem; }
}
@media (max-width: 640px) {
  .wall { grid-template-columns: 1fr; gap: 2.25rem; padding: 1.5rem 1rem 1rem; align-items: stretch; }
  .pola { max-width: 340px; width: 100%; justify-self: center; }
  .pola--1 { order: 1; scale: 1; margin-bottom: 0; } .pola--2 { order: 2; } .pola--3 { order: 3; }
  .m b { font-size: 1.2rem; }
  .send-done { grid-template-columns: 1fr; justify-items: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pola { opacity: 1; transform: rotate(var(--r, 0deg)); animation: none; transition: none; }
  .lb-row { opacity: 1; transform: none; transition: none; }
  .lb-row__more, .lb-row__inner, .lb-row__chev, .stk { transition: none; }
  .lb-row__rank b.is-bump, .is-reveal, .send-grid i, .send-done__stamp { animation: none; }
  .send-bar::after { animation: none; display: none; }
}

/* =========================================================
   Top: headline + one swap-style widget. Everything the sender needs on
   the first screen; no label column, no boxes in boxes, one button.
   ========================================================= */
.top { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); background: radial-gradient(90% 70% at 80% 0%, rgba(255, 179, 71, .09), transparent 60%), var(--ink); border-bottom: 1px solid var(--line); }
.top__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 470px); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.con__kicker { display: block; margin: 0 0 .35rem; color: var(--amber); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; }
.con__dot { display: inline-block; vertical-align: middle; margin: -2px .5rem 0 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(25, 214, 124, .18); animation: blink-live 1.6s ease-in-out infinite; }
.con__n { color: var(--amber); font-variant-numeric: tabular-nums; }
.top__title { font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: .98; text-transform: uppercase; letter-spacing: .01em; margin: .25rem 0 .7rem; }
.top__lede { margin: 0 0 1.25rem; color: var(--cream-dim); max-width: 46ch; font-size: 1rem; line-height: 1.5; }
.top__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; margin: 0 0 1.25rem; max-width: 400px; }
.top__stats div { display: flex; flex-direction: column; }
.top__stats dt { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-dim); }
.top__stats dd { margin: 0; font-family: var(--display); font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.top__fund { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .6rem; font-size: .82rem; line-height: 1.4; color: var(--cream-dim); max-width: 52ch; }
.top__fund .fund__badge { font-size: .8rem; flex: 0 0 auto; margin-top: .1rem; }
.top__fund span[data-fund] { color: var(--cream); font-weight: 700; }
.top__holder { margin: 0; font-size: .82rem; color: var(--cream-dim); }
.con__more { margin: 1.25rem 0 0; color: var(--cream-dim); font-size: .9rem; max-width: 80ch; }
.con__more summary { cursor: pointer; color: var(--cream); font-weight: 700; }
.con__more p { margin: .6rem 0 0; }
.top .send-log { margin-top: 1.5rem; }

/* the widget */
.wg { position: relative; display: grid; gap: .6rem; padding: 1rem; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 40px 90px -50px rgba(255, 179, 71, .35), 0 24px 60px -30px rgba(0, 0, 0, 1); }
.wg__head { display: flex; justify-content: space-between; align-items: center; padding: .1rem .35rem .15rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .08em; font-size: 1rem; }
.wg__wallet { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: .78rem; color: var(--cream-dim); }
.wg__wallet code { color: var(--cream); }
.wg__box { background: var(--ink); border-radius: 16px; padding: .85rem .9rem; }
.wg__row { display: flex; align-items: center; gap: .75rem; }
.wg__tok { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .75rem .4rem .45rem; border-radius: 999px; background: var(--ink-3); border: 1px solid transparent; color: var(--cream); flex: 0 0 auto; max-width: 60%; transition: background .15s, border-color .15s; }
.wg__tok:hover { background: #22304f; }
.wg__tok.is-set { border-color: var(--line); }
.wg__tok-ico { width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto; overflow: hidden; background: radial-gradient(circle at 35% 35%, var(--steel-dark), var(--ink-2)); }
.wg__tok-ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wg__tok b { font-family: var(--display); font-size: 1.1rem; letter-spacing: .02em; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg__chev { width: 8px; height: 8px; border-right: 2px solid var(--cream-dim); border-bottom: 2px solid var(--cream-dim); transform: rotate(45deg); margin: -3px .1rem 0 0; flex: 0 0 auto; }
.wg__amt { flex: 1 1 auto; min-width: 0; width: 100%; text-align: right; background: none; border: 0; color: var(--cream); font-family: var(--display); font-size: 2.2rem; line-height: 1; padding: 0; outline: none; font-variant-numeric: tabular-nums; }
.wg__amt::placeholder { color: var(--steel-dark); }
.wg__amt:disabled { opacity: .5; }
.wg__amt:focus { color: var(--amber); }
.wg__sub { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; font-size: .78rem; color: var(--cream-dim); }
.wg__max { padding: .12rem .45rem; border-radius: 6px; border: 1px solid var(--line); background: none; color: var(--amber); font-size: .7rem; font-weight: 700; }
.wg__max:hover { border-color: var(--amber); }
.wg__usd { margin-left: auto; font-variant-numeric: tabular-nums; }
.wg__panel { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.wg .tok-list { display: grid; gap: 2px; margin: .5rem 0 0; max-height: 15rem; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.wg .tok-list:empty { display: none; }
.wg .tok-row { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; border-radius: 10px; border: 1px solid transparent; background: transparent; font-size: .85rem; }
.wg .tok-row:hover, .wg .tok-row.is-on { background: var(--ink-3); border-color: var(--line); }
.wg .tok-row img, .wg .tok-row .drop__noicon { width: 26px; height: 26px; }
.wg .tok-row__name { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.wg .tok-row__name b { font-family: var(--display); font-weight: 400; font-size: 1rem; letter-spacing: .02em; }
.wg .tok-row__name small { display: block; font-size: .72rem; color: var(--cream-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wg .tok-row__bal { display: flex; flex-direction: column; align-items: flex-end; font-size: .82rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; }
.wg .tok-row__bal small { font-size: .7rem; font-weight: 400; }
.wg .tok-list .board__empty { padding: .6rem .2rem; border: 0; font-size: .82rem; }
.wg__tokcount { margin: .35rem 0 0; font-size: .72rem; color: var(--cream-dim); }
.wg__tokcount:empty { display: none; }
.wg .mint-form { display: flex; gap: .4rem; }
.wg .mint-form .check__input { padding: .45rem .7rem; font-size: .86rem; }
.wg .mint-form .btn { padding: .45rem .8rem; }
.wg .tok-picked { margin: .6rem 0 0; padding: .5rem .7rem; font-size: .78rem; line-height: 1.4; border-radius: 10px; }
.wg .tok-note { display: block; color: var(--cream-dim); font-size: .74rem; }
.wg .tok-asset { display: inline-block; margin: .3rem .4rem 0 0; }
.wg__lab { margin: 0 0 .45rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--cream-dim); font-weight: 700; }
.wg__lab small { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: .3rem; font-size: .7rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 12px; background: var(--ink-3); }
.seg .tier { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: .45rem .25rem; border-radius: 9px; border: 0; background: transparent; cursor: pointer; text-align: center; min-width: 0; transition: background .15s, color .15s; }
.seg .tier:has(input:checked) { background: var(--cream); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .9); }
.seg .tier:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 0; }
.seg .tier__amt { font-family: var(--display); font-size: 1.05rem; line-height: 1; color: inherit; }
.seg .tier__n { font-size: .68rem; color: var(--cream-dim); font-weight: 500; margin-top: .15rem; }
.seg .tier:has(input:checked) .tier__n { color: #3a4150; }
.seg--sm .tier { padding: .4rem .25rem; }
.seg--sm .tier__amt { font-size: .95rem; }
.wg__two { display: grid; grid-template-columns: 1.3fr 1fr; gap: .6rem; margin-top: .65rem; }
.wg__cap { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-top: .6rem; font-size: .74rem; color: var(--cream-dim); }
.wg__cap select, .wg__pay { appearance: none; -webkit-appearance: none; width: auto; padding: .2rem 1.4rem .2rem .5rem; border-radius: 7px; border: 1px solid var(--line); background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b8ac9a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .45rem center; color: var(--cream); font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.wg__sum { margin: 0; padding: .1rem .35rem; display: grid; gap: .4rem; }
.wg__sum div { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: .84rem; }
.wg__sum dt { color: var(--cream-dim); display: flex; align-items: center; gap: .4rem; white-space: nowrap; flex: 0 0 auto; }
.wg__sum dd { margin: 0; color: var(--cream); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.wg__sum--cost { padding-top: .6rem; margin-top: .1rem; border-top: 1px dashed var(--line); }
.wg__total { margin-top: .15rem; padding-top: .5rem; border-top: 1px dashed var(--line); }
.wg__total dt { color: var(--cream); font-weight: 700; }
.wg__total dd { font-family: var(--display); font-size: 1.35rem; color: var(--amber); font-weight: 400; }
.wg__note { margin: .4rem .35rem 0; font-size: .74rem; color: var(--cream-dim); }
.wg__agree { margin: .6rem .35rem 0; gap: .5rem; font-size: .78rem; line-height: 1.4; color: var(--cream-dim); max-width: none; }
.wg__agree input { width: 18px; height: 18px; margin-top: .1rem; }
.wg .plan__bad, .wg .check__status { margin: 0 .35rem; font-size: .82rem; }
.wg__cta { width: 100%; padding: .95rem 1rem; font-size: 1.05rem; border-radius: 14px; }
.wg__cta:disabled, .wg__cta:disabled:hover { background: rgba(246, 233, 214, .1); color: var(--cream-dim); box-shadow: none; transform: none; cursor: not-allowed; }   /* a locked button looks locked and says why */
.wg__off { display: inline-block; margin-left: .35rem; padding: .08rem .4rem; border-radius: 5px; font-family: var(--display); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--cream-dim); border: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.wg__off.is-on { background: var(--amber); border-color: var(--amber); color: var(--ink); transform: rotate(-2deg); }
.wg__agree.is-needed { color: var(--cream); outline: 1px dashed var(--amber); outline-offset: 5px; border-radius: 8px; }
#air-review, #air-send { display: none; }
.wg.is-connected:not(.is-priced) #air-review { display: inline-flex; }
.wg.is-priced #air-send { display: inline-flex; }
.wg__fine { margin: 0; text-align: center; font-size: .72rem; color: var(--cream-dim); }
.wg .resume { margin: 0; }
@media (max-width: 900px) {
  .top__grid { grid-template-columns: 1fr; }
  .top__copy { text-align: left; }
  .wg { max-width: 520px; }
}
@media (max-width: 560px) {
  .wg { padding: .8rem; }
  .wg__amt { font-size: 1.8rem; }
  .wg__two { grid-template-columns: 1fr; }
  .top__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* leaderboard empty slots: the wall always has three frames */
.pola--empty { background: transparent; box-shadow: none; border: 2px dashed rgba(246, 233, 214, .22); color: var(--cream-dim); cursor: default; }
.pola--empty:hover { rotate: var(--r, 0deg); scale: 1; }
.pola--1.pola--empty:hover { scale: 1.06; }
.pola--empty .pola__img { display: grid; place-items: center; background: rgba(246, 233, 214, .035); }
.pola__q { font-family: var(--display); font-size: 7rem; line-height: 1; color: rgba(246, 233, 214, .1); user-select: none; }
.pola--empty .pola__rank { background: var(--ink-3); color: var(--cream-dim); border-color: var(--steel-dark); box-shadow: none; }
.pola--empty .pola__sym { color: var(--cream); }
.pola--empty .pola__name, .pola--empty .pola__sub { color: var(--cream-dim); }
.pola--empty .pola__metric { color: rgba(246, 233, 214, .25); }
.board__none { margin: 0 0 1.25rem; color: var(--cream-dim); font-size: .95rem; }

/* rules: plain bullets */
.rules { list-style: none; margin: 0; padding: 0; max-width: 76ch; display: grid; gap: .85rem; color: #2a2f3a; font-size: .95rem; line-height: 1.5; }
.rules li b { color: var(--ink); }
.rules a { color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .con__dot { animation: none; } }

/* ---------- wallet modal (the standard Solana wallet-adapter dialog) ---------- */
.wmodal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s ease; }
.wmodal.is-open { opacity: 1; }
.wmodal__card { position: relative; width: 100%; max-width: 400px; padding: 40px 20px 20px; border-radius: 10px; background: #10141f; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); transform: scale(.96); transition: transform .15s ease; }
.wmodal.is-open .wmodal__card { transform: none; }
.wmodal__x { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #1a1f2e; color: #fff; display: grid; place-items: center; cursor: pointer; }
.wmodal__x:hover { background: #262c3f; }
.wmodal__title { margin: 0 0 24px; padding: 0 24px; text-align: center; font-family: var(--body); font-size: 24px; font-weight: 500; line-height: 1.3; color: #fff; text-transform: none; letter-spacing: 0; }
.wmodal__list { list-style: none; margin: 0; padding: 0; }
.wmodal__row { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 6px; background: none; color: #fff; font-family: var(--body); font-size: 16px; font-weight: 500; text-decoration: none; cursor: pointer; text-align: left; }
.wmodal__row:hover, .wmodal__row:focus-visible { background: #1a1f2e; outline: none; }
.wmodal__row img, .wmodal__ico { width: 28px; height: 28px; border-radius: 6px; flex: 0 0 auto; }
.wmodal__ico { display: grid; place-items: center; background: #1a1f2e; color: #999; font-weight: 700; font-size: 14px; }
.wmodal__row small { margin-left: auto; font-size: 14px; font-weight: 400; color: #fff; opacity: .6; }
.wmodal__more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 8px; padding: 12px; border: 0; background: none; color: #fff; font-family: var(--body); font-size: 14px; font-weight: 500; cursor: pointer; }
.wmodal__more::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
.wmodal__more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.wmodal__empty { text-align: center; color: #fff; padding: 8px 0 16px; }
.wmodal__empty p { margin: 0 0 20px; font-size: 16px; }
.wmodal__get { display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; height: 48px; border-radius: 4px; background: #512da8; color: #fff; font-weight: 600; font-size: 16px; text-decoration: none; }
.wmodal__get:hover { background: #5e37b8; color: #fff; }
@media (prefers-reduced-motion: reduce) { .wmodal, .wmodal__card { transition: none; } }

/* ---------- "?" tooltips ---------- */
.tip { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: .35rem; padding: 0; border-radius: 50%; border: 1px solid var(--cream-dim); background: none; color: var(--cream-dim); font: 700 .62rem/1 var(--body); letter-spacing: 0; text-transform: none; vertical-align: middle; cursor: help; }
.tip:hover, .tip:focus-visible { color: var(--ink); background: var(--cream); border-color: var(--cream); outline: none; }
.tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 20; width: 260px; padding: .6rem .75rem; border-radius: 10px; background: var(--cream); color: var(--ink); font: 400 .78rem/1.4 var(--body); text-transform: none; letter-spacing: 0; text-align: left; white-space: normal; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .9); transform: translate(-50%, 4px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.tip::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 2px); border: 6px solid transparent; border-top-color: var(--cream); transform: translateX(-50%); opacity: 0; transition: opacity .15s; z-index: 21; }
.tip:hover::after, .tip:focus-visible::after, .tip:hover::before, .tip:focus-visible::before { opacity: 1; transform: translate(-50%, 0); }
.tip:hover::before, .tip:focus-visible::before { transform: translateX(-50%); }
.wg__two > div:last-child .tip::after { left: auto; right: -8px; transform: translate(0, 4px); }
.wg__two > div:last-child .tip:hover::after, .wg__two > div:last-child .tip:focus-visible::after { transform: none; }
.wg__cap label { display: inline-flex; align-items: center; }
.wg__capin { display: inline-flex; align-items: center; gap: .4rem; }
.wg__capnum { width: 6.5rem; padding: .2rem .5rem; border-radius: 7px; border: 1px solid var(--line); background: var(--ink-3); color: var(--cream); font: inherit; font-size: .8rem; font-weight: 700; }
.wg__capnum:focus { outline: 2px solid var(--amber); outline-offset: 0; }
@media (max-width: 560px) { .tip::after { width: 220px; } }
@media (prefers-reduced-motion: reduce) { .tip::after, .tip::before { transition: none; } }

/* ---------- why drop on the cat ---------- */
.why { padding-block: clamp(3rem, 7vw, 5.5rem); background: var(--ink-2); border-bottom: 1px solid var(--line); }
.why__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.why__grid li { position: relative; padding: 1.25rem 1.25rem 1.25rem 1.25rem; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); }
.why__n { position: absolute; right: 1rem; top: .75rem; font-family: var(--display); font-size: 2.6rem; line-height: 1; color: rgba(255, 179, 71, .22); }
.why__grid h3 { margin: 0 0 .4rem; font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-size: 1.35rem; line-height: 1.05; font-weight: 400; padding-right: 2.5rem; }
.why__grid p { margin: 0; color: var(--cream-dim); font-size: .92rem; line-height: 1.5; }
.why__grid p b { color: var(--amber); font-family: var(--display); font-weight: 400; font-size: 1.1em; }
@media (max-width: 900px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why__grid { grid-template-columns: 1fr; } }
/* buy links on the board */
.lb-buy { font-weight: 700; color: var(--amber); }
.pola__buy { display: inline-block; margin-top: .7rem; padding: .45em .9em; border-radius: 999px; background: var(--ink); color: var(--cream); font-family: var(--display); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; text-decoration: none; transition: background .15s; }
.pola__buy:hover { background: #22304f; color: var(--cream); }

/* ---------- warnings (unverified / low cap / thin pool): separate from achievement stickers ---------- */
.wtag { display: inline-block; margin-right: .3rem; padding: .12em .45em; border-radius: 4px; border: 1px solid rgba(255, 59, 92, .6); color: #ff8a9e; background: rgba(255, 59, 92, .1); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; cursor: help; white-space: nowrap; }
.lb-row__warn { display: block; margin-top: .2rem; }
.lb-row__name code, .drop__foot code { font-size: .92em; color: var(--cream-dim); overflow-wrap: anywhere; }
.pola__warn { position: absolute; left: 6px; bottom: 6px; display: flex; flex-wrap: wrap; gap: .25rem; }
.pola__warn .wtag { margin: 0; background: rgba(10, 14, 26, .85); border-color: #ff3b5c; color: #ff8a9e; }
.drop__warn { margin: 0; padding: .55rem .8rem; border-radius: 10px; border: 1px solid rgba(255, 59, 92, .5); background: rgba(255, 59, 92, .08); color: var(--cream-dim); font-size: .85rem; }
.drop__warn b { color: #ff8a9e; }
/* hostile or merely long strings are clipped inside their own box */
.pola__sym, .pola__asset, .lb-row__name b, .wmodal__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pola__sym { display: block; }
.lb-row__name b { display: block; }
.wmodal__name { min-width: 0; flex: 0 1 auto; }
.pola, .lb-row, .wg, .wmodal__card { overflow-wrap: anywhere; }
.pola { overflow: visible; } .pola figcaption { overflow: hidden; }

.lb-row__name .lb-row__warn { white-space: normal; overflow: visible; }

.wg:not(.is-connected) .wg__when { display: none; }   /* the echo lines matter once there is something to echo */
