/* tweeteora on Meteora: Meteora's own look. A deep navy night, Inter, soft
   indigo surfaces, a purple-to-orange signature gradient for the brand
   moments, green and red only for money up and down. Loaded last: it
   redefines the tokens app.css and parts.css are built on. */
:root {
  --bg: #12121c; --bg-2: #181825; --card: #1c1c2b;
  --ink: #f9f9fb; --ink-2: #9595b2; --ink-3: #6c6c89;
  --hair: #262636; --hair-2: #2a2a3c;
  --green: #24c98d; --green-2: #24c98d; --green-soft: rgba(36, 201, 141, 0.12);
  --red: #f04438;
  --purple: #6e45ff; --purple-2: #8664ff; --purple-soft: rgba(110, 69, 255, 0.16);
  --orange: #f54b00; --orange-2: #f8824e; --orange-soft: rgba(245, 75, 0, 0.16);
  --brand: linear-gradient(90deg, #6e45ff, #f54b00);
  --night: #0d0d13; --night-2: #181825; --night-3: #262636; --night-tx: #f9f9fb; --night-tx-2: #9595b2; --night-tx-3: #6c6c89;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 12px 32px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}
body { background: var(--bg); }
/* a faint glow of the brand colours behind the hero */
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 900px; pointer-events: none; z-index: -1;
  background: radial-gradient(600px 380px at 78% 18%, rgba(110, 69, 255, 0.22), transparent 70%), radial-gradient(520px 320px at 92% 46%, rgba(245, 75, 0, 0.14), transparent 70%); }

/* nav */
.nav { background: rgba(18, 18, 28, 0.72); }
.nav.dark { background: rgba(13, 13, 19, 0.8); }
.word { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav.dark .word { color: transparent; }

/* buttons: the primary is the brand gradient */
.btn-dark, .nav.dark .btn-dark { background: var(--brand); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 26px -10px rgba(110, 69, 255, 0.7); }
.btn-dark:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 16px 34px -12px rgba(245, 75, 0, 0.6); }
.btn-line { background: var(--bg-2); border-color: var(--hair-2); color: var(--ink); }
.btn-line:hover { border-color: var(--purple-2); }

/* hero */
.pill { background: var(--bg-2); box-shadow: 0 0 0 1px var(--hair); }
.pill-live::after { background: rgba(36, 201, 141, 0.2); }
.hero h1 .soft { background: linear-gradient(90deg, #8664ff, #f8824e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag-h { color: var(--purple-2); }
.scard { background: linear-gradient(180deg, #202031, #1a1a29); }
.scard::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.05); }
.scard[data-i="1"], .scard[data-i="2"] { filter: brightness(0.8); }
.sc-foot .sc i { background: var(--hair); }
.sc-foot .sc i u { background: var(--ink-2); }
.scard[data-i="0"] .sc i u { background: var(--brand); }
.av { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }

/* the live round */
.stage { background: var(--night); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.st-k { color: var(--green); }
.ring-fg { stroke: url(#ring-grad); }
.ring.late .ring-fg { stroke: var(--orange-2); }
.meter-kv { background: var(--hair); }
.meter-kv div { background: var(--bg-2); }
.row .sc i u { background: var(--ink-3); }
.row.top .sc i u { background: var(--brand); }
.row.top .rk { color: var(--purple-2); }
.stage-lead .won { background: var(--brand); }
.vote { background: var(--bg-2); border-color: var(--hair-2); }
.vote:hover { background: var(--brand); border-color: transparent; color: #fff; }
.vote.done { color: var(--green); border-color: rgba(36, 201, 141, 0.35); background: var(--green-soft); }

/* sections */
.fcard { background: var(--bg-2); }
.fcard .tk span { color: var(--purple-2); background: var(--purple-soft); }
.steps { border-top-color: var(--hair-2); }
.steps em { color: var(--purple-2); }
.bar3 i:nth-child(1) { background: var(--purple); }
.bar3 i:nth-child(2) { background: var(--orange); }
.bar3 i:nth-child(3) { background: var(--hair-2); }
.nums div { border-top-color: var(--hair-2); }
.foot-word { color: var(--bg-2); }
.toast { background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); }
.toast.bad { background: #3a1414; color: #ffd7d3; }

/* the launch sheet (anyone's own coin) and the winner claim */
.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(8, 8, 12, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; }
.sheet-bg[hidden] { display: none; }
.sheet { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-2); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 26px; }
.sheet h3 { margin: 0 0 6px; font: 600 26px/1.1 var(--sans); letter-spacing: -0.03em; }
.sheet .sub { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; }
.sheet label { display: block; margin: 14px 0 6px; font-size: 13px; color: var(--ink-2); }
.sheet input, .sheet textarea { width: 100%; background: var(--bg); border: 1px solid var(--hair-2); border-radius: 12px; color: var(--ink); font: 400 15px var(--sans); padding: 11px 13px; outline: none; }
.sheet input:focus, .sheet textarea:focus { border-color: var(--purple-2); }
.sheet textarea { min-height: 84px; resize: vertical; }
.sheet .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet .fees { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--purple-soft); color: var(--ink-2); font-size: 13.5px; }
.sheet .acts { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.sheet .code { font: 500 20px var(--mono); letter-spacing: 0.08em; padding: 14px; text-align: center; border-radius: 12px; background: var(--bg); border: 1px dashed var(--purple-2); margin: 10px 0; }
.fcard .claim { margin-top: 16px; height: 36px; border-radius: 999px; border: 1px solid var(--purple-2); background: var(--purple-soft); color: var(--ink); font: 500 13.5px var(--sans); cursor: pointer; }
.fcard .claim:hover { background: var(--brand); border-color: transparent; }
.fcard .claimed { margin: 14px 0 0; flex: 0; font-size: 13px; color: var(--green); }
.linkish { background: none; border: 0; padding: 0; color: var(--purple-2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cl-steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.9; }
.cl-steps b, .sheet .sub b { color: var(--ink); }
.sheet .sub a { color: var(--purple-2); }
.btn-line { font-family: var(--sans); font-size: 13.5px; }

/* Meteora launchpad marks */
.met-badge { display: inline-flex; align-items: center; gap: 7px; margin-left: 14px; height: 28px; padding: 0 11px 0 7px; border-radius: 999px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--hair-2); font: 500 12px var(--sans); color: var(--ink-2); white-space: nowrap; }
.met-badge:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--purple-2); }
.nav-links { margin-left: auto; margin-right: auto; }
.built-on { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(24, 24, 37, 0.7); box-shadow: 0 0 0 1px var(--hair); max-width: 470px; }
.built-on b { display: block; font-weight: 600; font-size: 14px; }
.built-on small { display: block; color: var(--ink-3); font-size: 12.5px; line-height: 1.4; }
.built-on:hover { box-shadow: 0 0 0 1px var(--purple-2); }
.foot-row a { color: var(--ink-2); display: inline-flex; align-items: center; gap: 5px; vertical-align: -2px; }
.foot-row a:hover { color: var(--ink); }
@media (max-width: 900px) { .met-badge { display: none; } }

/* the launch sheet: custom controls only (no native file, select or checkbox) */
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sheet.wide { width: min(620px, 100%); }
.sheet-head { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.sheet .lbl { display: block; margin: 16px 0 8px; font-size: 13px; color: var(--ink-2); }
.lf-top { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 16px; align-items: end; }
.lf-top .lf-fields label:first-child { margin-top: 0; }
.drop { position: relative; display: grid; place-items: center; height: 148px; margin: 0; border-radius: 16px; border: 1.5px dashed var(--hair-2); background: var(--bg); color: var(--ink-3); cursor: pointer; overflow: hidden; transition: border-color 0.2s, background 0.2s; }
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--purple-2); background: var(--purple-soft); color: var(--ink-2); outline: none; }
.drop-in { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 10px; }
.drop-in svg { width: 24px; height: 24px; }
.drop-in b { color: var(--ink); font-weight: 500; font-size: 14px; }
.drop-in small { font-size: 11px; line-height: 1.35; }
.drop-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop.has { border-style: solid; border-color: var(--hair-2); }
.drop-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(8, 8, 12, 0.75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.affix { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--hair-2); border-radius: 12px; }
.affix:focus-within { border-color: var(--purple-2); }
.affix span { padding: 0 4px 0 13px; color: var(--ink-3); font: 500 14px var(--sans); }
.affix.sol span { padding: 0 13px 0 4px; }
.sheet .affix input { border: 0; background: none; padding-left: 4px; }
.types { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type { position: relative; text-align: left; padding: 13px 14px 12px 40px; border-radius: 14px; border: 1px solid var(--hair-2); background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; transition: border-color 0.2s, background 0.2s; }
.type:hover { border-color: var(--ink-3); }
.type::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); transition: box-shadow 0.2s, background 0.2s; }
.type[aria-checked="true"] { border-color: var(--purple-2); background: var(--purple-soft); }
.type[aria-checked="true"]::before { background: var(--brand); box-shadow: inset 0 0 0 4px var(--bg-2); }
.type b { display: block; font-size: 14.5px; font-weight: 600; }
.type small { display: block; margin-top: 4px; color: var(--ink-2); font-size: 12.5px; line-height: 1.45; }
.type .tag { position: absolute; right: 12px; top: 12px; font: 500 11px var(--mono); color: var(--purple-2); }
.buy { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.chips { display: flex; gap: 6px; }
.chips button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--hair-2); background: var(--bg); color: var(--ink-2); font: 500 13.5px var(--sans); cursor: pointer; }
.chips button:hover { color: var(--ink); border-color: var(--ink-3); }
.chips button.on { color: var(--ink); border-color: var(--purple-2); background: var(--purple-soft); }
.sheet .acts { align-items: center; }
.powered { margin-right: auto; display: inline-flex; align-items: center; gap: 7px; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 560px) { .lf-top, .types, .buy { grid-template-columns: 1fr; } .drop { height: 120px; } .powered { display: none; } }
.sheet textarea { resize: none; }

/* scrollbars: ours everywhere, never the browser's */
/* Firefox has only the standard properties; Chrome and Safari use the ::-webkit ones below
   (Chrome ignores those whenever the standard ones are set, so they stay Firefox-only) */
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-width: thin; scrollbar-color: #2e2e44 var(--bg); }
  .sheet, textarea { scrollbar-width: thin; scrollbar-color: #34344c transparent; }
}
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2e2e44; border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6e45ff, #f54b00) padding-box; border: 3px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-track { background: var(--bg); }
.sheet::-webkit-scrollbar { width: 8px; }
.sheet::-webkit-scrollbar-thumb { border-width: 2px; background-color: #34344c; }

/* the wordmark: white, bold, like Meteora's own */
.word, .nav.dark .word { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; font: 700 21px var(--sans); letter-spacing: -0.035em; }
.foot-word { letter-spacing: -0.06em; }
.word { display: inline-flex; align-items: center; gap: 9px; }
.word-mark { width: 30px; height: 30px; flex: none; }

/* people and coins: X pictures, X links, coin pictures */
.av { position: relative; overflow: hidden; }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
a.xl { color: inherit; }
a.xl:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a.xl:has(.av):hover, a.xl:has(.sc-x):hover { text-decoration: none; }
a.xl:has(.av) { display: inline-flex; border-radius: 50%; }
a.xl:has(.av):hover .av { box-shadow: 0 0 0 2px var(--purple-2); }
.stage a.xl:hover { color: var(--night-tx); }
.fcard .tk { align-items: center; }
.coin-pic { position: relative; flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 18px var(--sans); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px -10px rgba(0, 0, 0, 0.6); }
.coin-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard .tk-n { flex: 1; min-width: 0; }
.fcard .tk-n b { display: block; font: 600 26px/1.05 var(--sans); letter-spacing: -0.045em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fcard .tk-n .coin { margin: 4px 0 0; }
.fcard .tk > span:last-child { align-self: flex-start; }
.fcard .who { gap: 10px; }
.fcard .who .sc-x { margin-left: auto; width: 15px; height: 15px; color: var(--ink-3); }
.fcard .who a.xl:last-child { margin-left: auto; }
.fcard .who a.xl:last-child:hover .sc-x { color: var(--ink); }

/* the nav never wraps: less goes when there's less room */
.nav-links a, .nav-r > * { white-space: nowrap; }
.nav-r { gap: 10px; }
@media (max-width: 1360px) { .nav-links { gap: 20px; } .nav-tok { display: none; } }
@media (max-width: 1220px) { .nav-links { display: none; } .nav-r { margin-left: auto; } }
@media (max-width: 760px) { #btn-tweet { display: none; } }
.fcard .tk .coin-pic { height: 56px; width: 56px; padding: 0; border-radius: 16px; background: var(--brand); color: #fff; font: 700 18px var(--sans); }
.sc-top > a.xl:last-child { margin-left: auto; display: inline-flex; color: var(--ink-2); }
.sc-top > a.xl:last-child:hover { color: var(--ink); }
.sc-top > a.xl:last-child .sc-x { margin-left: 0; }

/* live coin numbers on the cards */
.live { margin: 4px 0 18px; padding: 14px 14px 12px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow 0.6s var(--ease), background 0.6s var(--ease); }
.live.wait { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.live-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.live small { display: block; font-size: 11.5px; color: var(--ink-3); }
.live-top b { font: 700 24px/1.15 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.live em { font-style: normal; font: 600 12.5px var(--sans); margin-left: 8px; }
.up { color: var(--green); }
.down { color: var(--red); }
.live .last { flex: none; height: 24px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; font: 600 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.live .last.buy { color: var(--green); background: var(--green-soft); }
.live .last.sell { color: var(--red); background: rgba(240, 68, 56, 0.12); }
.live-kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.live-kv b { font: 600 14.5px var(--sans); font-variant-numeric: tabular-nums; }
.prog { margin-top: 12px; height: 6px; border-radius: 999px; background: var(--hair); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.6s var(--ease); }
.prog.done i { background: var(--green); }
.prog-l { margin-top: 6px; }
.live.flash-buy { animation: flashBuy 1.1s var(--ease); }
.live.flash-sell { animation: flashSell 1.1s var(--ease); }
@keyframes flashBuy { 0% { box-shadow: inset 0 0 0 1px var(--green), 0 0 0 4px rgba(36, 201, 141, 0.18); background: rgba(36, 201, 141, 0.07); } 100% { box-shadow: inset 0 0 0 1px var(--hair); background: var(--bg); } }
@keyframes flashSell { 0% { box-shadow: inset 0 0 0 1px var(--red), 0 0 0 4px rgba(240, 68, 56, 0.16); background: rgba(240, 68, 56, 0.06); } 100% { box-shadow: inset 0 0 0 1px var(--hair); background: var(--bg); } }
.nav-tok b { color: var(--ink); font-weight: 600; }
.nav-tok em { font-style: normal; margin-left: 6px; }
@media (prefers-reduced-motion: reduce) { .live.flash-buy, .live.flash-sell { animation: none; } }
.fcard .tk .coin-pic { display: grid; place-items: center; text-align: center; }
