:root {
  --bg: #07080c;
  --card: rgba(18, 20, 28, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8b84a;
  --gold2: #ffd978;
  --muted: #9aa3b5;
  --ok: #3ee0a0;
  --down: #ff6b7a;
  --seerr: #615fff;
  --access: #3ee0a0;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, system-ui, sans-serif;
  background: var(--bg);
  color: #eef1f7;
}
.bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 184, 74, 0.18), transparent 55%),
    radial-gradient(900px 500px at 110% 10%, rgba(80, 120, 255, 0.16), transparent 50%),
    linear-gradient(180deg, #0b0d14, #07080c 40%);
}
.hero, main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero { padding-top: 36px; padding-bottom: 20px; }
h1 { margin: 0; }
.wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(232, 184, 74, 0.16));
}
.lede { color: var(--muted); max-width: 40rem; font-size: 18px; margin: 22px 0 0; }
.status-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; font-size: 14px;
}
.pill.ghost { color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.up .dot { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.pill.down .dot { background: var(--down); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.btn {
  appearance: none; border: 1px solid var(--line); background: transparent;
  color: inherit; padding: 11px 18px 11px 14px; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; gap: 10px; font: inherit;
}
.btn .ico { width: 22px; height: 22px; flex-shrink: 0; display: block; }
.btn.primary {
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  color: #1a1404; border: 0; font-weight: 600;
}
.btn.seerr {
  border-color: rgba(97, 95, 255, 0.55);
  background: rgba(97, 95, 255, 0.14);
  color: #ecebff;
}
.btn.access {
  border-color: rgba(62, 224, 160, 0.45);
  background: rgba(62, 224, 160, 0.10);
  color: #d8fff0;
}
.btn.access .ico { color: var(--access); }
.btn:hover { filter: brightness(1.08); }
h2 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 36px 0 14px;
}
.h2-range {
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(232, 184, 74, 0.35);
  background: rgba(232, 184, 74, 0.10);
  padding: 3px 9px;
  border-radius: 999px;
}
.lib-grid, .pair { display: grid; gap: 16px; }
.lib-grid { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.pair { grid-template-columns: 1fr 1fr; }
@media (max-width: 800px) {
  .pair { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
}
.card, .lib {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; backdrop-filter: blur(16px);
}
.lib { padding: 22px; min-height: 120px; }
.lib.has-art {
  display: grid;
  grid-template-columns: 1fr 220px;
  padding: 0;
  min-height: 176px;
  align-items: stretch;
}
.lib-body {
  display: block;
  padding: 22px 18px;
  color: inherit;
  text-decoration: none;
}
a.lib-body:hover { background: rgba(232, 184, 74, 0.07); }
.lib .n { font-family: "Bebas Neue", sans-serif; font-size: 42px; color: var(--gold); }
.lib .t { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.lib-stats { display: grid; gap: 1px; margin-top: 6px; }
.lib-stat { display: flex; align-items: baseline; gap: 10px; line-height: 1.1; }
.lib-stat .n { font-size: 28px; }
.lib-stat .u { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.lib-art {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120px 80px at 50% 58%, rgba(232, 184, 74, 0.10), transparent 70%),
    #09090f;
  min-height: 176px;
  perspective: 720px;
}
.rolo {
  position: absolute;
  inset: 0 0 22px 0;
  transform-style: preserve-3d;
}
.rolo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92px;
  height: 138px;
  margin: -69px 0 0 -46px;
  border-radius: 7px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  transform-origin: center center;
  transition: transform 0.85s cubic-bezier(.45, .05, .2, 1), opacity 0.75s ease, filter 0.75s ease;
  will-change: transform, opacity;
  pointer-events: none;
}
.rolo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rolo-card.no-anim { transition: none !important; }
.rolo-card.pos-left {
  transform: translateX(-68px) translateZ(-42px) rotateY(32deg) scale(0.74);
  opacity: 0.42;
  filter: brightness(0.55) saturate(0.85);
  z-index: 1;
}
.rolo-card.pos-mid {
  transform: translateX(0) translateZ(36px) rotateY(0deg) scale(1);
  opacity: 1;
  filter: none;
  z-index: 3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(232, 184, 74, 0.38);
}
.rolo-card.pos-right {
  transform: translateX(68px) translateZ(-42px) rotateY(-32deg) scale(0.74);
  opacity: 0.72;
  filter: brightness(0.78);
  z-index: 2;
}
.rolo-card.pos-out {
  transform: translateX(-118px) translateZ(-90px) rotateY(48deg) scale(0.48);
  opacity: 0;
  z-index: 0;
}
.rolo-card.pos-wait {
  transform: translateX(118px) translateZ(-90px) rotateY(-48deg) scale(0.48);
  opacity: 0;
  z-index: 0;
}
.rolo-hit {
  position: absolute;
  left: 50%;
  top: calc(50% - 11px);
  width: 92px;
  height: 138px;
  margin: -69px 0 0 -46px;
  z-index: 5;
  border-radius: 7px;
}
.lib-art:has(.rolo-hit:hover) .rolo-card.pos-mid {
  transform: translateX(0) translateZ(44px) rotateY(0deg) scale(1.05);
}
.rolo-nav {
  position: absolute;
  top: calc(50% - 11px);
  z-index: 7;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  padding: 0;
  border: 1px solid rgba(232, 184, 74, 0.35);
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.72);
  color: var(--gold2);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0.82;
}
.rolo-nav svg { width: 14px; height: 14px; display: block; }
.rolo-nav:hover { opacity: 1; background: rgba(8, 8, 14, 0.92); }
.rolo-prev { left: 5px; }
.rolo-next { right: 5px; }
.lib-art-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 6;
  padding: 18px 8px 7px;
  font-size: 11px;
  line-height: 1.25;
  color: #fff;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,0.88));
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.lib-art-cap.is-swap { opacity: 0; }
@media (max-width: 520px) {
  .lib.has-art { grid-template-columns: 1fr; grid-template-rows: auto 176px; }
}
.card h3 {
  margin: 0; padding: 16px 16px 8px; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}
.row {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 16px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
a.row { cursor: pointer; }
a.row:hover { background: rgba(232, 184, 74, 0.08); }
a.row:hover .title { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
a.row:hover img { filter: brightness(1.12); }
.row img, .ph {
  width: 48px; height: 72px; object-fit: cover; border-radius: 6px; background: #111;
}
.ph { display: grid; place-items: center; color: #445; font-size: 11px; }
.row .title { font-weight: 500; color: var(--gold2); }
.row .meta { color: var(--muted); font-size: 12px; }
.row .stat { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: grid; place-items: center; padding: 24px; z-index: 20;
}
.modal[hidden] { display: none; }
.sheet {
  width: min(480px, 100%); background: #12141c; border: 1px solid var(--line);
  border-radius: 20px; padding: 24px;
}
.sheet h3 { margin: 0 0 8px; font-family: "Bebas Neue", sans-serif; font-size: 32px; font-weight: 400; }
.sheet p { color: var(--muted); }
label { display: block; margin: 12px 0; font-size: 13px; color: var(--muted); }
input, textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: #0b0d14; color: #fff; font: inherit;
}
.form-msg { min-height: 1.2em; }
footer { max-width: 1120px; margin: 48px auto 32px; padding: 0 24px; color: #667; font-size: 12px; }
