/* =========================================================
   CLOUDIGAMES // styles.css
   Cyber-organic minimal. Performance-first.
   - backdrop-filter ONLY on nav panel, top bar, modal
   - no animated blurs, no mix-blend-mode, no large filters
   - transforms + opacity only for hover/anim
   ========================================================= */

:root {
  --bg: #07080B;
  --bg-2: #0B0D14;
  --surface: #0E1118;
  --surface-2: #131722;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.18);

  --ink: #ECEEF2;
  --ink-2: #C5C9D2;
  --ink-dim: #8C92A0;
  --ink-mute: #555A66;

  --primary: #00F0FF;
  --primary-soft: #7CF3FF;
  --cyan: #00F0FF;
  --cyan-soft: #7CF3FF;
  --magenta: #B23BFF;
  --warn: #FFB020;
  --err: #FF4D6E;

  --serif: "Orbitron", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  --max: 1280px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
  background: #010204;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}


img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--cyan-soft); text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid rgba(0, 240, 255, 0.7);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection { background: var(--primary); color: #000; }

/* ----------------------------- BOOT (fast) */
.boot {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .35s ease, visibility .35s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__inner {
  width: min(420px, 88vw);
  display: grid; gap: 14px;
  text-align: center;
  font-family: var(--serif);
}
.boot__title {
  letter-spacing: 0.22em; font-size: 12px;
  color: var(--primary);
}
.boot__bar {
  height: 2px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08); overflow: hidden;
  position: relative;
}
.boot__bar span {
  position: absolute; inset: 0; width: 0;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  border-radius: inherit;
  animation: bootFill 800ms var(--ease) forwards;
}
@keyframes bootFill { to { width: 100%; } }

/* ----------------------------- SURFACES (solid, cheap) */
.surface {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.surface-2 {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
}

/* ----------------------------- TOPBAR
   Sticky pill. backdrop-filter ok here (one element). */
.topbar {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  padding: 0 18px;
  pointer-events: none;
}
.topbar__inner {
  pointer-events: auto;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(14, 17, 24, 0.72);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.6);
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  padding: 4px 6px;
}
.brand__mark { display: grid; place-items: center; }
.brand__logo { height: 42px; width: auto; display: block; }
.brand__text { display: grid; line-height: 1.05; }
.brand__name {
  font-family: var(--serif); font-weight: 700;
  letter-spacing: 0.14em; font-size: 14px;
  color: var(--ink);
}
.brand__sub {
  font-size: 9.5px; color: var(--ink-mute);
  letter-spacing: 0.22em; margin-top: 2px;
  text-transform: uppercase;
}
.topbar__status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; color: var(--ink-dim);
  letter-spacing: 0.16em;
  padding-right: 8px;
}
.topbar__sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-mute);
}
.topbar__label { text-transform: uppercase; }

/* TOPBAR NAV */
.topbar__nav {
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
}
.topbar__navlink {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.topbar__navlink:hover { color: var(--ink); background: rgba(255, 255, 255, 0.05); }
.topbar__navlink.is-active { color: var(--primary); }
.topbar__navlink--caret svg { opacity: 0.6; transition: transform .2s ease; }
.topbar__dropdown { position: relative; }
.topbar__dropdown.is-open .topbar__navlink--caret svg { transform: rotate(180deg); }
.topbar__catmenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 160px;
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.7);
  padding: 6px;
  list-style: none;
  z-index: 100;
}
.topbar__catmenu li button {
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-2);
  border-radius: var(--r-sm);
  transition: color .12s ease, background .12s ease;
}
.topbar__catmenu li button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.topbar__catmenu li button.active { color: #07090E; background: var(--primary); }

.iconbtn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s var(--ease);
}
.iconbtn:hover {
  color: var(--primary);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.06);
}
.iconbtn:active { transform: scale(0.94); }

/* TOPBAR SCROLL SEARCH */
.topbar__right {
  display: flex; align-items: center; gap: 12px;
  justify-content: flex-end;
}
.topbar__search-wrap {
  display: flex;
  align-items: center;
  overflow: hidden;
}
.topbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 0;
  opacity: 0;
  pointer-events: none;
  padding: 4px 2px;
  border-bottom: 1px solid transparent;
  transition: max-width .4s var(--ease), opacity .3s ease, border-color .2s ease;
}
.topbar.is-scrolled .topbar__search {
  max-width: 360px;
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: var(--line-2);
}
.topbar__search:focus-within {
  border-color: rgba(0, 240, 255, 0.5);
}
.topbar__search svg { flex-shrink: 0; color: var(--cyan-soft); }
.topbar__search-input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  outline: none;
  width: 100%;
  min-width: 0;
}
.topbar__search-input::placeholder { color: var(--ink-mute); }

/* ----------------------------- HERO */
main { display: block; padding-top: 72px; }

.hero {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  padding: 20px 28px 16px;
  text-align: center;
}
.hero__label {
  font-size: 10.5px;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  font-size: 11px; color: var(--ink-2);
  letter-spacing: 0.06em;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.hero__chip-sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-mute);
}
.hero__chip-mute { color: var(--ink-dim); }
.hero__chip-mute span { color: var(--cyan-soft); margin-left: 4px; }

.hero__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(36px, 6.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 8px auto 22px;
}
.hero__line { display: block; color: var(--ink); }
.hero__line--alt {
  background: linear-gradient(100deg, var(--primary) 10%, var(--cyan) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub {
  max-width: 560px; margin: 0 auto 32px;
  color: var(--ink-dim); font-size: 14px;
  line-height: 1.65;
}

/* SEARCH */
.search {
  display: grid; grid-template-columns: 48px 1fr auto;
  max-width: 720px; margin: 0 auto;
  border-radius: var(--r-pill);
  padding: 5px 5px 5px 4px;
  align-items: center;
  background: rgba(14, 17, 24, 0.7);
  border: 1px solid var(--line-2);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.search:focus-within {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.08);
}
.search__icon {
  display: grid; place-items: center;
  color: var(--cyan-soft);
  width: 44px; height: 44px;
}
.search__input {
  background: transparent; border: 0;
  color: var(--ink);
  padding: 12px 8px;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.02em;
  outline: none;
  width: 100%;
}
.search__input::placeholder { color: var(--ink-mute); }
.search__submit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px;
  background: var(--primary);
  color: #07090E;
  font-family: var(--serif); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  transition: background .15s ease, transform .12s var(--ease);
}
.search__submit:hover { background: var(--primary-soft); }
.search__submit:active { transform: translateY(1px); }

/* TICKER */
.ticker {
  display: grid; grid-template-columns: auto 1fr;
  gap: 14px; align-items: center;
  margin: 18px auto 0; max-width: 720px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.ticker__label {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--cyan-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10.5px;
}
.ticker__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
}
.ticker__track {
  overflow: hidden; white-space: nowrap; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__item {
  display: inline-block;
  animation: tickerSlide 30s linear infinite;
  padding-left: 100%;
}
@keyframes tickerSlide {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* HERO STATS */
.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 48px auto 0; max-width: 920px;
}
.stat {
  padding: 20px 16px;
  border-radius: var(--r-md);
  display: grid; gap: 6px;
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s var(--ease);
}
.stat:hover { transform: translateY(-2px); border-color: var(--line-3); }
.stat__num {
  font-family: var(--serif); font-weight: 700;
  font-size: 26px; letter-spacing: 0.02em;
  color: var(--primary);
}
.stat__num--small { font-size: 22px; }
.stat__num span { color: var(--ink-dim); font-size: 14px; margin-left: 2px; }
.stat__label {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* ----------------------------- SECTIONS */
.section {
  max-width: var(--max); margin: 0 auto;
  padding: 40px 28px;
}
.section--compact { padding-top: 18px; padding-bottom: 18px; }
.section--contact { padding-bottom: 80px; }

.section__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.section__kicker {
  display: inline-block;
  font-size: 10.5px; color: var(--cyan-soft);
  letter-spacing: 0.22em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section__title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.02em;
}
.section__legend {
  display: inline-flex; gap: 14px;
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 10.5px; color: var(--ink-dim); letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.section__tools {
  display: inline-flex; align-items: center; gap: 12px;
}
.resultcount {
  font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.16em;
  text-transform: uppercase;
}
.legend { display: inline-flex; align-items: center; gap: 6px; }

/* DOTS */
.dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
  background: var(--ink-mute);
}
.dot--ok   { background: var(--primary); }
.dot--warn { background: var(--warn); }
.dot--off  { background: var(--err); }

.ok   { color: var(--primary); }
.warn { color: var(--warn); }
.err  { color: var(--err); }

.ok-pill, .warn-pill, .err-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: var(--r-pill);
}
.ok-pill   { color: var(--primary); background: rgba(0, 240, 255, 0.08); border: 1px solid rgba(0, 240, 255, 0.25); }
.warn-pill { color: var(--warn); background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.28); }
.err-pill  { color: var(--err); background: rgba(255, 77, 110, 0.08); border: 1px solid rgba(255, 77, 110, 0.28); }

/* CATEGORIES */
.catbar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 5px;
  border-radius: var(--r-pill);
  width: fit-content;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.catpill {
  padding: 9px 16px;
  font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink-2);
  border-radius: var(--r-pill);
  transition: color .15s ease, background .15s ease;
}
.catpill:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.catpill.active {
  color: #07090E;
  background: var(--primary);
}

/* ----------------------------- CELLS (light) */
.cells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.cells--rail {
  display: block;
  overflow: hidden;
  padding-bottom: 12px;
}
.cells__rail-track {
  display: flex;
  gap: 18px;
  width: max-content;
  min-width: 100%;
  animation: trendingRail 120s linear infinite;
  will-change: transform;
}
.cells--rail:hover .cells__rail-track,
.cells--rail:focus-within .cells__rail-track {
  animation-play-state: paused;
}
@keyframes trendingRail {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 9px)); }
}
.cells--rail .cell {
  flex: 0 0 clamp(260px, 24vw, 310px);
}

.cell {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), border-color .2s ease, box-shadow .3s ease;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
}
.cell:hover, .cell:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(0, 240, 255, 0.4);
  animation: cellGlow 2.6s ease-in-out infinite;
}
@keyframes cellGlow {
  0%, 100% { box-shadow: 0 12px 40px -12px rgba(0, 240, 255, 0.18); }
  50%       { box-shadow: 0 16px 48px -10px rgba(0, 240, 255, 0.32), 0 0 28px -8px rgba(0, 240, 255, 0.12); }
}

.cell__media {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  height: auto;
  overflow: hidden;
  background: #04050A;
  flex-shrink: 0;
}
.cell__poster {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s var(--ease);
  will-change: transform;
}
.cell:hover .cell__poster { transform: scale(1.04); }

/* shimmer sweep on hover */
.cell__media::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 55%;
  background: linear-gradient(105deg, transparent 20%, rgba(255, 255, 255, 0.09) 50%, transparent 80%);
  z-index: 5;
  pointer-events: none;
  transform: translateX(-150%) skewX(-12deg);
}
.cell:hover .cell__media::before {
  animation: cellShimmer .72s ease forwards;
}
@keyframes cellShimmer {
  to { transform: translateX(320%) skewX(-12deg); }
}

.cell__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 10, 16, 0.85) 100%);
  pointer-events: none;
}

.cell__statusdot {
  position: absolute; top: 12px; right: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  z-index: 4;
  display: none;
}
.cell__body {
  padding: 14px 16px 16px;
  position: relative; z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 132px;
}
.cell__title {
  font-family: var(--serif); font-weight: 700;
  font-size: 14px; line-height: 1.3;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  min-height: 2.6em;
}
.cell__meta {
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.cell__cat { color: var(--cyan-soft); text-transform: uppercase; letter-spacing: 0.16em; font-size: 10px; }
.cell__dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-mute); }
.cell__desc {
  margin: 10px 0 0;
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cell__desc[hidden] { display: none; }

/* ACTION BUTTONS */
.actionbtn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #07090E;
  font-family: var(--serif); font-weight: 700;
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background .15s ease, transform .12s var(--ease);
}
.actionbtn:hover { background: var(--primary-soft); }
.actionbtn:active { transform: translateY(1px); }
.actionbtn--big {
  padding: 15px 22px;
  font-size: 12px;
  width: 100%;
}
.actionbtn--full { width: 100%; }
.actionbtn--ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  padding: 10px 14px;
  font-size: 10.5px;
}
.actionbtn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  border-color: var(--line-3);
}
.actionbtn--linking {
  background: rgba(255, 255, 255, 0.04);
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.4);
  pointer-events: none;
}

.ghostbtn {
  padding: 9px 14px;
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 240, 255, 0.32);
  background: rgba(0, 240, 255, 0.04);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  align-self: start;
}
.ghostbtn:hover {
  background: rgba(0, 240, 255, 0.14);
  color: #fff;
  border-color: rgba(0, 240, 255, 0.55);
}

/* ----------------------------- STATUS */
.status {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.status__panel {
  border-radius: var(--r-lg);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.status__head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; color: var(--ink-2);
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px; margin-bottom: 14px;
}
.status__list { list-style: none; display: grid; gap: 11px; }
.status__list li {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 12px;
  font-size: 12px; color: var(--ink);
  letter-spacing: 0.04em;
}
.status__ms { color: var(--cyan-soft); font-size: 11px; }

.status__bars { display: grid; gap: 12px; }
.bar {
  display: grid; grid-template-columns: 130px 1fr 50px;
  align-items: center; gap: 12px;
  font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.04em;
}
.bar__label { color: var(--ink-2); }
.bar__track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--r-pill);
  position: relative; overflow: hidden;
}
.bar__fill {
  display: block; height: 100%; width: var(--w);
  border-radius: inherit;
  background: var(--primary);
  transition: width 800ms var(--ease);
}
.bar__fill--cyan { background: var(--cyan); }
.bar__val { color: var(--ink); text-align: right; font-size: 11px; }

/* ADFRAME */
.adframe {
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: var(--r-md);
  background: rgba(0, 240, 255, 0.03);
  overflow: hidden;
}
.adframe__head {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.16em;
  color: var(--cyan-soft);
  padding: 9px 14px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.18);
  text-transform: uppercase;
}
.adframe__body { padding: 14px; display: grid; gap: 10px; }
.adframe__title {
  font-family: var(--serif); font-size: 13px;
  color: var(--ink); letter-spacing: 0.02em;
}
.adframe__text { font-size: 11.5px; color: var(--ink-dim); line-height: 1.55; }

/* ----------------------------- CONTACT */
.contact {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-2);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field__label {
  font-size: 10.5px; letter-spacing: 0.14em;
  color: var(--cyan-soft);
  text-transform: uppercase;
}
.field input, .field textarea, .field select {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.3);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-mute); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(0, 240, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.08);
}
.contact .actionbtn { grid-column: 1 / -1; }
.contact__hint {
  grid-column: 1 / -1;
  font-size: 11.5px; color: var(--primary);
  letter-spacing: 0.04em;
}
.contact__hint span { color: var(--cyan-soft); }

/* ----------------------------- FOOTER */
.footer {
  padding: 16px 18px 28px;
  margin-top: 16px;
}
.footer__inner {
  max-width: var(--max); margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.footer__cols {
  display: block;
}
.footer__col { display: grid; gap: 8px; align-content: start; }
.footer__col--big {
  text-align: center;
}
.footer__h {
  font-family: var(--serif); font-size: 11px;
  letter-spacing: 0.18em; color: var(--ink-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.footer__code {
  font-family: var(--mono); font-size: 11px;
  line-height: 1.55;
  color: var(--cyan-soft);
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  min-height: 110px;
}
.footer__count {
  font-family: var(--serif); font-weight: 900;
  font-size: 34px; letter-spacing: 0.02em;
  color: var(--primary);
}
.footer__sub { font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.08em; }

.footer__bar {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.footer__bar a { color: var(--cyan-soft); }

/* ----------------------------- PAGINATION */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.pagination--top {
  margin-top: 0;
  margin-bottom: 22px;
}
.pag__btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color .15s ease, background .15s ease, border-color .15s ease, transform .12s var(--ease);
}
.pag__btn:hover:not(:disabled) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line-2);
  transform: translateY(-1px);
}
.pag__btn.active {
  background: var(--primary);
  color: #07090E;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 18px -6px rgba(0, 240, 255, 0.55);
}
.pag__btn--nav {
  color: var(--cyan-soft);
  border-color: rgba(0, 240, 255, 0.22);
  background: rgba(0, 240, 255, 0.04);
}
.pag__btn--nav:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.45);
  color: #fff;
}
.pag__btn:disabled {
  opacity: 0.28;
  pointer-events: none;
}
.pag__ellipsis {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 13px; color: var(--ink-mute);
  letter-spacing: 0.04em;
  user-select: none;
}

/* ----------------------------- LOAD NOTICE */
.load-notice {
  grid-column: 1 / -1;
  padding: 60px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.load-dots::after {
  content: "...";
  display: inline-block;
  animation: loadDots 1.2s steps(4, end) infinite;
  width: 1.5ch;
  overflow: hidden;
  vertical-align: bottom;
}
@keyframes loadDots {
  0%   { width: 0; }
  100% { width: 1.5ch; }
}

/* ----------------------------- EMPTY */
.empty {
  display: grid; place-items: center; gap: 8px;
  padding: 56px 16px;
  border-radius: var(--r-lg);
  color: var(--ink-dim);
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--line-2);
}
.empty__icon { color: var(--ink-mute); }
.empty__title {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.empty__sub { font-size: 11.5px; color: var(--ink-dim); }

/* ----------------------------- DECRYPTION HUB (modal) */
.hub {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
}
.hub.is-open { opacity: 1; visibility: visible; }
.hub__backdrop {
  position: absolute; inset: 0;
  background: rgba(2, 4, 8, 0.7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hub__panel {
  position: relative;
  width: min(1080px, 96vw);
  max-height: 92vh; overflow: auto;
  border-radius: var(--r-xl);
  background: rgba(14, 17, 24, 0.96);
  border: 1px solid var(--line-2);
  transform: translateY(20px) scale(0.98);
  transition: transform .3s var(--ease);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.hub.is-open .hub__panel { transform: translateY(0) scale(1); }
.hub__head {
  display: flex; justify-content: space-between; align-items: start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.hub__head-meta { min-width: 0; flex: 1; }
.hub__head-actions {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}

/* Big "Descargar" CTA in the hub header — always-visible primary action.
   Lives next to the close button so it's the first thing the user sees. */
.hub__dl-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: #07090E;
  font-family: var(--serif); font-weight: 800;
  font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.0);
  transition:
    background .15s ease,
    transform .12s var(--ease),
    box-shadow .25s ease;
  animation: hub-dl-pulse 2.4s ease-in-out infinite;
}
.hub__dl-cta:hover {
  background: var(--primary-soft);
  box-shadow: 0 0 0 6px rgba(0, 240, 255, 0.15);
}
.hub__dl-cta:active { transform: translateY(1px); }
.hub__dl-cta-count {
  display: inline-block;
  min-width: 22px;
  padding: 2px 7px;
  background: rgba(7, 9, 14, 0.25);
  color: #07090E;
  border-radius: var(--r-pill);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  font-weight: 800;
}

@keyframes hub-dl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.0); }
  50%      { box-shadow: 0 0 0 8px rgba(0, 240, 255, 0.18); }
}

/* Pulse highlight applied to the sidebar dl-box when the header CTA is
   clicked and there's more than one provider (so the user can pick). */
.hub__dl-box--pulse {
  animation: hub-dl-box-pulse 1.6s ease-out 1;
}
@keyframes hub-dl-box-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.55); }
  60%  { box-shadow: 0 0 0 14px rgba(0, 240, 255, 0.0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.0); }
}
.hub__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hub__tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-family: var(--mono);
  color: var(--cyan); background: rgba(0,240,255,0.10);
  border: 1px solid rgba(0,240,255,0.30);
  border-radius: var(--r-pill);
  padding: 3px 10px;
}
.hub__title {
  font-family: var(--serif); font-weight: 700;
  letter-spacing: 0.02em; font-size: 22px;
  margin-top: 2px;
}
.hub__grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 22px; padding: 24px;
}
.hub__cover { display: grid; gap: 12px; align-content: start; }
.hub__cover-img {
  aspect-ratio: 3 / 4;
  background-size: cover; background-position: center;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
}
.hub__specs {
  list-style: none; display: grid; gap: 4px;
  font-size: 11.5px; color: var(--ink-dim);
  letter-spacing: 0.04em;
  padding: 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.hub__specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.hub__specs li:last-child { border: 0; }
.hub__specs span:first-child { color: var(--cyan-soft); }
.hub__specs span:last-child { color: var(--ink); text-align: right; }

.hub__body { display: grid; gap: 16px; align-content: start; }

.hub__section {
  border-radius: var(--r-md);
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
}
.hub__section-title {
  font-family: var(--serif);
  font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--cyan-soft);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hub__desc {
  font-size: 13.5px; color: var(--ink-2);
  line-height: 1.72;
}
.hub__reqs {
  list-style: none;
  display: grid; gap: 6px;
}
.hub__reqs li {
  font-size: 12px; font-family: var(--mono);
  color: var(--ink-dim);
  padding: 7px 12px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.hub__reqs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.hub__reqs-col-title {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  font-family: var(--mono);
  margin-bottom: 8px;
}
.hub__install {
  list-style: none;
  display: grid; gap: 10px;
  counter-reset: install-steps;
}
.hub__install li {
  counter-increment: install-steps;
  display: grid; grid-template-columns: 26px 1fr;
  gap: 12px; align-items: start;
  font-size: 13px; color: var(--ink-2);
  line-height: 1.55;
}
.hub__install li::before {
  content: counter(install-steps);
  font-family: var(--serif); font-size: 11px;
  color: var(--primary);
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 240, 255, 0.35);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.hub__dl-box {
  border-radius: var(--r-md);
  padding: 16px 18px;
  background:
    linear-gradient(180deg, rgba(0, 240, 255, 0.06), rgba(0, 240, 255, 0.02)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 0 1px rgba(0, 240, 255, 0.05) inset;
}
.hub__dl-label {
  display: block;
  font-size: 12px; letter-spacing: 0.24em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 700;
}

/* Section header inside the downloads list (e.g., JUEGO / UPDATE / CRACK). */
.hub__nodes-list .hub__nodes-section {
  display: block;
  background: transparent;
  border: 0;
  padding: 8px 4px 2px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  font-weight: 700;
}
.hub__nodes-list .hub__nodes-section:first-child {
  padding-top: 0;
}
.hub__nodes-list .hub__nodes-section + .hub__nodes-section {
  margin-top: 0;
}
.hub__nodes-list .hub__nodes-section span {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
}

.hub__nodes-list { list-style: none; display: grid; gap: 8px; }
.hub__nodes-list li {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.hub__nodes-list li.locked { opacity: 0.5; pointer-events: none; }
.hub__nodes-list li.unlocked:hover {
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.04);
}
.hub__nodes-list .node__id {
  font-family: var(--serif); font-size: 11px;
  color: var(--cyan-soft); letter-spacing: 0.12em;
  text-align: center;
}
.hub__nodes-list .node__name {
  font-size: 12.5px; color: var(--ink);
  letter-spacing: 0.04em;
}
.hub__nodes-list .node__name small {
  color: var(--ink-mute);
  margin-left: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
}
.hub__nodes-list .node__cta {
  padding: 8px 14px;
  font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(0, 240, 255, 0.4);
  transition: background .15s ease, color .15s ease;
}
.hub__nodes-list .node__cta:hover { background: var(--primary); color: #07090E; }
.hub__nodes-list li.locked .node__cta {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-mute);
}

.hub__nodes-list li.locked .node__cta {
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--ink-mute);
}

/* ----------------------------- HUB MISSING DATA */
.hub__missing {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  border: 1px dashed rgba(255, 200, 90, 0.35);
  background: rgba(255, 200, 90, 0.04);
}
.hub__missing-label {
  display: block;
  font-size: 10.5px; letter-spacing: 0.22em;
  color: rgba(255, 200, 90, 0.85);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hub__missing-list {
  list-style: none; display: flex; flex-wrap: wrap; gap: 6px;
}
.hub__missing-list li {
  font-size: 10.5px; letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 200, 90, 0.08);
  color: rgba(255, 220, 160, 0.92);
  text-transform: lowercase;
  border: 1px solid rgba(255, 200, 90, 0.2);
}
.hub__dl-empty {
  margin: 0; font-size: 11.5px; color: var(--ink-mute);
  letter-spacing: 0.04em;
}

/* ----------------------------- LINKS PANEL */
.lpanel {
  position: fixed; inset: 0; z-index: 9100;
  display: grid; place-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .18s ease;
}
.lpanel.is-open { opacity: 1; pointer-events: all; }
.lpanel__bg {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  cursor: pointer;
}
.lpanel__box {
  position: relative; z-index: 1;
  width: min(92vw, 640px);
  max-height: 84vh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.lpanel__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}
.lpanel__sub {
  display: block;
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  margin-bottom: 6px;
}
.lpanel__title {
  margin: 0;
  font-family: var(--serif); font-weight: 700;
  font-size: 16px; letter-spacing: 0.02em;
  color: var(--ink);
}
.lpanel__list {
  list-style: none;
  margin: 0; padding: 8px;
  overflow-y: auto;
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
}
.lpanel__item {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: border-color .15s ease, background .15s ease;
}
.lpanel__item:hover {
  border-color: rgba(0, 240, 255, 0.25);
  background: rgba(0, 240, 255, 0.03);
}
.lpanel__num {
  font-family: var(--mono, monospace);
  font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--cyan-soft);
  text-align: center;
}
.lpanel__data {
  display: flex; flex-direction: column;
  min-width: 0;
}
.lpanel__label {
  font-size: 12.5px; color: var(--ink);
  letter-spacing: 0.04em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lpanel__url {
  font-family: var(--mono, monospace);
  font-size: 10.5px; color: var(--ink-mute);
  letter-spacing: 0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}
.lpanel__actions { display: flex; gap: 6px; }
.lpanel__btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 240, 255, 0.28);
  font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.lpanel__btn:hover { background: rgba(0, 240, 255, 0.08); color: #aef9ff; }
.lpanel__btn.is-flash { background: var(--primary); color: #07090E; border-color: var(--primary); }
.lpanel__btn--alt { color: var(--primary); border-color: rgba(0, 240, 255, 0.4); }
.lpanel__btn--alt:hover { background: var(--primary); color: #07090E; }
.lpanel__foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}
.lpanel__bulk {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--cyan-soft);
  border: 1px solid rgba(0, 240, 255, 0.28);
  font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.lpanel__bulk:hover { background: rgba(0, 240, 255, 0.08); color: #aef9ff; }
.lpanel__bulk--alt { color: var(--primary); border-color: rgba(0, 240, 255, 0.4); }
.lpanel__bulk--alt:hover { background: var(--primary); color: #07090E; }
.lpanel__bulk.is-flash { background: var(--primary); color: #07090E; border-color: var(--primary); }

/* ----------------------------- HUB MEDIA */
.hub__media { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.hub__strip-outer { overflow: hidden; background: rgba(0,0,0,0.4); position: relative; }
.hub__strip-outer::before, .hub__strip-outer::after { content: ''; position: absolute; top: 0; bottom: 0; width: 48px; z-index: 2; pointer-events: none; }
.hub__strip-outer::before { left: 0; background: linear-gradient(to right, rgba(7,9,14,0.9), transparent); }
.hub__strip-outer::after  { right: 0; background: linear-gradient(to left,  rgba(7,9,14,0.9), transparent); }
.hub__strip { display: flex; gap: 8px; padding: 10px; width: max-content; animation: hub-scroll 16s linear infinite; will-change: transform; }
.hub__strip:hover { animation-play-state: paused; }
@keyframes hub-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hub__strip-item { width: 200px; flex-shrink: 0; aspect-ratio: 16/9; border-radius: var(--r-sm); overflow: hidden; position: relative; cursor: pointer; border: 2px solid transparent; background: #000; padding: 0; transition: border-color .15s ease; }
.hub__strip-item:hover { border-color: var(--primary); }
.hub__strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.hub__strip-play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.42); }
.hub__strip-play svg { filter: drop-shadow(0 2px 6px rgba(0,0,0,0.7)); }

/* Lightbox */
.hub__lb { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.hub__lb.is-open { opacity: 1; pointer-events: all; }
.hub__lb-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.88); backdrop-filter: blur(10px); cursor: pointer; }
.hub__lb-panel { position: relative; z-index: 1; width: min(92vw, 1200px); }
.hub__lb-stage { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r-md); overflow: hidden; }
.hub__lb-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hub__lb-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.hub__lb-close { position: absolute; top: -48px; right: 0; color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; }
.hub__lb-close:hover { color: #fff; background: rgba(255,255,255,0.16); }
.hub__lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.15); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; cursor: pointer; display: grid; place-items: center; transition: background .15s, border-color .15s; line-height: 1; }
.hub__lb-nav:hover { background: rgba(0,240,255,0.15); border-color: var(--primary); color: var(--primary); }
.hub__lb-prev { left: -56px; }
.hub__lb-next { right: -56px; }

/* ----------------------------- RESPONSIVE */
@media (max-width: 980px) {
  .cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .footer__col--big { text-align: center; }
  .hub__grid { grid-template-columns: 1fr; }
  .hub__cover-img { aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub__reqs-grid { grid-template-columns: 1fr; }
  /* Compact the header CTA on phones so the close button stays reachable. */
  .hub__dl-cta { padding: 9px 12px; font-size: 10.5px; letter-spacing: 0.12em; gap: 6px; }
  .hub__dl-cta-text { display: none; }
  .hub__dl-cta-count { min-width: 18px; padding: 1px 6px; font-size: 10px; }
  .hub__lb-prev { left: 8px; }
  .hub__lb-next { right: 8px; }
  .hub__lb-nav { width: 36px; height: 36px; font-size: 22px; }
  .hub__strip-item { width: 150px; }
  .cells--rail .cell { flex-basis: calc(100vw - 32px); }
  .hero { padding: 48px 16px 36px; }
  .section { padding: 40px 16px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 0 12px; top: 10px; }
  .topbar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px;
    padding: 6px 10px;
  }
  .brand { min-width: 0; gap: 6px; }
  .brand__logo { height: 32px; }
  .brand__name { font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; }
  .topbar__nav { min-width: 0; gap: 0; }
  .topbar__navlink { padding: 6px 5px; font-size: 9px; letter-spacing: 0.02em; }
  .topbar__right { display: none; }
  .topbar__catmenu {
    left: auto;
    right: 0;
    width: min(180px, calc(100vw - 24px));
    min-width: 0;
  }
  .brand__sub { display: none; }
  .contact { grid-template-columns: 1fr; padding: 18px; }
  .footer__inner { padding: 20px; }
  .bar { grid-template-columns: 100px 1fr 44px; }
  .search { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .search__icon { width: 32px; height: 36px; }
  .search__input { min-width: 0; padding: 10px 4px; font-size: 12px; }
  .search__submit { gap: 6px; padding: 9px 12px; font-size: 9.5px; letter-spacing: 0.1em; }
  .hub__panel { width: calc(100vw - 16px); max-height: 94vh; border-radius: var(--r-lg); }
  .hub__head { padding: 16px; gap: 10px; }
  .hub__title { font-size: 16px; overflow-wrap: anywhere; }
  .hub__grid { padding: 16px; gap: 16px; }
  .hub__nodes-list li { grid-template-columns: 1fr; gap: 8px; }
  .hub__nodes-list li .node__cta { justify-self: start; }
  .lpanel__item { grid-template-columns: 26px minmax(0, 1fr); }
  .lpanel__actions { grid-column: 2; flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .cells:not(.cells--rail) { grid-template-columns: 1fr; }
  .section__title { font-size: 18px; }
  .section__head { gap: 12px; }
}

@media (max-width: 360px) {
  .topbar { padding: 0 8px; }
  .topbar__inner { padding: 6px 8px; }
  .brand__logo { height: 29px; }
  .brand__name { font-size: 10px; }
  .topbar__navlink { padding-inline: 4px; font-size: 8.5px; }
  .search__submit { padding-inline: 10px; }
}

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

/* ----------------------------- SCROLLBAR */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.3) rgba(255, 255, 255, 0.04);
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.28);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.55);
}
::-webkit-scrollbar-corner { background: transparent; }

/* =====================================================
   FX LAYER
===================================================== */

/* Canvas background */
.fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* All content sits above canvas */
#boot, header, main, footer { position: relative; z-index: 1; }



/* ---- Section reveal ---- */
.section, .stat {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.section.is-revealed, .stat.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero parallax layers ---- */
.hero__title,
.hero .search,
.hero .ticker,
.hero__stats {
  will-change: transform;
  transition: transform .08s linear;
}

/* ---- Card tilt (3D) ---- */
.cell {
  transform-style: preserve-3d;
  transform-origin: center center;
}

/* ---- Stagger reveal for stat cards ---- */
.stat:nth-child(1) { transition-delay: 0s; }
.stat:nth-child(2) { transition-delay: .08s; }
.stat:nth-child(3) { transition-delay: .16s; }
.stat:nth-child(4) { transition-delay: .24s; }

/* On touch devices: restore cursor + disable tilt */
@media (pointer: coarse) {
  .hero__title, .hero .search, .hero .ticker, .hero__stats {
    will-change: auto; transition: none;
  }
}

/* ---- Hint toast ---- */
.fx-hint {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(14px);
  z-index: 9999;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(14, 17, 24, 0.88);
  border: 1px solid rgba(0, 240, 255, 0.32);
  font-size: 11.5px;
  color: var(--ink-dim);
  letter-spacing: 0.06em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease, transform .5s var(--ease);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.fx-hint.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
