/* Fathom, glass desk. Same information, the CryptoNest surface. */
:root {
  --color-background: #0c0c0e;
  --color-foreground: #f4f4f2;
  --color-card: rgba(28, 28, 30, .62);
  --color-card-2: rgba(255, 255, 255, .07);
  --color-muted: #b9b9b4;
  --color-subtle: #8d8d88;
  --color-border: rgba(255, 255, 255, .14);
  --color-primary: #d6ff4a;
  --color-primary-foreground: #14140f;
  --color-long: #d6ff4a;
  --color-ring: #d6ff4a;
  --lime: #d6ff4a;
  --glass: rgba(22, 22, 24, .58);
  --line: rgba(255, 255, 255, .14);
}

@keyframes fathom-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes fathom-breathe {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes fathom-hairline {
  0% { transform: translateX(-70%); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { transform: translateX(240%); opacity: 0; }
}

html, body, .bg-background {
  background:
    radial-gradient(1100px 620px at 78% 8%, rgba(214, 255, 74, .05), transparent 42%),
    radial-gradient(900px 540px at 8% 0%, rgba(255, 255, 255, .05), transparent 40%),
    linear-gradient(180deg, #161616 0%, #0b0b0c 38%, #090909 100%) !important;
  color: #f4f4f2;
}

body { overflow-x: hidden; }

header {
  animation: fathom-in .45s ease both;
  top: 10px !important;
  margin: 10px 12px 0;
  width: auto;
  border: 1px solid var(--line) !important;
  border-radius: 28px !important;
  background: var(--glass) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.bg-card,
.rounded-xl.bg-card,
.rounded-lg.bg-card-2 {
  background: var(--glass) !important;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rounded-xl { border-radius: 26px !important; }
.rounded-lg { border-radius: 18px !important; }

input, textarea {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  color: #f4f4f2;
}

button { transition: transform .16s ease, background-color .16s ease, color .16s ease; }
button:active { transform: scale(.97); }

button.bg-primary {
  background: var(--lime) !important;
  color: #14140f !important;
  border-radius: 999px !important;
  box-shadow: 0 0 0 1px rgba(214, 255, 74, .4), 0 8px 24px rgba(214, 255, 74, .12);
}

.size-1\.5.rounded-full.bg-long,
.size-1\.5.rounded-full.bg-subtle {
  background: var(--lime) !important;
  box-shadow: 0 0 10px rgba(214, 255, 74, .8);
  animation: fathom-breathe 2.6s ease-in-out infinite;
}

div.h-\[280px\].overflow-hidden {
  position: relative;
  border-radius: 26px !important;
}
div.h-\[280px\].overflow-hidden::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  animation: fathom-hairline 7.5s ease-in-out infinite;
  pointer-events: none;
}

.font-display { letter-spacing: -.04em; }

header .md\:flex a {
  border-radius: 999px;
  padding: .4rem .8rem;
}
header .md\:flex a.active,
header .md\:flex a[aria-current="page"] {
  background: var(--lime);
  color: #14140f !important;
}

nav.fixed {
  left: 12px !important;
  right: 12px !important;
  bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  width: auto;
  border: 1px solid var(--line) !important;
  border-radius: 24px !important;
  background: rgba(16, 16, 18, .78) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
  overflow: hidden;
}
nav.fixed a[aria-current="page"] { color: var(--lime) !important; }

/* Phone and tablet: pairs become a glass rail above the chart. */
@media (max-width: 1023px) {
  aside.order-2 { order: -1; }
  aside ul.max-h-\[36dvh\] {
    display: flex;
    gap: .5rem;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .1rem .05rem .45rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  aside ul.max-h-\[36dvh\] > li {
    flex: 0 0 9.4rem;
    scroll-snap-align: start;
  }
  aside ul.max-h-\[36dvh\] button {
    min-height: 4rem;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, .05) !important;
    border: 1px solid var(--line);
  }
  aside ul.max-h-\[36dvh\] button.bg-card-2 {
    background: var(--lime) !important;
    color: #14140f !important;
    border-color: transparent;
  }
  aside ul.max-h-\[36dvh\] button.bg-card-2 .text-muted { color: #3d4218 !important; }
  div.h-\[280px\] { height: clamp(230px, 42dvh, 440px); }
  .font-display.text-3xl { font-size: 1.7rem; }
  header { margin-inline: 10px; padding-inline: .8rem !important; }
  .pb-24 { padding-bottom: calc(6.4rem + env(safe-area-inset-bottom)); }
}

/* Wide screen: the pair column is a floating glass sidebar. */
@media (min-width: 1024px) {
  .lg\:grid-cols-\[300px_minmax\(0\,1fr\)\] { gap: 16px; padding-top: 4px; }
  aside.order-2 {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 12px 10px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .07);
  }
  aside ul.max-h-\[36dvh\] { max-height: calc(100dvh - 250px); }
  aside ul button { border-radius: 16px; }
  aside ul button.bg-card-2 {
    background: var(--lime) !important;
    color: #14140f !important;
  }
  aside ul button.bg-card-2 .text-muted { color: #3d4218 !important; }
  div.h-\[280px\] { height: min(58dvh, 620px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
