/* Rabid Pool beta — cinematic dark theme only. Behaviour and hooks unchanged. */
:root {
  color-scheme: dark;
  --bg: #070b10;
  --bg-2: #0c121a;
  --panel: #0f1721;
  --panel-2: #141f2b;
  --panel-3: #1a2734;
  --line: #233241;
  --line-2: #344657;
  --line-3: rgba(255,255,255,.08);
  --ink: #f4f8fb;
  --ink-2: #cad5e0;
  --ink-3: #91a4b7;
  --cyan: #22bceb;
  --gold: #d7a928;
  --green: #20d984;
  --red: #f85149;
  --violet: #8b7cf6;
  --accent: var(--cyan);
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-1: 0 20px 44px rgba(0,0,0,.32);
  --shadow-2: 0 8px 24px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 104px; }
body {
  margin: 0;
  min-width: 0;
  background:
    radial-gradient(circle at 18% -10%, rgba(34,188,235,.14), transparent 26%),
    radial-gradient(circle at 85% 0, rgba(32,217,132,.08), transparent 28%),
    linear-gradient(180deg, #081018 0, var(--bg) 19%, #05080c 100%);
  color: var(--ink);
  font: 15.5px/1.62 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%),
    repeating-linear-gradient(180deg, rgba(255,255,255,.016) 0 1px, transparent 1px 4px),
    linear-gradient(120deg, rgba(255,255,255,.02), transparent 18%, transparent 82%, rgba(255,255,255,.02));
  opacity: .18;
}
a { color: color-mix(in srgb, var(--accent) 88%, white 12%); text-underline-offset: 3px; }
a:hover { color: color-mix(in srgb, var(--accent) 66%, white 34%); }
button, input, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 76%, white 24%); outline-offset: 3px; }
button:focus-visible, input:focus-visible, select:focus-visible { outline-color: color-mix(in srgb, var(--accent) 78%, white 22%); }
.wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 76px;
  min-width: 0;
  isolation: isolate;
}
.beta {
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(19,31,45,.92), rgba(10,18,27,.92));
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  padding: 8px 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.beta b { color: var(--gold); font-weight: 800; }
nav.top {
  position: relative;
  z-index: 4;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 20px 0 0;
}
nav.top a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 15px;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  border: 1px solid rgba(255,255,255,.1);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)),
    linear-gradient(180deg, rgba(21,32,44,.96), rgba(11,17,24,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 10px 24px rgba(0,0,0,.18);
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}
nav.top a.on,
nav.top a:hover {
  color: color-mix(in srgb, var(--accent) 78%, white 22%);
  border-color: color-mix(in srgb, var(--accent) 44%, white 18%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, rgba(255,255,255,.06)) , rgba(255,255,255,.018)),
    linear-gradient(180deg, rgba(20,31,44,.96), rgba(9,16,24,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 28px rgba(0,0,0,.22), 0 0 0 1px rgba(0,0,0,.16);
}
h1 {
  font-size: clamp(32px, 3.4vw, 44px);
  letter-spacing: -.045em;
  line-height: 1.12;
  font-weight: 800;
  margin: 28px 0 10px;
  text-shadow: 0 4px 22px rgba(0,0,0,.35);
}
h2 {
  font-size: clamp(21px, 2vw, 26px);
  letter-spacing: -.028em;
  line-height: 1.18;
  margin: 38px 0 14px;
  font-weight: 770;
}
h3 { letter-spacing: -.01em; }
.lead {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.75;
  max-width: 70ch;
  margin: 0;
}
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.bg-hero {
  position: absolute;
  left: 50%;
  top: 44px;
  width: 100vw;
  height: min(38vw, 420px);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(6,10,15,.18), rgba(7,11,16,.76) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(7,11,16,.88) 0, rgba(7,11,16,.55) 26%, rgba(7,11,16,.35) 55%, rgba(7,11,16,.75) 100%),
    var(--hero-image) center/cover no-repeat;
  background-color: #0a1119;
  mask-image: linear-gradient(180deg, #000 0, #000 70%, transparent 100%);
  opacity: .92;
}
.wrap > :not(.bg-hero) { position: relative; z-index: 1; }
.card,
.tile,
.stat,
.chart,
.step,
.pay .opt,
details {
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.014) 12%, transparent 12%),
    linear-gradient(180deg, rgba(18,27,37,.98), rgba(10,16,22,.98));
  border: 1px solid rgba(255,255,255,.085);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -1px 0 rgba(255,255,255,.015), var(--shadow-2);
}
.card { padding: 22px 24px; margin-top: 18px; }
.tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 28px; }
.tile {
  min-width: 0;
  padding: 24px 22px;
  position: relative;
  overflow: hidden;
}
.tile::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, white 10%), transparent 70%);
  opacity: .9;
}
.tile .big,
.pct,
.num,
.stat .v { font-variant-numeric: tabular-nums; }
.tile .big {
  font-size: clamp(28px,2.7vw,36px);
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 800;
  color: color-mix(in srgb, var(--accent) 24%, white 76%);
  text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 26%, transparent 74%);
}
.tile .lbl { color: var(--ink-2); font-size: 14px; margin-top: 10px; line-height: 1.58; }
.tbl {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  background: rgba(10,16,23,.9);
  border: 1px solid rgba(255,255,255,.085);
  border-radius: var(--radius);
  margin-top: 14px;
  scrollbar-color: var(--line-2) var(--panel);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), var(--shadow-2);
}
table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.5; }
th, td { padding: 13px 13px; text-align: left; vertical-align: middle; border-bottom: 1px solid rgba(255,255,255,.065); }
tr:last-child > td { border-bottom: 0; }
th {
  color: var(--ink-2);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .085em;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(180deg, #172230, #121b26);
  white-space: nowrap;
}
tbody tr { transition: background .14s ease; }
tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 9%, transparent 91%); }
td { color: var(--ink-2); }
td b { color: var(--ink); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; }
.tbl table td:first-child, .tbl table th:first-child { padding-left: 18px; }
.tbl table td:last-child, .tbl table th:last-child { padding-right: 18px; }
.coin { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coin img { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.03); object-fit: contain; flex: none; }
.pct { font-weight: 780; }
.pct.good { color: var(--green); }
.pct.mid { color: var(--gold); }
.parts { display: block; color: var(--ink-3); font-size: 11.5px; font-weight: 400; margin-top: 5px; line-height: 1.55; white-space: normal; }
.why {
  border-left: 2px solid color-mix(in srgb, var(--accent) 60%, white 16%);
  padding: 7px 0 7px 17px;
  margin: 15px 0;
  color: var(--ink-2);
  line-height: 1.68;
}
.why b { color: var(--ink); }
.cmp { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; margin-top: 18px; }
.cmp .card { margin-top: 0; }
.cmp h3 { font-size: 16px; margin: 0 0 10px; }
.cmp ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.cmp .us { border-color: color-mix(in srgb, var(--green) 50%, white 8%); }
.seg {
  display: inline-flex;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 4px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(23,34,47,.96), rgba(8,13,19,.96));
  padding: 4px;
  margin-top: 4px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.seg button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  padding: 8px 13px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.seg button:hover { color: var(--ink); }
.seg button.on {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), linear-gradient(180deg, rgba(31,49,65,.98), rgba(14,24,34,.98));
  color: color-mix(in srgb, var(--accent) 68%, white 32%);
  border-color: color-mix(in srgb, var(--accent) 32%, white 15%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
details {
  overflow: hidden;
  margin-top: 10px;
  transition: border-color .15s ease, transform .15s ease;
}
details:hover { border-color: rgba(255,255,255,.14); }
details[open] {
  border-color: color-mix(in srgb, var(--accent) 24%, white 14%);
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015) 12%, transparent 12%),
    linear-gradient(180deg, rgba(18,28,38,.99), rgba(11,17,24,.99));
}
details summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--ink);
  list-style: none;
  font-size: 14px;
  font-weight: 720;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 7px;
  font-size: 16px;
  color: var(--ink-2);
  font-weight: 500;
  background: rgba(255,255,255,.02);
}
details[open] summary::after {
  content: "\2212";
  color: color-mix(in srgb, var(--accent) 64%, white 36%);
  border-color: color-mix(in srgb, var(--accent) 24%, white 12%);
}
details .a { padding: 0 18px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.7; }
details .a p { margin: 10px 0; }
details .a ul { margin: 10px 0; padding-left: 19px; }
details .a li + li { margin-top: 5px; }
code {
  background: rgba(9,16,23,.92);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px;
  color: var(--ink);
  padding: 2px 6px;
  font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.toc a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(23,34,47,.94), rgba(8,13,19,.94));
}
.toc a:hover { color: color-mix(in srgb, var(--accent) 72%, white 28%); border-color: color-mix(in srgb, var(--accent) 34%, white 16%); }
@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px 56px; }
  h1 { margin-top: 24px; font-size: 29px; }
  h2 { margin-top: 32px; font-size: 20px; }
  .tiles, .cmp { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .tile { padding: 20px; }
  th,td { padding: 12px 11px; }
  .tbl table { min-width: max-content; }
  .tbl table td:first-child, .tbl table th:first-child { padding-left: 14px; }
  .tbl table td:last-child, .tbl table th:last-child { padding-right: 14px; }
  .beta { font-size: 11px; padding: 7px 12px; }
  .bg-hero { top: 38px; height: 220px; opacity: .78; }
}
@media (max-width: 400px) {
  nav.top { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  nav.top a { padding: 6px 8px; }
  .seg { display: flex; }
  .seg button { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: .01ms !important; }
}
