/* Hoist: Hyperliquid's colours over the whole site. Deep blue-green page, slightly lighter panels, mint for what matters,
   teal hairlines, the order book's green and pink for long and short. Dark only. Loaded last on every page. */
:root, :root.dark {
  --h-bg: #081c25; --h-panel: #0e2833; --h-panel-2: #143745; --h-line: rgba(151, 252, 228, .12); --h-line-2: rgba(151, 252, 228, .22);
  --h-ink: #f2fffc; --h-soft: #93b3b5; --h-faint: #66868b; --h-mint: #97fce4; --h-teal: #50d2c1; --h-blue: #2f9bff; --h-deep: #04343a;
  --bg: var(--h-bg); --paper: var(--h-panel); --ink: var(--h-ink); --soft: var(--h-soft); --faint: var(--h-faint); --line: var(--h-line); --line-2: var(--h-line-2);
  --long: #2bc7a0; --long-bg: rgba(43, 199, 160, .14); --short: #ed7088; --short-bg: rgba(237, 112, 136, .14); --step: #6ab8ff;
  --shadow: 0 1px 1px rgba(0, 8, 12, .5), 0 12px 24px -8px rgba(0, 8, 12, .5), 0 40px 80px -24px rgba(0, 8, 12, .9);
  --well: #0a222c; --hover: #123340; --sel: #174150; --chip: #1a4957; --sub: #0b242e; --ghost: #2a5c6a; --text-2: #cfe6e4;
  --glass: rgba(8, 28, 35, .74); --glass-2: rgba(8, 28, 35, .62); --veil: rgba(3, 12, 16, .7); --skel: rgba(151, 252, 228, .06); --fade: 8, 28, 37;
  --display: 'Archivo Expanded', 'Arial Black', Impact, sans-serif;
  --ds-background-100: #081c25; --ds-background-200: #081c25; --ds-gray-1000: #f2fffc; --ds-gray-900: #93b3b5; --ds-gray-100: #0e2833; --ds-gray-200: #143745; --ds-gray-400: rgba(151, 252, 228, .14);
  color-scheme: dark;
}
html, body { background: var(--h-bg) !important; }
::selection { background: var(--h-mint); color: #04211f; }

/* wide type needs smaller sizes than Anton did */
.display { font-size: clamp(38px, 6.6vw, 92px); letter-spacing: -.045em; line-height: .95; }
.ident .display { font-size: clamp(34px, 5.6vw, 84px); line-height: 1.02; padding-bottom: .04em; }
.doc-head .display { font-size: clamp(34px, 6vw, 84px); }
.brand span { font-size: 17px; letter-spacing: -.04em; }
.lev-head b { font-size: 38px; letter-spacing: -.05em; }
.tier b { font-size: 40px; letter-spacing: -.05em; }
.maxlev, .live-rows .lev { font-size: 13px; letter-spacing: -.03em; }
.calc-big { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.05em; }
.pager b { font-size: clamp(26px, 3.4vw, 42px); letter-spacing: -.05em; }
.pos-empty b { font-size: 18px; letter-spacing: -.03em; color: var(--h-soft); }

/* header, buttons, small parts */
:root.dark .btn { background: var(--h-mint); color: #04211f; }
:root.dark .btn:hover { background: #c3ffef; }
:root.dark .btn.ghost { background: rgba(151, 252, 228, .1); color: var(--h-mint); box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .35); }
:root.dark .btn.ghost:hover { background: rgba(151, 252, 228, .2); }
:root.dark .brand img { filter: none; }
:root.dark .wire i { background: var(--h-teal); }
:root.dark .range::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--tone) var(--fill), #1b444e var(--fill)); }
:root.dark .range::-moz-range-track { background: #1b444e; }
:root.dark .range::-webkit-slider-thumb, :root.dark .range::-moz-range-thumb { background: #eafffa; }
.tabline::after, .m-tabs::after { background: linear-gradient(90deg, var(--h-mint), rgba(151, 252, 228, .2) 60%, transparent) !important; }
.m-tabs::after { background: linear-gradient(90deg, transparent, rgba(151, 252, 228, .5) 30%, rgba(151, 252, 228, .5) 70%, transparent) !important; }
.go { border-radius: 8px; }
.go.long { background: var(--h-mint); color: #04211f; }
.go.short { background: var(--short); color: #2a060d; }
.card { border-radius: 8px; }
.tape { background: rgba(8, 28, 35, .8); }
.code .k { color: #ff9db0; } .code .s { color: #97fce4; } .code .f { color: #7cc4ff; }
.liqfig .zone { fill: rgba(237, 112, 136, .1); }
.doc a:not(.card) { text-decoration-color: rgba(151, 252, 228, .4); }

/* the title band: the dark prism still, run through the same blue-to-mint as the live one */
.band::before { background: linear-gradient(#081c25, #081c25), linear-gradient(176deg, #8af0ea 14%, #3fc8dc 40%, #1f8fe0 60%, #123f9c 84%), url(/hm/space-full.webp) var(--band-pos, 18% 58%) / cover no-repeat; background-blend-mode: lighten, color, normal; opacity: .9; }

/* ---- home: the template's own page */
header a[href="/"]::before { filter: none !important; }
:root, :root.dark, .dark, [data-hero-theme] { --home-page-background: #081c25 !important; }
/* the prism: the canvas (and the still behind it) tinted through a blue-to-mint gradient, its black lifted to the page colour */
div.absolute.inset-0.overflow-hidden:has(> canvas.touch-none) { isolation: isolate; }
div.absolute.inset-0.overflow-hidden:has(> canvas.touch-none)::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: color; background: linear-gradient(176deg, #8af0ea 22%, #3fc8dc 46%, #1f8fe0 60%, #123f9c 78%); }
div.absolute.inset-0.overflow-hidden:has(> canvas.touch-none)::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: lighten; background: #081c25; }
h1[data-hero-title]::before { font: 800 54px/.95 'Archivo Expanded', 'Arial Black', sans-serif !important; letter-spacing: -.06em !important; color: #f2fffc; }
@media (min-width: 768px) { h1[data-hero-title]::before { font-size: 104px !important; } }
header a[href="/"]::after { font: 800 17px/1 'Archivo Expanded', 'Arial Black', sans-serif !important; letter-spacing: -.04em !important; }
.dark section div.mt-8 > a[href="/trade"] { background: var(--h-mint) !important; color: #04211f !important; box-shadow: 0 0 60px -10px rgba(151, 252, 228, .55); border-radius: 8px; }
.dark section div.mt-8 > a[href="/docs"] { border-radius: 8px; background: rgba(151, 252, 228, .08) !important; color: var(--h-mint) !important; box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .3); }
.dark section div.mt-8 > a[href="/docs"]:hover { background: rgba(151, 252, 228, .16) !important; }
/* everything under the hero */
.lb, .dark .lb { --b-bg: #081c25; --b-ink: #f2fffc; --b-mute: #93b3b5; --b-card: #0e2833; --b-card-2: #14363f; --b-line: rgba(151, 252, 228, .13); --b-dash: rgba(151, 252, 228, .28); --b-blue: #50d2c1; --b-art: rgba(151, 252, 228, .45); --b-dim: #25515b; }
.lb-tag { background: #0f3b41; color: var(--h-mint); }
.lb-ico, .lb-cta, .lb-cta:hover, .lb-arrow i, .lb-start-r a { color: #04211f !important; }
.lb-cta, .lb-start-r a { background: var(--h-mint); }
.lb-cta-ico, .lb-start-r a i { background: rgba(4, 33, 31, .12); }
.lb-cat .lb-ico { color: var(--h-mint) !important; }
.lb-stack-head::before { background: radial-gradient(closest-side, rgba(80, 210, 193, .5), rgba(47, 155, 255, .16) 55%, transparent); }
.lb-iso .hi { fill: #97fce4; stroke: #97fce4; } .lb-iso .hi-s { fill: #2f9bff; stroke: #50d2c1; } .lb-iso .hi-d { fill: #0f5f8f; stroke: #50d2c1; }
.lb-bars i { background: linear-gradient(180deg, rgba(151, 252, 228, .55), rgba(47, 155, 255, .12) 70%, transparent), #0e2833; }
.lb-tile:hover { background: var(--h-mint); } .lb-tile:hover svg, .lb-tile:hover .lb-small { color: #04211f; }
/* the Longshot mark is its own black rounded square: shown as it is, no mint tile behind it */
.lb-loop-ico { background: #000; } .lb-loop-ico img { filter: none; }
.ls-x { background: rgba(151, 252, 228, .1) !important; color: var(--h-mint) !important; box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .3) !important; }
.ls-ca, .dark .ls-ca { background: rgba(151, 252, 228, .08); box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .26); color: #f2fffc; border-radius: 8px; }
.dark .ls-ca-k { background: var(--h-mint); color: #04211f; border-radius: 5px; }
.dark .ls-ca-copy { border-radius: 5px; }
.dark .ls-ca:hover .ls-ca-copy, .dark .ls-ca.copied .ls-ca-copy { background: var(--h-mint); color: #04211f; }
.ls-follow, .dark .ls-follow { background: rgba(151, 252, 228, .08); box-shadow: inset 0 0 0 1px rgba(151, 252, 228, .26); color: #f2fffc; border-radius: 8px; }
.ls-follow svg, .dark .ls-follow svg { background: var(--h-mint); fill: #04211f; border-radius: 5px; }
.ls-follow:hover, .dark .ls-follow:hover { background: rgba(151, 252, 228, .16); }
/* on phones the prism sits in the top half, so the tint runs through its colours sooner */
@media (max-aspect-ratio: 60/100) {
  div.absolute.inset-0.overflow-hidden:has(> canvas.touch-none)::before { background: linear-gradient(176deg, #8af0ea 8%, #3fc8dc 24%, #1f8fe0 34%, #123f9c 48%); }
}
/* phones: LONGSHOT in Archivo Expanded is wider than HOIST was, so the trade/docs header tightens to keep its button inside 360-414 px */
@media (max-width: 480px) {
  .top { gap: 10px; }
  .brand span { font-size: 15px; }
  .top nav { gap: 12px; font-size: 13px; }
  .top .btn { padding: 0 12px; font-size: 13px; }
}
@media (max-width: 380px) { .top nav a[aria-current] { display: none; } }   /* the page you are on drops out of the nav on the narrowest phones */
