/* Quantum launches: the main site's look (near-black, mono labels, neon accents). Solana purple and Robinhood lime are
   the two copies of a particle in superposition; cyan is a collapsed result; magenta is a collapse in progress. */
:root {
  --bg: #05060a; --bg2: #0a0d16; --fg: #e8f0ff; --muted: #8a95ad; --dim: #4a556b;
  --line: rgba(120, 140, 180, 0.14); --line-2: rgba(120, 140, 180, 0.3); --card: rgba(140, 160, 200, 0.045);
  --cyan: #18e0ff; --sol: #9945ff; --green: #14f195; --rh: #ccff00; --magenta: #ff2fb0; --amber: #ffb020;
  --maxw: 1180px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --disp: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 70% -10%, rgba(153, 69, 255, 0.12), transparent 60%), radial-gradient(900px 500px at 0% 10%, rgba(24, 224, 255, 0.07), transparent 60%), var(--bg); color: var(--fg); font: 400 15.5px/1.55 var(--disp); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 16px; margin-bottom: 10px; }
.mono, code { font-family: var(--mono); }
.muted { color: var(--muted); } .small { font-size: 13px; } .bad { color: var(--magenta); }
.link { color: var(--cyan); border-bottom: 1px solid rgba(24, 224, 255, 0.3); }
::selection { background: var(--cyan); color: #021014; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.banner { text-align: center; font: 500 12px var(--mono); letter-spacing: 0.06em; color: #1a1300; background: linear-gradient(90deg, var(--amber), #ffd36b); padding: 6px 12px; }
.nav { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(5, 6, 10, 0.7); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.brand .mark { width: 22px; height: 22px; color: var(--cyan); filter: drop-shadow(0 0 6px rgba(24, 224, 255, 0.5)); }
.mark svg, .noimg svg { width: 100%; height: 100%; display: block; overflow: visible; }
.brand small { font: 500 11px var(--mono); letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover, .nav-links a.on { color: var(--fg); }
.wbox { position: relative; }
.js-wallet.on { border-color: rgba(24, 224, 255, 0.4); }
.wdot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.wmenu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #0b0f1a; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6); z-index: 60; }
.wm-head { display: grid; gap: 2px; padding: 10px 12px 8px; font-size: 14px; }
.wm-head .muted { font-size: 12px; }
.wm-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 9px; background: none; border: 0; cursor: pointer; font-size: 14px; }
.wm-item:hover { background: var(--card); }
.wm-item img { width: 22px; height: 22px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; padding: 11px 17px; font-weight: 600; font-size: 14.5px; border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(120deg, var(--green), var(--cyan)); color: #021410; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 30px rgba(24, 224, 255, 0.22); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 8px 40px rgba(24, 224, 255, 0.38); }
.btn-ghost { border-color: var(--line-2); background: var(--card); }
.btn-ghost:hover { border-color: rgba(120, 140, 180, 0.5); }
.btn-sm { padding: 8px 13px; font-size: 13.5px; }
.btn.wide { width: 100%; margin-top: 12px; }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(24, 224, 255, 0.25); border-radius: 999px; padding: 5px 11px; background: rgba(24, 224, 255, 0.05); }
.eyebrow.mg { color: var(--magenta); border-color: rgba(255, 47, 176, 0.35); background: rgba(255, 47, 176, 0.06); }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; animation: ping 2.2s infinite; }
@keyframes ping { 50% { opacity: 0.35; } }
.chip { display: inline-flex; align-items: center; font: 600 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.c-superposed { color: var(--rh); border-color: rgba(204, 255, 0, 0.35); box-shadow: -1px 0 0 rgba(153, 69, 255, 0.6); }
.c-armed, .c-collapsed { color: var(--magenta); border-color: rgba(255, 47, 176, 0.4); }
.c-live { color: var(--green); border-color: rgba(20, 241, 149, 0.4); }
.c-graduating, .c-graduated { color: var(--cyan); border-color: rgba(24, 224, 255, 0.4); }
.tk { font: 600 0.8em var(--mono); color: var(--muted); }
.bar { height: 6px; border-radius: 999px; background: rgba(120, 140, 180, 0.15); overflow: hidden; margin: 8px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sol), var(--cyan), var(--rh)); border-radius: inherit; box-shadow: 0 0 12px rgba(24, 224, 255, 0.5); }

/* ---------------------------------------------------------------- home */
.hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 52px 0 30px; }
.hero h1 { font-size: clamp(42px, 6.5vw, 76px); margin: 18px 0 0; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--sol), var(--cyan) 55%, var(--rh)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #b6c1d6; font-size: clamp(16px, 1.5vw, 19px); margin: 18px 0 24px; max-width: 32em; }
.lede b { color: var(--fg); font-weight: 600; }
.next { text-align: center; padding: 26px 20px; }
.next .lbl { font: 500 12px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.next .big { font: 600 clamp(48px, 7vw, 72px) var(--mono); letter-spacing: -0.03em; margin: 6px 0; background: linear-gradient(90deg, var(--sol), var(--cyan), var(--rh)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.next .sub { color: var(--muted); font-size: 13.5px; }
.nights { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.nchip { font: 500 11px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line); }
.nchip.br { color: var(--cyan); border-color: rgba(24, 224, 255, 0.3); }
.nchip.hd { color: var(--amber); border-color: rgba(255, 176, 32, 0.35); }
.group { margin-top: 34px; }
.ghead { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ghead h2 { font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.none { padding: 18px; border: 1px dashed var(--line); border-radius: 14px; font-size: 14px; }
.lcard { display: grid; gap: 10px; transition: border-color 0.2s ease, transform 0.15s ease; }
.lcard:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lc-top { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lc-top img, .lc-top .noimg { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; background: var(--bg2); }
.lc-top b { font-size: 15.5px; }
.noimg { display: grid; place-items: center; color: var(--cyan); padding: 8px; }
.lc-stat { font-size: 14px; color: var(--muted); }
.lc-stat b { color: var(--fg); }
.lc-when { font: 500 12.5px var(--mono); color: var(--muted); }
.lc-when b { color: var(--rh); }
.s-superposed { box-shadow: inset 2px 0 0 rgba(153, 69, 255, 0.5), inset -2px 0 0 rgba(204, 255, 0, 0.3); }
.how { margin: 46px 0 10px; }
.steps { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; color: #b6c1d6; max-width: 820px; }
.steps b { color: var(--fg); }

/* ---------------------------------------------------------------- create */
.form-wrap { max-width: 760px; margin: 0 auto; padding: 40px 0; display: grid; gap: 14px; }
.form-wrap h1 { font-size: 34px; }
.cform { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
.drop { display: grid; place-items: center; text-align: center; aspect-ratio: 1; border: 1.5px dashed var(--line-2); border-radius: 16px; cursor: pointer; overflow: hidden; background: var(--bg2); transition: border-color 0.2s; }
.drop.over, .drop:hover { border-color: var(--cyan); }
.drop span { display: grid; gap: 4px; place-items: center; padding: 12px; }
.drop svg { width: 46px; height: 46px; color: var(--cyan); opacity: 0.7; }
.drop img { width: 100%; height: 100%; object-fit: cover; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields label, .adv label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.opt { font-style: normal; font-size: 11.5px; color: var(--dim); margin-left: 4px; }
.fields .wide { grid-column: 1 / -1; }
input, textarea, select { background: rgba(5, 6, 10, 0.6); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; color: var(--fg); width: 100%; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(24, 224, 255, 0.12); }
textarea { resize: vertical; }
.cost { grid-column: 1 / -1; font-size: 13.5px; padding: 12px 14px; border-radius: 10px; background: rgba(24, 224, 255, 0.05); border: 1px solid rgba(24, 224, 255, 0.18); }
.cform > p, .cform > .btn { grid-column: 1 / -1; }

/* ---------------------------------------------------------------- a launch */
.lp-head { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; align-items: center; padding: 30px 0 20px; }
.lp-head > img, .lp-head > .noimg { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: var(--bg2); }
.lp-head h1 { font-size: clamp(26px, 3.4vw, 38px); }
.lh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; }
.lh-desc { margin-top: 10px; color: #b6c1d6; max-width: 60em; font-size: 14.5px; }
.copy { background: none; border: 0; cursor: pointer; color: var(--muted); font: 500 12.5px var(--mono); padding: 0; }
.copy:hover { color: var(--fg); }
.skel { height: 76px; border-radius: 16px; background: var(--card); grid-column: 1 / -1; }
.lp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; padding-bottom: 40px; }
.lp-main, .lp-side { display: grid; gap: 16px; min-width: 0; }
.lp-side { position: sticky; top: 76px; }
.fieldcard { position: relative; padding: 0; height: 330px; overflow: hidden; background: radial-gradient(600px 300px at 50% 60%, rgba(24, 224, 255, 0.06), transparent 70%), rgba(5, 6, 10, 0.6); }
.fieldcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ov { position: absolute; left: 18px; top: 16px; display: grid; gap: 6px; justify-items: start; pointer-events: none; }
.ov-big { font: 600 clamp(30px, 4vw, 44px) var(--mono); letter-spacing: -0.02em; }
.ov-sub { color: var(--muted); font-size: 13.5px; }
.chartcard { padding: 14px 14px 6px; }
.ch-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.chart { height: 300px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 12px; background: rgba(5, 6, 10, 0.5); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: none; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.tabs button.on { background: var(--card); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-2); }
.amt { position: relative; margin-top: 8px; }
.amt input { font-size: 20px; padding: 12px 70px 12px 14px; }
.amt span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font: 500 13px var(--mono); }
.quick { display: flex; gap: 6px; margin-top: 8px; }
.quick button { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px; cursor: pointer; font: 500 12.5px var(--mono); }
.quick button:hover { border-color: var(--line-2); }
.slip { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.slip select { width: auto; padding: 4px 8px; }
.adv { margin-top: 10px; font-size: 13px; color: var(--muted); }
.adv summary { cursor: pointer; }
.quote { margin-top: 12px; font-size: 13.5px; min-height: 2.6em; color: #c6d0e2; }
.quote b { color: var(--fg); }
dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; }
dd .bar { margin-top: 6px; }
.mc { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mc:last-child { border-bottom: 0; }
.claim { margin-left: 8px; border: 1px solid rgba(24, 224, 255, 0.45); background: rgba(24, 224, 255, 0.08); color: var(--cyan); border-radius: 7px; padding: 2px 9px; font: 600 12px var(--disp); cursor: pointer; }
.nres { font-size: 14px; line-height: 1.6; padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; }
.nres.br { background: rgba(24, 224, 255, 0.06); border: 1px solid rgba(24, 224, 255, 0.2); }
.nres.hd { background: rgba(255, 176, 32, 0.06); border: 1px solid rgba(255, 176, 32, 0.25); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font: 500 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.me td { background: rgba(24, 224, 255, 0.06); }
.up { color: var(--green); } .dn { color: var(--magenta); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--cyan); border-bottom: 1px solid rgba(24, 224, 255, 0.3); cursor: pointer; font: inherit; }
.empty { padding: 90px 0; text-align: center; display: grid; gap: 14px; }

.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 8px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; } /* never in the way of a click */
.toasts a { pointer-events: auto; }
.toast { background: #0b0f1a; border: 1px solid var(--line-2); border-left: 3px solid var(--cyan); border-radius: 12px; padding: 11px 14px; font-size: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); animation: rise 0.25s ease; }
.toast.busy { border-left-color: var(--amber); }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--magenta); }
.toast a { color: var(--cyan); margin-left: 6px; }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
.foot { padding: 30px 20px 40px; border-top: 1px solid var(--line); margin-top: 30px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  /* one column: the action right under the field, then the numbers, then the history */
  .lp-grid { grid-template-columns: minmax(0, 1fr); }
  .lp-main, .lp-side { display: contents; }
  .fieldcard { order: 1; } .js-action { order: 2; } .js-mine { order: 3; } .js-stats { order: 4; } .chartcard { order: 5; } .js-order { order: 6; } .js-feed { order: 7; } .js-night { order: 8; }
  .cform { grid-template-columns: minmax(0, 1fr); }
  .drop { width: 160px; justify-self: center; }
}
@media (max-width: 640px) {
  .nav .wrap { gap: 12px; }
  .nav-links { gap: 14px; font-size: 14px; }
  .nav-links a:first-child, .nav-links a:last-child { display: none; }
  .js-wallet .muted { display: none; }
  .brand small { display: none; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .fieldcard { height: 260px; }
  .tbl td:nth-child(5), .tbl th:nth-child(5) { display: none; }
  .wrap { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* a live coin: where to trade it */
.tradeon { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 10px; }
.tradeon .btn { justify-content: center; text-align: center; padding-left: 8px; padding-right: 8px; }
/* the create form's launch settings: a full-width panel, compact fields */
.cform > .csettings { grid-column: 1 / -1; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(5, 6, 10, 0.35); }
.csettings > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 14px; }
.csettings > summary::-webkit-details-marker { display: none; }
.csettings > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); transition: transform 0.2s; flex: none; }
.csettings[open] > summary::before { transform: rotate(45deg); }
.csettings > summary b { font-weight: 600; }
.csettings > summary .hint { margin-left: auto; color: var(--dim); font-size: 12px; text-align: right; }
.sgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px 12px; padding: 4px 14px 16px; align-items: start; }
.sgrid label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.sgrid .s2 { grid-column: span 2; } .sgrid .s3 { grid-column: span 3; } .sgrid .s6 { grid-column: 1 / -1; }
.sgrid small { font-size: 11.5px; line-height: 1.45; color: var(--dim); }
.sgrid .amt { margin-top: 0; }
.sgrid .amt input { font-size: 15px; padding: 9px 48px 9px 12px; }
.sgrid .amt span { right: 12px; font-size: 12px; }
.sgrid select { padding: 9px 10px; font-size: 14px; }
@media (max-width: 720px) {
  .sgrid { grid-template-columns: minmax(0, 1fr); }
  .sgrid .s2, .sgrid .s3 { grid-column: 1 / -1; }
  .csettings > summary { flex-wrap: wrap; }
  .csettings > summary .hint { margin-left: 17px; text-align: left; width: 100%; }
}
