@font-face {
  font-family: Figtree;
  src: url("/fonts/figtree-latin-wght-normal.woff2");
  font-weight: 300 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #06282c;
  --ink: #faf9f4;
  --mint: #85f3df;
  --muted: #b2ceca;
  --line: #28484b;
  --panel: #071d20;
  font:
    16px/1.45 Figtree,
    system-ui,
    sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body,
h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}
button,
input,
select {
  font: inherit;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
button,
a,
select {
  cursor: pointer;
}
a {
  text-decoration: none;
  color: inherit;
}
button,
select,
input {
  border: 1px solid var(--line);
  background: #102f32;
  border-radius: 10px;
  padding: 10px 14px;
}
button {
  font-weight: 600;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:hover:not(:disabled),
select:hover {
  border-color: var(--mint);
}
a:hover {
  color: var(--mint);
}
:focus-visible {
  outline: 3px solid #fbd89e;
  outline-offset: 3px;
}
em {
  font-style: normal;
  color: var(--mint);
}
p,
small,
dt {
  color: var(--muted);
}
small {
  display: block;
  font-size: 13px;
}
h1 {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.048em;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -0.024em;
  font-weight: 650;
}
header,
footer,
.intro,
.below,
.panel,
#notice {
  width: min(1100px, 92%);
  margin-inline: auto;
}
header,
footer,
nav,
.brand,
.line,
.top,
.balances,
.balances span,
.asset {
  display: flex;
  align-items: center;
}
header,
footer,
.line,
.top {
  justify-content: space-between;
  gap: 12px;
}
header {
  height: 72px;
  position: relative;
  z-index: 2;
}
.brand {
  gap: 9px;
  font-size: 25px;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.brand img {
  width: 35px;
  height: 35px;
}
header nav,
footer nav {
  gap: clamp(18px, 3vw, 42px);
}
nav a {
  color: var(--muted);
  font-weight: 600;
}
nav [aria-current] {
  color: var(--mint);
}
#wallet,
.primary {
  background: var(--mint);
  color: #052625;
  border-color: transparent;
}
#wallet:hover,
.primary:hover:not(:disabled) {
  background: #aaffed;
}
#wallet {
  border-radius: 30px;
  padding: 10px 19px;
}
.hero {
  position: relative;
  height: clamp(242px, 30vh, 340px);
  isolation: isolate;
}
.stage {
  position: absolute;
  inset: 0 0 -55px 30%;
  overflow: hidden;
  z-index: -1;
}
.stage img,
.arch,
.stage:after {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
}
.stage img {
  object-fit: cover;
  object-position: center 54%;
}
.stage:after {
  content: "";
  background:
    linear-gradient(90deg, var(--bg), transparent 40%),
    linear-gradient(
      0deg,
      var(--bg),
      transparent 42%,
      transparent 80%,
      var(--bg)
    );
}
.arch {
  background: radial-gradient(
    ellipse 47% 150% at center bottom,
    transparent 85%,
    #305653 86%,
    #061e20 90%,
    #041619
  );
  transform: scale(1.55);
}
@media (prefers-reduced-motion: no-preference) {
  .glide .arch {
    animation: pass 2.95s cubic-bezier(0.28, 0.35, 0.22, 1) both;
  }
  .glide img {
    animation: approach 3s cubic-bezier(0.28, 0.35, 0.22, 1) both;
  }
  @keyframes pass {
    from {
      transform: scale(0.78);
    }
    to {
      transform: scale(1.55);
    }
  }
  @keyframes approach {
    from {
      transform: scale(0.91);
    }
    to {
      transform: scale(1);
    }
  }
}
.intro {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.intro p {
  margin-top: 14px;
  max-width: 39ch;
  font-size: 17px;
}
.panel,
dialog,
.record {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.panel {
  position: relative;
  padding: 22px 28px 26px;
  box-shadow: 0 20px 66px #00191b40;
}
.top {
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.tabs {
  background: #0f3033;
  border-radius: 11px;
  padding: 4px;
}
.tabs a {
  padding: 6px 24px;
  border-radius: 8px;
  font-size: 14px;
}
.tabs [aria-current] {
  background: #29514e;
  color: #dffff5;
}
.balances {
  gap: 15px;
  flex-wrap: wrap;
  font-size: 13px;
}
.balances span,
.asset {
  gap: 6px;
}
.token {
  width: 23px;
  height: 23px;
  object-fit: contain;
  border-radius: 50%;
  background: #06282c;
}
.columns {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 5%;
}
.columns > * {
  min-width: 0;
}
aside {
  border-left: 1px solid var(--line);
  padding-left: 10%;
}
aside h2 {
  font-size: 16px;
  color: var(--muted);
}
#available {
  display: block;
  color: var(--mint);
  font-size: 28px;
  letter-spacing: -0.03em;
}
#reason,
dialog p,
.record p {
  font-size: 14px;
}
#fields {
  margin: 14px 0;
}
.field {
  background: #0e2a2e;
  padding: 11px 15px;
  border-radius: 13px;
  border: 1px solid var(--line);
}
.field:focus-within {
  border-color: #61998e;
}
.field label,
.light,
.mini,
.field .meta {
  font-size: 13px;
}
.field label {
  color: var(--muted);
}
.asset select {
  font-weight: 700;
  border: 0;
  padding: 5px 0;
  background: transparent;
}
option {
  background: var(--panel);
}
.field input {
  border: none;
  background: none;
  border-radius: 4px;
  text-align: right;
  padding: 0;
  min-width: 0;
  width: 100%;
  font-size: 24px;
}
.light,
.mini {
  background: none;
  color: var(--mint);
  padding: 3px 6px;
  border-color: transparent;
}
.field .meta {
  color: var(--muted);
  gap: 4px;
}
.meta span {
  overflow-wrap: anywhere;
}
.meta div {
  flex-shrink: 0;
}
.switch {
  display: block;
  position: relative;
  margin: -9px auto;
  z-index: 1;
  border: 3px solid var(--panel);
  background: #22484a;
  border-radius: 50%;
  padding: 4px 8px;
  color: var(--mint);
  line-height: 1.2;
}
.presets {
  font-size: 14px;
}
.presets button {
  padding: 5px 11px;
  margin-left: 4px;
  font-size: 13px;
}
button[aria-pressed="true"] {
  color: var(--mint);
  border-color: var(--mint);
}
#explain,
#route-note {
  margin-top: 8px;
}
dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 10px;
  margin: 15px 0;
  font-size: 14px;
}
dd {
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.primary {
  width: 100%;
  min-height: 44px;
}
.below {
  margin-block: 42px;
}
ol {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: steps;
  margin-top: 20px;
}
li {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 15px;
  counter-increment: steps;
}
li:before {
  content: "0" counter(steps);
  display: block;
  color: var(--mint);
  margin-bottom: 7px;
}
#notice,
#dialog-status,
#due {
  overflow-wrap: anywhere;
  color: var(--mint);
  font-size: 14px;
}
#due {
  display: block;
  margin-bottom: 12px;
}
#portfolio {
  min-height: 58vh;
}
#portfolio h2,
#portfolio-balances {
  margin: 24px 0 12px;
}
.record {
  padding: 18px;
  margin: 13px 0;
  overflow-wrap: anywhere;
}
.record button {
  margin: 10px 8px 0 0;
}
footer {
  margin-top: 42px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
footer nav {
  margin-left: auto;
}
footer .brand {
  font-size: 18px;
}
footer .brand img {
  width: 27px;
}
dialog {
  color: inherit;
  width: min(480px, 94%);
  padding: 22px;
  max-height: 90svh;
  overflow: auto;
}
dialog::backdrop {
  background: #001314bd;
}
dialog h2 {
  margin: 16px 0;
}
dialog input,
dialog select {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 5px 0 12px;
}
dialog label {
  font-size: 14px;
  color: var(--muted);
}
dialog .primary,
dialog p {
  margin-top: 12px;
}
dialog .brand {
  font-size: 18px;
}
#details {
  overflow-wrap: anywhere;
}
#ely-recovery {
  padding: 16px;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .stage {
    left: 40%;
    right: 3%;
  }
}
@media (max-width: 850px) {
  .panel {
    padding: 18px;
  }
  .columns {
    gap: 3%;
  }
  aside {
    padding-left: 6%;
  }
  .stage {
    left: 28%;
  }
  .intro p {
    max-width: 34ch;
  }
}
@media (max-width: 700px) {
  header {
    height: 59px;
    gap: 5px;
  }
  header nav a:not(:last-child) {
    display: none;
  }
  header nav {
    margin-left: auto;
    margin-right: 9px;
    font-size: 13px;
  }
  .brand {
    font-size: 20px;
    gap: 6px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  #wallet {
    padding: 9px 11px;
    font-size: 13px;
  }
  .hero {
    height: 168px;
  }
  .stage {
    inset: 0 0 -20px 12%;
  }
  .stage img {
    object-position: 33% center;
    left: 15%;
  }
  .stage:after {
    background:
      linear-gradient(90deg, var(--bg), #06282caa 48%, transparent 96%),
      linear-gradient(0deg, var(--bg), transparent 65%, var(--bg));
  }
  h1 {
    font-size: clamp(28px, 7.3vw, 38px);
  }
  .intro p {
    font-size: 14px;
    margin-top: 8px;
  }
  .columns,
  ol {
    display: block;
  }
  aside {
    border: 0;
    padding: 14px 0 0;
  }
  .top {
    margin-bottom: 10px;
  }
  .panel {
    padding: 14px;
  }
  .tabs a {
    padding: 4px 18px;
  }
  .balances {
    gap: 8px;
    font-size: 11px;
  }
  .balances img {
    width: 16px;
    height: 16px;
  }
  h2 {
    font-size: 18px;
  }
  #fields {
    margin: 9px 0;
  }
  .field {
    padding: 7px 10px;
  }
  .field input {
    font-size: 20px;
  }
  #available {
    font-size: 21px;
  }
  #reason {
    font-size: 13px;
  }
  dl {
    font-size: 13px;
    gap: 5px 8px;
    margin: 10px 0;
  }
  li {
    margin-bottom: 14px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer nav {
    gap: 12px;
    font-size: 12px;
  }
}
.intro small {
  margin-top: 8px;
  color: #bee9e2;
  max-width: 46ch;
}
@media (max-width: 700px) {
  .intro small {
    font-size: 12px;
    max-width: 36ch;
  }
  .hero {
    height: 192px;
  }
  .field input {
    font-size: 17px;
  }
  .columns aside {
    display: flex;
    flex-direction: column;
  }
  #primary {
    order: 1;
  }
  #totals {
    order: 2;
  }
  #route-note {
    order: 3;
  }
}
@media (min-width: 701px) and (max-height: 800px) {
  .hero {
    height: 210px;
  }
  .intro h1 {
    font-size: clamp(34px, 3.6vw, 50px);
  }
}
