@font-face {
  font-family: Bricolage;
  src: url("Bricolage.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("fonts/plex-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Plex;
  src: url("fonts/plex-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #f0e9e9;
  --muted: #baaebc;
  --copper: #efb8a5;
  --line: #453b49;
  --base: #19161f;
  --panel: #211c27;
  --heading: Bricolage, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--paper); font: 1rem/1.5 Plex, Arial, sans-serif; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--copper); text-underline-offset: .22em; }
:focus-visible { outline: 2px solid #ffcdb9; outline-offset: 4px; }
h1, h2, p { margin: 0; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }

.entrance {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #100d18;
}
.scene, .light, .veil, .sparks, .aperture { position: absolute; pointer-events: none; }
.scene {
  inset: -2%;
  background:
    radial-gradient(ellipse at 74% 40%, #24213b 0%, transparent 51%),
    radial-gradient(ellipse at 74% 66%, #1a3033 0%, transparent 36%),
    #100d18;
  transform: translate3d(var(--scene-x, 0), var(--scene-y, 0), 0);
  transition: transform 900ms cubic-bezier(.15,.55,.3,1), filter 660ms ease;
  z-index: -4;
}
.veil {
  inset: 0;
  background: linear-gradient(90deg, #120e1be6 1%, #16112187 38%, transparent 65%),
    linear-gradient(0deg, #0d0b15bd, transparent 33%);
  z-index: -2;
}
.light {
  inset: -10%;
  background:
    radial-gradient(ellipse at var(--light-x, 79%) var(--light-y, 27%), #9e6edb55, transparent 34%),
    radial-gradient(ellipse at 87% 68%, #4eaa9b30, transparent 33%);
  mix-blend-mode: screen;
  animation: light-pass 10s ease-in-out infinite alternate;
  z-index: -3;
}
.aperture {
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, #754156, #231936 5%, #17121c 30%);
  border-left: 1px solid #ffd4b6;
  box-shadow: -16px 0 42px #f4a68055;
  opacity: 0;
  transform: translateX(104%);
  transition: transform 520ms cubic-bezier(.76,0,.24,1);
}
.entrance.exiting .aperture { opacity: 1; transform: translateX(0); }
.entrance.exiting .scene { transform: scale(1.055); filter: brightness(1.22); }
.sparks {
  inset: 0;
  background: radial-gradient(1px 1px at 11% 22%, #fde2c4, transparent),
    radial-gradient(1px 1px at 41% 78%, #f5b5a0, transparent),
    radial-gradient(1px 1px at 63% 45%, #eacbcc, transparent);
  background-size: 269px 257px;
  opacity: .34;
  animation: sparks-rise 28s linear infinite;
  z-index: -1;
}
.entry-header, .app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.entry-header {
  margin: 0 clamp(18px, 5vw, 80px);
  padding: clamp(12px, 2.3vw, 26px) 0;
  border-bottom: 1px solid #e8c2bf35;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--paper);
  font: 800 1.5rem/1 var(--heading);
  letter-spacing: -.055em;
  text-decoration: none;
}
.mark { width: 36px; height: 36px; object-fit: contain; filter: brightness(1.65) saturate(.5); }
.entry-actions { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.token-ca {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: .42rem;
  min-height: 36px;
  padding: .3rem .65rem;
  border: 1px solid #e8c2bf35;
  border-radius: 4px;
  background: #1d1422b3;
}
.token-ca-label { flex-shrink: 0; font-size: .75rem; color: #eab9cc; }
.token-upcoming { font-size: .8rem; color: #dbd0df; }
.token-ca code { color: #cbbbd0; font-size: .75rem; overflow-wrap: anywhere; }
.ca-copy { flex-shrink: 0; border: 0; border-inline-start: 1px solid #e8c2bf35; padding: .3rem 0 .3rem .6rem; color: var(--paper); background: transparent; font-size: .8rem; }
.ca-copy:hover { color: var(--copper); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.entry-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-inline: clamp(18px, 5vw, 80px);
  border-top: 1px solid #e8c2bf35;
  color: #d3c4d6;
}
.entry-footer > * { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .12rem .65rem; padding: .9rem .3rem; text-decoration: none; color: inherit; }
.entry-footer > * + * { border-inline-start: 1px solid #e8c2bf35; }
.entry-footer strong { color: #f0e2e9; font-size: .875rem; }
.entry-footer span span, .entry-footer a span { font-size: .75rem; }
.entry-footer a:hover strong { color: var(--copper); }
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e8c2bf58;
  border-radius: 4px;
  background: #1d1422b3;
  color: var(--paper);
  font: 1.25rem/1 "Segoe UI Symbol", Arial, sans-serif;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}
.social-link:hover { background: #3a2840; border-color: #dfb4c6; }
.entry-content { display: grid; min-width: 0; }
.entry-stage { position: relative; display: grid; align-items: center; min-height: 490px; }
.orbit {
  position: absolute;
  top: 50%;
  right: max(4%, calc((52vw - 600px) / 2));
  width: min(45vw, 600px);
  aspect-ratio: 1.65;
  border: 1px solid #d5bbec2b;
  border-radius: 50%;
  box-shadow: 0 0 0 16px #b196d008, inset 0 0 38px #ad91d317;
  transform: translateY(-45%) rotate(-12deg);
  pointer-events: none;
}
.orbit::after { content: ""; position: absolute; inset: -14px; border: 1px dashed #d5bbec1f; border-radius: inherit; }
.orbit-beacon {
  position: absolute;
  top: 17%;
  left: 12%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab9cc;
  box-shadow: 0 0 18px 4px #eab9cc;
  animation: beacon-breathe 5s ease-in-out infinite alternate;
}
.launch-guide[data-step="sign"] { --route-glow: #c9abf7; }
.launch-guide[data-step="confirm"] { --route-glow: #a4e7d9; }
.entry-main {
  align-self: center;
  padding: clamp(25px, 5vh, 55px) clamp(22px, 7.5vw, 132px);
  animation: entry-rise 680ms ease-out both;
  pointer-events: none;
}
.entry-main a { pointer-events: auto; }
.specimen {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 3%;
  width: min(52vw, 660px);
  aspect-ratio: 1.65;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d3cae5;
  mix-blend-mode: screen;
  transform: translateY(-42%);
}
.specimen-art, .specimen-scan {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
  pointer-events: none;
}
.specimen-art {
  background-image: url("elynyx-moth-terracotta.png");
}
.specimen-scan {
  background-image: url("elynyx-xray.png");
  filter: saturate(1.28) brightness(1.07);
  opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .specimen[data-lens] .specimen-art {
    mask-image: radial-gradient(circle at var(--lens-x) var(--lens-y), transparent 58px, #000 68px);
  }
  .specimen[data-lens] .specimen-scan {
    opacity: 1;
    mask-image: radial-gradient(circle at var(--lens-x) var(--lens-y), #000 58px, transparent 68px);
  }
}
.entry-main h1 {
  font: 800 clamp(3.55rem, 7vw, 7.8rem)/.9 var(--heading);
  letter-spacing: -.065em;
}
.entry-main h1 span, .entry-main h1 em { display: block; }
.entry-main h1 em { color: #eab9cc; font-style: normal; }
.entry-kicker { margin-bottom: clamp(12px, 2vw, 23px); color: #d3a9d0; font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.entry-description { max-width: 39ch; margin-top: clamp(14px, 2vw, 24px); color: #e3d8e6; font-size: clamp(1rem, 1.4vw, 1.22rem); }
.entry-main .enter-button { margin-top: clamp(19px, 3vw, 34px); }
.launch-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  margin-bottom: 1rem;
  padding: clamp(17px, 2.4vw, 29px);
  border: 1px solid #d9bce83b;
  border-radius: 7px;
  background: linear-gradient(115deg, #2c2031, #181722);
  box-shadow: 0 12px 40px #09071165;
}
.route-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: .85rem; }
.route-options button {
  min-height: 44px;
  padding: .5rem;
  border: 1px solid #5b4864;
  border-radius: 4px;
  background: #1c1824;
  color: #e7dce8;
  font-size: .875rem;
  text-align: left;
}
.route-options button span { margin-right: .25rem; color: #c8a9c5; font-variant-numeric: tabular-nums; }
.route-options button:hover { border-color: #c4a0c9; }
.route-options button[aria-pressed="true"] { border-color: var(--route-glow, #eab9cc); background: #38273f; color: #fff3f6; }
.launch-guide-detail { min-height: 5.2rem; border-inline-start: 1px solid #69536f; padding-inline-start: 1.2rem; }
.launch-guide-detail strong { color: var(--route-glow, #eab9cc); font-weight: 600; }
.launch-guide-detail p { max-width: 50ch; margin-top: .35rem; color: #dfd3e2; font-size: .9375rem; }
.enter-button, .accent-button, .secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .62rem 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, transform 180ms ease;
}
.enter-button {
  min-width: 195px;
  justify-content: space-between;
  min-height: 58px;
  padding: .4rem .45rem .4rem 1.1rem;
  background: #f2ded7;
  color: #241923;
}
.enter-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: #ffccb5;
  background: #38233f;
  transition: background 250ms ease, color 250ms ease, rotate 350ms ease;
}
.enter-button:is(:hover, :focus-visible) { background: #ffddd0; transform: translateY(-2px); }
.enter-button:is(:hover, :focus-visible) .enter-icon { background: #61374a; color: #ffe6d6; rotate: -8deg; }
.accent-button { background: var(--copper); color: #2b2026; }
.accent-button:hover { background: #ffd3c2; }
.secondary-button { background: transparent; border-color: #67596c; color: var(--paper); }
.secondary-button:hover { background: #3a303e; }

.workspace { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; }
.workspace.arriving { animation: workspace-in 480ms cubic-bezier(.2,.8,.25,1) both; }
.app-header { grid-column: 1 / -1; min-height: 72px; padding: 12px 28px; border-bottom: 1px solid var(--line); background: #1e1924; }
.app-meta { display: flex; align-items: center; gap: .65rem; font-size: .875rem; }
.network-label { color: #dec3d0; }
.preview-label, .badge { display: inline-block; color: #edccbf; background: #503843; padding: .22rem .58rem; border-radius: 3px; font-size: .875rem; }
.sidebar { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 24px 12px; background: #1d1822; border-right: 1px solid var(--line); }
.nav-links { display: flex; flex-direction: column; gap: .25rem; }
.nav-links a, .back-link {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 44px;
  padding: .5rem .85rem;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #d7cad9;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a span { width: 1.2rem; color: #d5a99f; text-align: center; }
.nav-links a:hover, .back-link:hover { background: #312736; }
.nav-links a[aria-current="page"] { color: #fff3ef; background: #3d2c3b; border-color: #5d4556; }
.back-link { color: var(--muted); font-size: .875rem; align-self: flex-start; }
.app-main { min-width: 0; padding: clamp(26px, 5vw, 82px); background: radial-gradient(ellipse at 97% 0, #2d2031, transparent 43%); }
.page { max-width: 1180px; margin: auto; animation: page-in 240ms ease-out both; }
.page-intro { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; }
.page-intro h1 { font: 800 clamp(2.4rem, 5vw, 4.65rem)/1 var(--heading); letter-spacing: -.065em; }
.page-intro h1:focus { outline: none; }
.page-intro p { margin-top: .55rem; color: var(--muted); }
.page-intro .accent-button { white-space: nowrap; flex-shrink: 0; }
.panel { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); min-width: 0; }
.panel h2 { font: 750 1.42rem/1.15 var(--heading); letter-spacing: -.035em; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.records .panel-heading, .tx-panel, .form-panel, .network-card, .api-panel { padding: clamp(17px, 2.4vw, 29px); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .7rem clamp(14px, 2.4vw, 29px); border-top: 1px solid var(--line); }
thead th { color: var(--muted); font-size: .875rem; font-weight: 400; }
tbody th { display: flex; align-items: center; gap: .7rem; min-width: 130px; }
tbody th small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; }
.token-icon { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 5px; background: #3f324b; color: #e0bfe9; }
.launch-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.launch-start {
  padding: clamp(17px, 2.4vw, 29px);
  background: radial-gradient(ellipse at 94% 8%, #4f344c, transparent 65%), var(--panel);
  border-color: #664c60;
}
.launch-start p, .tx-panel p { margin-top: .6rem; overflow-wrap: anywhere; color: var(--muted); }
.route-strip { display: flex; flex-wrap: wrap; gap: .45rem .75rem; align-items: center; margin: 1.2rem 0; color: #dec8d8; font-size: .875rem; }
.route-strip span[aria-hidden] { color: #d3a18f; }
.network-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.form-panel h2 { margin-bottom: 1rem; }
.form-panel label { display: grid; gap: .28rem; margin: 0 0 .85rem; min-width: 0; }
input, textarea {
  width: 100%;
  color: var(--paper);
  background: #18151e;
  border: 1px solid #5b4e60;
  border-radius: 4px;
  padding: .65rem .7rem;
}
input::placeholder, textarea::placeholder { color: #a298aa; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #e69499; }
textarea { resize: vertical; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.feedback { margin-top: .7rem; color: #dfcbc9; }
.feedback:empty { margin: 0; }
.facts { margin: .85rem 0; }
.facts div { display: flex; justify-content: space-between; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); }
dd { margin: 0; }
.facts dd { text-align: right; }
.check-results { padding-inline-start: 1.25rem; }
.check-results:empty { display: none; }
.check-results li { margin: .35rem 0; }
.pass { color: #c2dac4; }
.fail { color: #ffb3af; }
.command { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; padding: .7rem; background: #17141e; color: #ead4db; }
code { overflow-wrap: anywhere; }
.endpoints { margin-bottom: 0; }
.endpoints div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .6rem; border-top: 1px solid var(--line); padding: .7rem 0; }
.endpoints dt { color: var(--copper); }
.network-card code { display: block; margin-bottom: .7rem; color: #e4d3e2; }
.network-links { display: flex; gap: 1rem; flex-wrap: wrap; }
pre { background: #17141e; padding: .85rem; font-size: .875rem; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 45vh; overflow-y: auto; }

@keyframes light-pass { to { opacity: .55; transform: translate(-5%, 4%) scale(1.13); } }
@keyframes sparks-rise { to { background-position: 0 -257px, 269px -257px, -269px -257px; } }
@keyframes entry-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes beacon-breathe { from { opacity: .48; } to { opacity: .92; } }
@keyframes workspace-in { from { opacity: 0; clip-path: inset(14% 12% round 20px); } to { opacity: 1; clip-path: inset(0); } }
@keyframes page-in { from { opacity: .55; transform: translateY(5px); } }

@media (max-width: 820px) {
  .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .app-header { min-height: 64px; padding-inline: 16px; }
  .sidebar { flex-direction: row; flex-wrap: wrap; padding: .35rem .7rem; gap: .35rem; border: 0; border-bottom: 1px solid var(--line); }
  .nav-links { flex-direction: row; flex-wrap: wrap; }
  .nav-links a, .back-link { font-size: .875rem; gap: .32rem; padding-inline: .5rem; }
  .back-link { display: none; }
}
@media (max-width: 600px) {
  .entry-header { flex-wrap: wrap; gap: .45rem; }
  .entry-actions { margin-inline-start: auto; }
  .social-link { flex: 0 0 44px; }
  .entry-footer > * { flex-direction: column; align-items: center; padding-block: .55rem; }
  .veil { background: linear-gradient(0deg, #100d18 9%, #130e18d9 28%, #15101a05 68%); }
  .specimen {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    justify-self: center;
    align-self: center;
    width: min(93%, 440px);
    max-height: 29svh;
  }
  .entry-stage { min-height: 0; }
  .orbit { top: clamp(95px, 26vw, 145px); right: 12%; width: 76%; }
  .entry-main { align-self: end; padding-top: 10px; padding-bottom: 25px; }
  .entry-main h1 { font-size: clamp(2.85rem, 12.4vw, 4.5rem); }
  .launch-guide { grid-template-columns: minmax(0, 1fr); }
  .launch-guide-detail { padding: .65rem 0 0; border-inline-start: 0; border-top: 1px solid #69536f; }
  .route-options button { text-align: center; }
  .route-options button span { display: block; margin: 0; }
  .app-main { padding-inline: 15px; }
  .page-intro { align-items: start; flex-direction: column; }
  .launch-overview, .network-grid, .endpoints div { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { overflow: visible; }
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-wrap td { border-top: none; padding-block: .4rem; }
  .table-wrap td:last-child { padding-bottom: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.tx-panel form, .sandbox-panel form { margin-top: .9rem; }
.tx-panel label, .sandbox-panel label { display: block; margin-bottom: .35rem; }
.tx-panel button, #tx-result { margin-top: .65rem; }
#tx-result { display: inline-block; }
.agent-example { margin-top: 1rem; }
.agent-example p { margin: .8rem 0; color: var(--muted); }
