@font-face {
  font-family: Geist;
  src: url('/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Inter Tight;
  src: url('/inter-tight-700.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --base: #0e0e11; --surface: #151519; --raised: #1b1b21; --rule: #33333c;
  --ink: #f0eef3; --quiet: #b2afb9; --steel: #c5ceee;
  --iris: #aebeff; --copper: #efb7a1; --ready: #abe5ce;
  --mono: "Cascadia Mono", Consolas, monospace;
  --out: cubic-bezier(.23, 1, .32, 1);
  font-family: Geist, system-ui, sans-serif;
  letter-spacing: 0;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #0b0c14; color: var(--ink); isolation: isolate; }
body[data-view=entry] #application, body[data-view=app] .entry { display: none; }
.optic-field {
  position: fixed; z-index: -1; inset: 0; overflow: clip; pointer-events: none;
  background: linear-gradient(148deg, #141730 1%, #0a0d17 48%, #111121 72%, #251b24);
}
.optic-field canvas {
  display: block; width: 100%; height: 100%; opacity: .18;
  transition: opacity 260ms var(--out), transform 270ms var(--out);
}
.optic-field::after {
  content: ""; position: absolute; inset: 0; opacity: .34;
  background: repeating-linear-gradient(0deg, transparent 0 5px, #8b85c72e 5px 6px);
  mask-image: linear-gradient(139deg, #000 3%, transparent 42% 62%, #000);
}
[data-view=entry] .optic-field {
  background: linear-gradient(150deg, #10142b 2%, #0b0e1a 43%, #14162b 78%, #2a1b24);
}
[data-view=entry] .optic-field canvas { opacity: 1; }
[data-view=entry] .optic-field::before {
  content: ""; position: absolute; z-index: 1; inset: 0;
  background: radial-gradient(ellipse 38% 30% at center, #0a0d18f2 4%, #0a0d18db 35%, transparent);
}
body:has(.entry[data-opening]) .optic-field canvas { transform: scale(1.08); opacity: .3; }

.entry {
  position: relative; display: grid; place-items: center; width: 100%; min-height: 100svh;
  border: 0; margin: 0; padding: 42px 18px; overflow: clip;
}
.entry-content { text-align: center; max-width: 100%; transition: opacity 220ms var(--out), transform 240ms var(--out); }
.entry-content h1 { font-size: 84px; line-height: 1; margin-bottom: 11px; text-shadow: 0 2px 24px #080b16; }
.entry-content h1 span { color: #ccd4ff; }
.entry-content p { font-size: 16px; font-weight: 580; color: #d8daeb; text-shadow: 0 1px 4px #0c0f1b; }
.enter {
  position: relative; display: inline-flex; isolation: isolate;
  align-items: center; justify-content: center; gap: 19px; min-width: 177px; min-height: 53px;
  margin-top: 29px; padding: 10px 19px; overflow: clip; border-radius: 5px; border: 1px solid #bfcaff;
  background: #21213c; box-shadow: 0 3px 0 #3b4277, inset 0 1px #e9ebff4d, 0 0 26px #6759e64a;
  font-weight: 710; color: #f4f0ff; transition: color 140ms var(--out), background 140ms var(--out), transform 120ms var(--out), box-shadow 140ms var(--out);
}
.enter > span { position: relative; z-index: 1; }
.enter-cut { width: 12px; height: 13px; border-block: 1px solid #d7deff; transform: skewX(-29deg); }
.enter-cut::after { content: ""; position: absolute; inset: 4px 0; background: #e4bcab; }
.enter::before {
  content: ""; position: absolute; inset: -1px; opacity: 0;
  background: linear-gradient(115deg, transparent 10%, #9daaff8a 44%, #f2bba37a 51%, transparent 77%);
  transform: translateX(-85%); transition: transform 260ms var(--out), opacity 140ms var(--out);
}
.enter:hover, .enter:focus-visible { background: #333259; box-shadow: 0 3px 0 #3e477d, inset 0 1px #e9ebff59, 0 0 37px #8f84ff62; }
.enter:hover::before, .enter:focus-visible::before { transform: translateX(13%); opacity: 1; }
.enter:active { transform: translateY(2px); box-shadow: 0 1px 0 #3e477d, inset 0 1px #e9ebff59, 0 0 20px #8f84ff62; }
.entry[data-opening] .entry-content { opacity: 0; transform: translateY(-7px); }
.social-x {
  display: grid; place-items: center; width: 43px; min-height: 43px; flex: none;
  color: var(--ink); background: #151624b0; border: 1px solid #afaae349; border-radius: 5px;
  transition: background 160ms var(--out), border-color 160ms var(--out), transform 120ms var(--out);
}
.social-x:hover, .social-x:focus-visible { background: #352d4c; border-color: var(--copper); }
.social-x:active { transform: translateY(2px); }
.entry-social { position: absolute; right: max(17px, env(safe-area-inset-right)); bottom: max(17px, env(safe-area-inset-bottom)); }
#application[data-entered] { animation: app-in 240ms var(--out) both; }
@keyframes app-in { from { opacity: .35; } to { opacity: 1; } }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button, .inline-link, .text-link { min-height: 43px; }
button {
  padding: 0 15px; border: 1px solid #e7eaff; border-radius: 5px;
  background: #cbd5ff; color: #141b38; font-size: 14px; font-weight: 720;
  cursor: pointer; box-shadow: 0 3px 0 #4e5b98;
  transition: background 160ms var(--out), border-color 160ms var(--out), color 160ms var(--out), transform 120ms var(--out), box-shadow 120ms var(--out);
}
button:hover:not(:disabled) { background: #e3e8ff; }
button:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 1px 0 #4e5b98; }
button:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.secondary, .ghost { color: var(--ink); border-color: #3e4050; background: #20212a; box-shadow: 0 2px 0 #0b0b0d; }
.ghost { color: var(--quiet); background: transparent; border-color: transparent; box-shadow: none; }
.secondary:hover:not(:disabled), .ghost:hover:not(:disabled) { background: #2b2d3b; color: #fff; border-color: #646b90; }
.secondary:active:not(:disabled), .ghost:active:not(:disabled) { box-shadow: 0 1px 0 #0b0b0d; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
h1:focus { outline: none; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  min-height: 77px; padding: 10px max(27px, calc((100% - 1424px) / 2));
  border-bottom: 1px solid #b9a9f324; background: #11111ab3;
}
.brand { display: flex; align-items: center; flex: none; gap: 0; font-family: "Inter Tight", Geist, sans-serif; font-weight: 700; font-size: 27px; }
.brand img { margin-right: 10px; transition: transform 220ms var(--out); }
.brand:hover img { transform: translateY(-2px) rotate(-6deg); }
.brand span { color: #c5cceb; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.chain-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 580; color: var(--quiet); white-space: nowrap; }
.chain-label > span { width: 7px; height: 7px; border: 1px solid #b0d8cb; transform: rotate(45deg); }
#wallet-open { white-space: nowrap; }
.shell { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 164px minmax(0, 1fr); }
.rail {
  position: sticky; align-self: start; top: max(23px, calc(50svh - 136px)); display: grid; gap: 11px;
  margin-top: max(44px, calc(50svh - 208px)); padding: 0 14px 0 19px;
}
.rail a {
  position: relative; display: flex; align-items: center; min-height: 46px;
  padding: 8px 13px; border: 1px solid #afaae349; border-radius: 5px 2px 5px 2px;
  background: #17162385; box-shadow: 0 2px 0 #1110209e;
  color: #ded9f0; font-weight: 660; font-size: 15px; overflow: clip;
  transition: background 160ms var(--out), color 160ms var(--out), transform 120ms var(--out), border-color 160ms var(--out), box-shadow 120ms var(--out);
}
.rail a::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 12px; height: 12px;
  background: linear-gradient(45deg, transparent 45%, #aaa5e577 46% 54%, #382d5b 55%);
}
.rail a:hover, .rail a:focus-visible { color: #fff4ef; background: #4329459e; border-color: #efb7a190; }
.rail a:active { transform: translateY(2px); box-shadow: 0 1px 0 #1110209e; }
.rail a[aria-current] { color: #ebedff; background: #35385b95; border-color: #b3bbf19c; box-shadow: inset 0 -2px #17172e; }
.rail a[aria-current]::after { background: linear-gradient(45deg, transparent 45%, #decbff 46% 54%, #41386b 55%); }
#application main { padding: 38px 36px 62px 37px; min-width: 0; min-height: calc(100svh - 155px); }
.page-title { position: relative; margin-bottom: 32px; padding-bottom: 25px; border-bottom: 1px solid var(--rule); }
h1 { font: 700 51px/.99 "Inter Tight", Geist, sans-serif; margin: 0 0 12px; letter-spacing: 0; }
h2 { font: 700 21px/1.15 "Inter Tight", Geist, sans-serif; margin: 0; }
p { margin: 0; line-height: 1.53; }
.page-title p { color: var(--quiet); font-size: 16px; max-width: 550px; }
.page-title .text-link { position: absolute; right: 0; bottom: 19px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 38px; align-items: start; }
.flow { display: grid; gap: 22px; min-width: 0; }
fieldset { border: 0; border-top: 1px solid var(--rule); padding: 12px 0 0; margin: 0; min-inline-size: 0; }
legend { color: #eeeef3; font-size: 17px; font-weight: 710; padding-inline: 0 12px; }
legend > span { color: var(--iris); font: 650 12px/1 var(--mono); margin-right: 9px; }
small { color: var(--quiet); font-weight: 460; }
label { display: grid; gap: 8px; margin: 10px 0; min-width: 0; color: #d9d7e0; font-size: 14px; font-weight: 630; }
label:has(small) { grid-template-columns: auto 1fr; align-items: baseline; }
label:has(small) :is(input,textarea) { grid-column: 1 / -1; }
label small { font-size: 12px; }
input, textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #393943; border-radius: 5px;
  background: #18181e; color: var(--ink); box-shadow: inset 0 1px #101014;
}
input:focus, textarea:focus { border-color: var(--iris); }
input::placeholder, textarea::placeholder { color: #9895a3; }
textarea { resize: vertical; }
input[type=file] { cursor: pointer; font-size: 13px; padding: 7px 8px; }
input::file-selector-button {
  cursor: pointer; padding: 5px 9px; margin-right: 10px; border: 1px solid #454758; border-radius: 3px;
  background: #242631; color: var(--ink); font: 600 13px Geist, system-ui, sans-serif;
}
.artwork-field { color: var(--steel); }
.join, .actions, .section-title { display: flex; align-items: center; gap: 10px; }
.join input { flex: 1; }
.handle-field { position: relative; }
.handle-field > span { display: block; position: absolute; left: 13px; color: var(--iris); font: 600 16px var(--mono); pointer-events: none; }
.handle-field input { padding-left: 34px; }
.actions { flex-wrap: wrap; margin-top: 10px; }
.section-title { justify-content: space-between; }
.token-fields { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; }
details { color: var(--quiet); font-size: 14px; }
summary { cursor: pointer; min-height: 40px; padding: 10px 0; }
.order-details { border-block: 1px solid var(--rule); }
.order-details summary { display: flex; align-items: baseline; gap: 10px; min-height: 44px; list-style: none; }
.order-details summary::-webkit-details-marker { display: none; }
.order-details summary::before { content: "+"; font: 600 16px var(--mono); color: var(--iris); }
.order-details[open] summary::before { content: "\2212"; }
.order-details summary b { color: var(--ink); font-weight: 690; }
.order-details summary span { margin-left: auto; }
.order-details[open] { padding-bottom: 6px; }
.result, .review {
  display: block; margin-top: 12px; padding: 13px 15px;
  border: 1px solid #45475e; border-left: 2px solid var(--iris); border-radius: 5px;
  background: #1a1d2b; color: var(--ink); overflow-wrap: anywhere;
}
.result { font: 13px/1.6 var(--mono); white-space: pre-wrap; }
.review { border-left-color: var(--copper); }
.review p { margin: 8px 0; white-space: pre-wrap; }
pre.review { font: 13px/1.6 var(--mono); white-space: pre-wrap; max-height: 400px; overflow: auto; }
.muted, .fine-print { color: var(--quiet); overflow-wrap: anywhere; }
.flow > .muted:empty, fieldset > .muted:empty { display: none; }
.fine-print { margin: 14px 0 0; font-size: 13px; }
.text-link, .inline-link { display: inline-flex; align-items: center; color: var(--iris); font-size: 14px; font-weight: 630; text-underline-offset: 4px; }
.text-link:hover, .inline-link:hover { text-decoration: underline; }

.aside { position: sticky; top: 24px; min-width: 0; }
.route-inspector { border-top: 1px solid #71799f; border-bottom: 1px solid var(--rule); }
.route-inspector h2 { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.proof-sheet { background: #16161c; border: 1px solid #383949; }
.route-list { padding: 4px 0 3px; margin: 0; list-style: none; }
.route-list li {
  position: relative; min-height: 42px; display: grid; grid-template-columns: 93px minmax(0, 1fr);
  align-items: baseline; gap: 10px; padding: 11px 0 9px 21px; font-size: 14px;
}
.route-list li::before { content: ""; position: absolute; top: 17px; left: 3px; width: 6px; height: 6px; border: 1px solid var(--iris); transform: rotate(45deg); }
.route-list li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 5.5px; bottom: -12px; width: 1px; background: #555a7b; }
.route-list li:last-child::before { border-color: var(--copper); }
.route-step, .subtle { color: var(--quiet); }
.route-list b { min-width: 0; overflow-wrap: anywhere; }
.dispatch-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 13px 0; border-top: 1px dashed #474653;
  font-size: 13px; font-weight: 530; color: var(--quiet);
}
.dispatch-foot b { color: var(--copper); text-align: right; }
.token-card { margin: 14px 0 0; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.token-card > img, .token-art-placeholder, #launch-list img { display: block; width: 43px; height: 43px; object-fit: cover; border-radius: 4px; }
.token-art-placeholder { display: grid; place-items: center; border: 1px dashed #45465a; background: #181921; }
.token-art-placeholder img { width: 24px; opacity: .7; }
.token-card figcaption { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.token-card figcaption span { font-size: 12px; color: var(--quiet); }

.proof-sheet { border-radius: 6px; padding: 0 17px; border-top: 2px solid #9faeec; }
.proof-sheet header { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ledger { margin: 0; }
.ledger > div {
  display: grid; grid-template-columns: 1fr minmax(0, 1fr); gap: 12px;
  padding: 12px 0; border-bottom: 1px solid #303039; color: var(--quiet); font-size: 14px;
}
.ledger > div:last-child { border-bottom: 0; }
.ledger dd { margin: 0; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.receipt-veil { display: grid; gap: 6px; padding: 17px 0; }
.receipt-veil span {
  display: block; width: 100%; height: 7px;
  background: repeating-linear-gradient(90deg, #222330 0 5px, #34364a 5px 6px, #282a3c 6px 11px, #171923 11px 13px);
}
.receipt-veil span:nth-child(2) { width: 79%; }
.receipt-veil span:nth-child(3) { width: 89%; }
.payment-sheet[data-state=confirmed] { border-top-color: var(--ready); }
.payment-sheet[data-state=confirmed] #sheet-settlement { color: var(--ready); }
.payment-sheet[data-state=exported] { border-top-color: var(--copper); }
.payment-sheet[data-state=exported] #sheet-receipt { color: var(--copper); }
.payment-sheet[data-state=exported] .receipt-veil span { animation: seal 280ms var(--out) both; }
@keyframes seal { from { opacity: .35; transform: scaleX(.94); } to { opacity: 1; transform: scaleX(1); } }
.amount { font: 700 30px/1.3 "Inter Tight", Geist, sans-serif; }
.funding { margin-top: 16px; }
.confirmed { margin-top: 35px; padding-top: 18px; border-top: 1px solid var(--rule); }
#launch-list { margin: 0; padding: 0; list-style: none; }
#launch-list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
footer {
  max-width: 1440px; padding: 15px 25px; margin: auto; border-top: 1px solid #29292f;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--quiet); font-size: 13px;
}
footer div { display: flex; gap: 15px; flex-wrap: wrap; }
footer a:hover { text-decoration: underline; }
dialog { width: min(430px, calc(100% - 24px)); padding: 18px; background: #1b1b22; color: var(--ink); border: 1px solid #44465a; border-radius: 7px; }
dialog::backdrop { background: #000b; }
#wallet-list { display: grid; gap: 8px; margin-top: 12px; }

@media (max-width: 1070px) {
  .shell { grid-template-columns: 130px minmax(0, 1fr); }
  .rail { padding-inline: 10px; }
  #application main { padding-inline: 24px; }
  .columns { gap: 25px; }
  .page-title .text-link { position: static; min-height: 34px; margin-top: 2px; }
}
@media (max-width: 780px) {
  .entry-content h1 { font-size: 52px; }
  [data-view=entry] .optic-field::before {
    background: radial-gradient(ellipse 82% 25% at center, #0a0d18f1 9%, #0a0d18bd 39%, transparent);
  }
  .topbar { min-height: 65px; padding-inline: 16px; gap: 10px; }
  .brand { font-size: 24px; }
  .brand img { width: 34px; height: 34px; margin-right: 6px; }
  .chain-label { display: none; }
  .header-actions { gap: 8px; }
  #wallet-open { padding-inline: 10px; font-size: 13px; }
  .shell { display: block; }
  .rail {
    position: static; display: flex; gap: 6px; flex-wrap: wrap;
    margin: 0; padding: 10px 15px;
  }
  .rail a { min-height: 43px; padding-inline: 10px; font-size: 14px; }
  #application main { padding: 26px 17px 45px; }
  h1 { font-size: 39px; }
  .page-title { margin-bottom: 24px; padding-bottom: 17px; }
  .page-title p { font-size: 15px; }
  .columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .aside { position: static; }
}
@media (max-width: 360px) {
  .entry-content h1 { font-size: 44px; }
  .entry-content p { font-size: 14px; }
  h1 { font-size: 34px; }
  .brand { font-size: 21px; }
  .brand img { width: 27px; height: 27px; margin-right: 4px; }
  .header-actions { gap: 5px; }
  .topbar { padding-inline: 12px; }
  .rail { padding-inline: 11px; }
  .rail a { padding-inline: 8px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .entry { padding-block: 18px 20px; }
  .entry-content h1 { font-size: 43px; margin-bottom: 5px; }
  .entry-content p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .brand:hover img { transform: none; }
}
