html { scroll-padding-top: 5rem; }
.lp-hedge-preview {
  max-width: 56rem;
  margin: 3rem auto 0;
  padding: clamp(1rem, 3vw, 2rem);
  background: #1c1c1f;
  color: #f2f4f4;
  border: 1px solid #3b3b43;
  border-radius: 1rem;
}
.lp-preview-title { font-size: 1.25rem; font-weight: 600; }
.lp-preview-inputs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.lp-preview-inputs label { display: grid; gap: .4rem; font-size: .875rem; }
.lp-preview-inputs input { width: 100%; min-width: 0; border: 1px solid #4d5958; border-radius: .5rem; padding: .6rem; background: #141417; color: inherit; }
.lp-hedge-preview output { display: block; margin: 1rem 0 .35rem; font-weight: 600; }
.lp-hedge-preview small { color: #bac5c4; }
@media (max-width: 540px) { .lp-preview-inputs { grid-template-columns: 1fr; } }

.lp-trade-frame > :nth-child(2), .lp-trade-frame > :nth-child(3) { display: none; }
.lp-trade-flow {
  position:absolute;
  inset:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  gap:3%;
  overflow:hidden;
  padding:3%;
  border:1px solid #9bf1e0;
  border-radius:inherit;
  border-radius:clamp(8px,1.4vw,18px);
  background:radial-gradient(ellipse at 57% 5%,#26514c 0%,#101e1c 54%,#0d1817 100%);
  color:#eefbf9;
  font-family:system-ui,sans-serif;
  font-size:clamp(7px,1.15vw,13px);
  box-shadow:0 0 0 5px #eafffaab,0 0 28px #a0ffe9ad,inset 0 0 20px #65ffdb2e;
  container-type:inline-size;
}
.lp-trade-header,.lp-trade-chart-title,.lp-trade-chart-footer,.lp-trade-progress,.lp-trade-ticket dl div {display:flex;align-items:center;justify-content:space-between}
.lp-trade-header div {display:grid;gap:.2em}
.lp-trade-header small,.lp-trade-chart-footer,.lp-trade-ticket dt,.lp-trade-progress span {color:#a4c4c1}
.lp-trade-header small {letter-spacing:.13em}
.lp-trade-header strong {font-size:1.65em}
.lp-trade-header > span {border:1px solid #568782;background:#234743;padding:.25em .75em;border-radius:1em}
.lp-trade-main {display:grid;grid-template-columns:1.42fr 1fr;gap:3%;min-height:0}
.lp-trade-chart,.lp-trade-ticket {min-width:0;min-height:0;padding:4%;border:1px solid #375e5a;border-radius:.75em;background:#142725bd}
.lp-trade-chart {display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:.35em}
.lp-trade-chart svg {width:100%;height:100%;overflow:visible}
.lp-trade-grid {fill:none;stroke:#325854;stroke-width:1}
.lp-trade-area {fill:url(#lp-trade-area);opacity:.8}
.lp-trade-line {fill:none;stroke:#8dffe4;stroke-width:2.5;vector-effect:non-scaling-stroke}
.lp-trade-flow[data-phase="1"] .lp-trade-line {stroke-dasharray:1;animation:lp-trade-draw 1.35s ease-out both}
@keyframes lp-trade-draw { from { stroke-dashoffset:1 } to { stroke-dashoffset:0 } }
.lp-trade-ticket {display:grid;align-content:center;gap:.5em}
.lp-trade-ticket > span {color:#aadcd5}
.lp-trade-ticket > strong {font-size:1.4em;color:#bcffef}
.lp-trade-flow[data-phase="3"] .lp-trade-ticket > strong {color:#94edc5}
.lp-trade-ticket dl {display:grid;gap:.25em;margin:0}
.lp-trade-ticket dd {margin:0;white-space:nowrap}
.lp-trade-progress {gap:2%}
.lp-trade-progress span {flex:1;text-align:center;padding:.38em .2em;border-radius:.35em;background:#1b3330;white-space:nowrap;transition:background .35s,color .35s}
.lp-trade-flow[data-phase="0"] [data-stage="0"],.lp-trade-flow[data-phase="1"] [data-stage="1"],.lp-trade-flow[data-phase="2"] [data-stage="2"],.lp-trade-flow[data-phase="3"] [data-stage="3"] {color:#fff;background:#32736a}
@container (max-width:420px) {
  .lp-trade-ticket {gap:.25em}
  .lp-trade-ticket dl {gap:.1em}
  .lp-trade-chart,.lp-trade-ticket {padding:3%}
}
@media (prefers-reduced-motion:reduce) {
  .lp-trade-flow[data-phase="1"] .lp-trade-line {animation:none}
  .lp-trade-progress span {transition:none}
}

.lp-trade-flow[data-phase="0"] .lp-trade-line {stroke-dasharray:1;stroke-dashoffset:.74}
.lp-trade-flow[data-phase="0"] .lp-trade-area {opacity:.22}

header button[hidden], nav button[hidden] { display: none !important; }

main a[href="#how-it-works"] img[src$="68af230db56f9e75d64156987f7e1b09.svg"] { display: none; }
footer ul:has(a[aria-label="Hyperliquid" i]) > li:not(:has(a:is([aria-label="Hyperliquid" i],[aria-label="Twitter" i],[aria-label="X"]))) { display: none; }
footer a[role="img"]:is([aria-label="Hyperliquid"],[aria-label="X"]) { cursor: default; }

/* Recolor warm highlights in artwork and video without changing their motion. */
main img,
main video {
  filter: url("/lp-icons/elysium-color.svg#warm-to-teal");
}

.hero {
  background-color: #031811;
  background-image: radial-gradient(ellipse at 57% 58%, #135c7f55, transparent 68%);
}
.lp-hedge-preview {
  background: #0c241e;
  border-color: #245258;
}
.lp-hedge-preview output { color: #46c6d1; }
