/* ==========================================================================
   NEXOORA HIVE — design system
   Dark arcade theme. Pure CSS, no framework, no runtime compiler.
   ========================================================================== */

:root {
  --nx-bg: #0b0f1a;
  --nx-bg-2: #0e1322;
  --nx-surface: #131829;
  --nx-surface-2: #1a2137;
  --nx-line: #232a44;
  --nx-line-2: #2d3556;

  --nx-text: #e8ebf7;
  --nx-text-2: #b3bad4;
  --nx-muted: #7c86a8;
  --nx-faint: #58618044;

  --nx-cyan: #22d3ee;
  --nx-cyan-2: #06b6d4;
  --nx-pink: #f472b6;
  --nx-lime: #a3e635;
  --nx-amber: #fbbf24;
  --nx-red: #fb7185;

  --nx-accent: var(--nx-cyan);
  --nx-glow: 0 0 0 1px rgba(34, 211, 238, .35), 0 8px 32px rgba(34, 211, 238, .18);

  --nx-r-sm: 8px;
  --nx-r: 12px;
  --nx-r-lg: 18px;
  --nx-r-xl: 26px;
  --nx-pill: 999px;

  --nx-sh: 0 4px 14px rgba(0, 0, 0, .35);
  --nx-sh-lg: 0 12px 40px rgba(0, 0, 0, .5);

  --nx-head-h: 62px;
  --nx-max: 1560px;
  --nx-ease: cubic-bezier(.22, .61, .36, 1);
  --nx-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--nx-font);
  font-size: 15px;
  line-height: 1.62;
  color: var(--nx-text);
  background: var(--nx-bg);
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(34, 211, 238, .10), transparent 62%),
    radial-gradient(900px 460px at 92% 4%, rgba(244, 114, 182, .09), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--nx-line); margin: 26px 0; }

:focus-visible { outline: 2px solid var(--nx-cyan); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--nx-cyan); color: #04121a; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--nx-bg-2); }
::-webkit-scrollbar-thumb { background: var(--nx-line-2); border-radius: 99px; border: 3px solid var(--nx-bg-2); }
::-webkit-scrollbar-thumb:hover { background: #3b4570; }

.nx-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--nx-cyan); color: #04121a; padding: 12px 20px; font-weight: 700;
  border-radius: 0 0 var(--nx-r) 0;
}
.nx-skip:focus { left: 0; }

.nx-scroll-x {
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
}
.nx-scroll-x::-webkit-scrollbar { display: none; }

/* ==========================================================================
   Shell
   ========================================================================== */

.nx-wrap { max-width: var(--nx-max); margin: 0 auto; padding: 0 18px; }
main { display: block; padding-bottom: 48px; }

/* ==========================================================================
   Header — top bar + category strip (no side rail)
   ========================================================================== */

.nx-top {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11, 15, 26, .82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--nx-line);
}

.nx-top__bar {
  max-width: var(--nx-max); margin: 0 auto; padding: 0 18px;
  height: var(--nx-head-h); display: flex; align-items: center; gap: 14px;
}

.nx-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.nx-logo img { height: 32px; width: auto; }
.nx-logo__mark {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--nx-cyan), #3b82f6 55%, var(--nx-pink));
  color: #04121a; font-weight: 900; font-size: 15px;
  box-shadow: 0 6px 18px rgba(34, 211, 238, .35);
}
.nx-logo__txt { font-size: 18px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; }
.nx-logo__txt b { color: var(--nx-cyan); font-weight: 800; }
@media (max-width: 520px) { .nx-logo__txt { display: none; } }

/* search */
.nx-find { position: relative; flex: 1 1 auto; min-width: 0; max-width: 540px; margin: 0 auto; }
.nx-find form {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 6px 0 13px;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-pill);
  transition: border-color .2s var(--nx-ease), box-shadow .2s var(--nx-ease);
}
.nx-find form:focus-within { border-color: var(--nx-cyan); box-shadow: var(--nx-glow); }
.nx-find svg { flex: 0 0 auto; color: var(--nx-muted); }
.nx-find input {
  flex: 1 1 auto; min-width: 0; border: 0; background: none; outline: none;
  font-size: 14px; font-weight: 500; color: var(--nx-text);
}
.nx-find input::placeholder { color: var(--nx-muted); }
.nx-find__go {
  flex: 0 0 auto; height: 30px; padding: 0 15px; border-radius: var(--nx-pill);
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-cyan-2));
  color: #04121a; font-size: 12.5px; font-weight: 800;
  transition: filter .18s var(--nx-ease), transform .18s var(--nx-ease);
}
.nx-find__go:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Phone: search apni poori line leti hai, warna sab kuch nichoR jata hai */
@media (max-width: 700px) {
  .nx-top__bar { flex-wrap: wrap; height: auto; padding: 9px 14px; gap: 10px; row-gap: 9px; }
  .nx-find { order: 3; flex: 1 0 100%; max-width: none; margin: 0; }
  .nx-find form { height: 38px; }
  .nx-find__go { padding: 0 12px; }
  .nx-acts { margin-left: auto; }
}
@media (max-width: 380px) {
  .nx-find__go { width: 30px; padding: 0; overflow: hidden; text-indent: -99px; }
}

.nx-suggest {
  position: absolute; top: calc(100% + 9px); left: 0; right: 0; z-index: 90;
  background: var(--nx-surface); border: 1px solid var(--nx-line);
  border-radius: var(--nx-r-lg); box-shadow: var(--nx-sh-lg);
  padding: 7px; max-height: 62vh; overflow-y: auto; display: none;
}
.nx-suggest.is-open { display: block; }
.nx-suggest a {
  display: flex; align-items: center; gap: 11px; padding: 7px 9px;
  border-radius: var(--nx-r-sm); transition: background .15s var(--nx-ease);
}
.nx-suggest a:hover, .nx-suggest a.is-on { background: var(--nx-surface-2); }
.nx-suggest img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--nx-bg-2); flex: 0 0 auto; }
.nx-suggest .t { font-weight: 600; font-size: 13.5px; line-height: 1.3; }
.nx-suggest .c { font-size: 11.5px; color: var(--nx-muted); }
.nx-suggest__none { padding: 18px; text-align: center; color: var(--nx-muted); font-size: 14px; }

.nx-acts { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }

.nx-ico {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 11px; color: var(--nx-text-2);
  transition: background .18s var(--nx-ease), color .18s var(--nx-ease);
}
.nx-ico:hover { background: var(--nx-surface-2); color: var(--nx-cyan); }

.nx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px; border-radius: var(--nx-pill);
  font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: all .18s var(--nx-ease);
}
.nx-btn--go {
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-cyan-2));
  color: #04121a; box-shadow: 0 6px 20px rgba(34, 211, 238, .28);
}
.nx-btn--go:hover { filter: brightness(1.12); transform: translateY(-2px); }
.nx-btn--line { border: 1px solid var(--nx-line-2); color: var(--nx-text); background: var(--nx-surface); }
.nx-btn--line:hover { border-color: var(--nx-cyan); color: var(--nx-cyan); }
.nx-btn--lg { height: 46px; padding: 0 26px; font-size: 15px; }
.nx-btn--full { width: 100%; }

.nx-burger { display: grid; }
@media (min-width: 1000px) { .nx-burger { display: none; } }

/* category strip */
.nx-strip { border-top: 1px solid var(--nx-line); background: rgba(14, 19, 34, .6); }
.nx-strip__in {
  max-width: var(--nx-max); margin: 0 auto; padding: 0 18px;
  display: flex; gap: 4px; height: 46px; align-items: center;
}
.nx-strip a {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--nx-pill);
  font-size: 13.5px; font-weight: 600; color: var(--nx-text-2); white-space: nowrap;
  transition: all .16s var(--nx-ease);
}
.nx-strip a:hover { background: var(--nx-surface-2); color: var(--nx-text); }
.nx-strip a.is-on { background: rgba(34, 211, 238, .14); color: var(--nx-cyan); }
@media (max-width: 999px) { .nx-strip { display: none; } }

/* drawer */
.nx-drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; }
.nx-drawer.is-open { visibility: visible; pointer-events: auto; }
.nx-drawer__veil {
  position: absolute; inset: 0; background: rgba(2, 5, 12, .7);
  opacity: 0; transition: opacity .28s var(--nx-ease);
}
.nx-drawer.is-open .nx-drawer__veil { opacity: 1; }
.nx-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 88vw);
  background: var(--nx-bg-2); border-right: 1px solid var(--nx-line);
  transform: translateX(-102%); transition: transform .3s var(--nx-ease);
  display: flex; flex-direction: column;
}
.nx-drawer.is-open .nx-drawer__panel { transform: none; }
.nx-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--nx-line);
}
.nx-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 16px; }
.nx-dlist { list-style: none; }
.nx-dlist a {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  border-radius: var(--nx-r); font-size: 14.5px; font-weight: 600; color: var(--nx-text-2);
}
.nx-dlist a:hover, .nx-dlist a.is-on { background: var(--nx-surface); color: var(--nx-cyan); }
.nx-dhead {
  font-size: 10.5px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  color: var(--nx-muted); padding: 0 12px; margin: 20px 0 8px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.nx-hero {
  position: relative; overflow: hidden;
  border-radius: var(--nx-r-xl);
  border: 1px solid var(--nx-line);
  background:
    radial-gradient(760px 320px at 8% 0%, rgba(34, 211, 238, .22), transparent 60%),
    radial-gradient(640px 300px at 92% 100%, rgba(244, 114, 182, .18), transparent 58%),
    linear-gradient(150deg, #131a2e, #0f1422);
  padding: clamp(24px, 4.2vw, 46px);
  margin: 20px 0 6px;
}
.nx-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.nx-hero__in { position: relative; z-index: 1; max-width: 700px; }
.nx-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--nx-cyan); background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .3);
  padding: 5px 13px; border-radius: var(--nx-pill); margin-bottom: 15px;
}
.nx-hero h1 {
  font-size: clamp(26px, 4.6vw, 44px); font-weight: 800; letter-spacing: -.04em;
  margin-bottom: 12px; text-wrap: balance;
}
.nx-hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--nx-cyan), var(--nx-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-hero p { font-size: clamp(14.5px, 1.55vw, 17px); color: var(--nx-text-2); max-width: 60ch; margin-bottom: 22px; }
.nx-hero__cta { display: flex; flex-wrap: wrap; gap: 11px; }
.nx-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--nx-line); }
.nx-stat b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--nx-cyan); }
.nx-stat span { font-size: 12.5px; color: var(--nx-muted); font-weight: 600; }

/* ==========================================================================
   Section headings + shelves
   ========================================================================== */

.nx-sec { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 15px; }
.nx-sec h2 { font-size: clamp(17px, 2.1vw, 22px); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.nx-sec h2::before {
  content: ""; width: 3px; height: 20px; border-radius: 99px; flex: 0 0 auto;
  background: linear-gradient(180deg, var(--nx-cyan), var(--nx-pink));
}
.nx-sec a {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--nx-cyan); white-space: nowrap;
  transition: gap .18s var(--nx-ease);
}
.nx-sec a:hover { gap: 9px; }

/* ==========================================================================
   Game grid + cards
   ========================================================================== */

.nx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(146px, 1fr));
  grid-auto-rows: 1fr; grid-auto-flow: dense;
  gap: 14px;
}
@media (min-width: 700px) { .nx-grid { grid-template-columns: repeat(auto-fill, minmax(162px, 1fr)); gap: 16px; } }
@media (min-width: 1300px) { .nx-grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; } }

.nx-shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 14px; padding-bottom: 6px; }
@media (min-width: 900px) { .nx-shelf { grid-auto-columns: minmax(172px, 1fr); } }

.nx-card {
  position: relative; border-radius: var(--nx-r-lg); overflow: hidden;
  background: var(--nx-surface); border: 1px solid var(--nx-line);
  transition: transform .25s var(--nx-ease), border-color .25s var(--nx-ease), box-shadow .25s var(--nx-ease);
  contain: content;
}
.nx-card:hover, .nx-card:focus-within {
  transform: translateY(-5px); border-color: rgba(34, 211, 238, .45);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .45), 0 0 0 1px rgba(34, 211, 238, .2);
}
.nx-card--wide, .nx-card--big { grid-column: span 2; grid-row: span 2; }
.nx-card__a { display: flex; flex-direction: column; height: 100%; }
.nx-card__pic {
  position: relative; display: block; flex: 1 1 auto; aspect-ratio: 1;
  overflow: hidden; background: linear-gradient(135deg, #182140, #10162a);
}
.nx-card--wide .nx-card__pic, .nx-card--big .nx-card__pic { aspect-ratio: auto; }
.nx-card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--nx-ease); }
.nx-card:hover .nx-card__pic img { transform: scale(1.07); }
.nx-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(4, 8, 18, 0) 42%, rgba(4, 8, 18, .72));
  opacity: 0; transition: opacity .25s var(--nx-ease);
}
.nx-card__play::after {
  content: ""; position: absolute; width: 50px; height: 50px; border-radius: 50%;
  background: var(--nx-cyan); box-shadow: 0 6px 22px rgba(34, 211, 238, .5);
  transform: scale(.72); transition: transform .25s var(--nx-ease);
}
.nx-card__play svg { position: relative; z-index: 1; color: #04121a; margin-left: 3px; transform: scale(.72); transition: transform .25s var(--nx-ease); }
.nx-card:hover .nx-card__play { opacity: 1; }
.nx-card:hover .nx-card__play::after, .nx-card:hover .nx-card__play svg { transform: scale(1); }
.nx-card__txt { flex: 0 0 auto; padding: 9px 11px 11px; }
.nx-card__ttl {
  display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical;
  overflow: hidden; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em;
}
.nx-card__sub { display: block; font-size: 11.5px; color: var(--nx-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-card--wide .nx-card__ttl, .nx-card--big .nx-card__ttl { font-size: 15.5px; }

.nx-flag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 9.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--nx-pill); color: #04121a;
}
.nx-flag--hot { background: linear-gradient(135deg, var(--nx-pink), #fb7185); color: #2a0714; }
.nx-flag--new { background: linear-gradient(135deg, var(--nx-lime), #4ade80); }

.nx-empty {
  grid-column: 1 / -1; text-align: center; padding: 50px 22px;
  color: var(--nx-muted); background: var(--nx-surface);
  border: 1px dashed var(--nx-line-2); border-radius: var(--nx-r-lg);
}
.nx-empty a { color: var(--nx-cyan); font-weight: 700; }

/* ==========================================================================
   Category tiles
   ========================================================================== */

.nx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; }
.nx-cat {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 10; border-radius: var(--nx-r-lg);
  border: 1px solid var(--nx-line); background: var(--nx-surface);
  transition: transform .25s var(--nx-ease), border-color .25s var(--nx-ease);
}
.nx-cat:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .45); }
.nx-cat img { width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .5s var(--nx-ease), opacity .3s; }
.nx-cat:hover img { transform: scale(1.08); opacity: .72; }
.nx-cat__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 15, 26, .25) 25%, rgba(11, 15, 26, .92)); }
.nx-cat__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; }
.nx-cat__n { display: block; font-size: 15px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-cat__c { display: block; font-size: 11.5px; color: var(--nx-cyan); font-weight: 700; }

/* ==========================================================================
   Chips / tags
   ========================================================================== */

.nx-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-chips--row { flex-wrap: nowrap; padding-bottom: 8px; }
.nx-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  height: 33px; padding: 0 14px; border-radius: var(--nx-pill);
  background: var(--nx-surface); border: 1px solid var(--nx-line);
  font-size: 13px; font-weight: 600; color: var(--nx-text-2); white-space: nowrap;
  transition: all .17s var(--nx-ease);
}
.nx-chip:hover { border-color: var(--nx-cyan); color: var(--nx-cyan); transform: translateY(-2px); }
.nx-chip.is-on { background: rgba(34, 211, 238, .14); border-color: rgba(34, 211, 238, .45); color: var(--nx-cyan); }

/* ==========================================================================
   Game page
   ========================================================================== */

.nx-play { border-radius: var(--nx-r-xl); overflow: hidden; border: 1px solid var(--nx-line); background: var(--nx-surface); margin-top: 14px; }
.nx-stage {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  max-height: min(74vh, 720px); min-height: 320px;
  background: #05080f; overflow: hidden;
}
@media (max-width: 780px) { .nx-stage { aspect-ratio: 4 / 3; max-height: 62vh; min-height: 260px; } }
.nx-play.is-full .nx-stage { max-height: none; }
.nx-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.nx-cover {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background-size: cover; background-position: center; cursor: pointer;
}
.nx-cover::before { content: ""; position: absolute; inset: 0; background: rgba(6, 10, 20, .74); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
.nx-cover__in { position: relative; text-align: center; padding: 20px; }
.nx-cover__in img { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; margin: 0 auto 15px; box-shadow: 0 14px 36px rgba(0, 0, 0, .6); }
.nx-cover__in h2 { font-size: 20px; margin-bottom: 4px; }
.nx-cover__in p { color: var(--nx-muted); font-size: 13px; margin-bottom: 18px; }
.nx-go {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 30px;
  border-radius: var(--nx-pill); font-weight: 800; font-size: 16px; color: #04121a;
  background: linear-gradient(135deg, var(--nx-cyan), var(--nx-cyan-2));
  box-shadow: 0 10px 30px rgba(34, 211, 238, .4);
  transition: transform .2s var(--nx-ease), filter .2s var(--nx-ease);
}
.nx-go:hover { transform: scale(1.05); filter: brightness(1.1); }

.nx-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--nx-line); flex-wrap: wrap; }
.nx-bar__id { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 220px; }
.nx-bar__id img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: 0 0 auto; }
.nx-bar__t { font-size: 15.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.nx-bar__s { font-size: 12.5px; color: var(--nx-muted); font-weight: 600; }
.nx-bar__s a:hover { color: var(--nx-cyan); }
.nx-bar__acts { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 620px) {
  .nx-bar { gap: 10px; }
  .nx-bar__acts { margin-left: 0; width: 100%; justify-content: space-between; }
  .nx-act { padding: 0 11px; }
  .nx-act--fs { flex: 1 1 auto; }
  .nx-rate { order: 3; width: 100%; }
  .nx-rate__track { flex: 1 1 auto; width: auto; }
}

.nx-act {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 13px;
  border-radius: var(--nx-pill); background: var(--nx-surface-2);
  font-size: 13px; font-weight: 700; color: var(--nx-text-2);
  transition: all .17s var(--nx-ease);
}
.nx-act:hover { background: #212a45; color: var(--nx-cyan); }
.nx-act.is-on { background: rgba(34, 211, 238, .16); color: var(--nx-cyan); }
.nx-act--fs { background: linear-gradient(135deg, var(--nx-cyan), var(--nx-cyan-2)); color: #04121a; }
.nx-act--fs:hover { filter: brightness(1.1); color: #04121a; }

.nx-play.is-full {
  position: fixed; inset: 0; z-index: 500; border-radius: 0; margin: 0;
  display: flex; flex-direction: column; background: #05080f;
}
.nx-play.is-full .nx-stage { flex: 1 1 auto; aspect-ratio: auto; }

/* rating bar */
.nx-rate { display: flex; align-items: center; gap: 9px; }
.nx-rate__track { width: 78px; height: 6px; border-radius: 99px; background: var(--nx-surface-2); overflow: hidden; }
.nx-rate__fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--nx-lime), var(--nx-cyan)); }
.nx-rate__n { font-size: 12px; color: var(--nx-muted); font-weight: 700; }

/* ==========================================================================
   Panels + prose
   ========================================================================== */

.nx-panel { background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-r-lg); padding: 22px; }
.nx-panel + .nx-panel { margin-top: 16px; }
.nx-panel h2 { font-size: 19px; margin-bottom: 12px; }

.nx-prose { color: var(--nx-text-2); font-size: 15px; line-height: 1.74; }
.nx-prose > *:first-child { margin-top: 0; }
.nx-prose h2 { font-size: 20px; color: var(--nx-text); margin: 26px 0 10px; }
.nx-prose h3 { font-size: 16.5px; color: var(--nx-text); margin: 22px 0 8px; }
.nx-prose h4 { font-size: 15px; color: var(--nx-text); margin: 18px 0 6px; }
.nx-prose p { margin: 0 0 14px; }
.nx-prose ul, .nx-prose ol { margin: 0 0 16px; padding-left: 22px; }
.nx-prose ul { list-style: disc; }
.nx-prose ol { list-style: decimal; }
.nx-prose li { margin-bottom: 7px; }
.nx-prose a { color: var(--nx-cyan); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.nx-prose a:hover { color: #67e8f9; }
.nx-prose strong { color: var(--nx-text); font-weight: 700; }
.nx-prose blockquote { border-left: 3px solid var(--nx-cyan); padding: 4px 0 4px 16px; margin: 0 0 16px; color: var(--nx-muted); font-style: italic; }
.nx-prose table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14px; }
.nx-prose th, .nx-prose td { border: 1px solid var(--nx-line); padding: 9px 12px; text-align: left; }
.nx-prose th { background: var(--nx-surface-2); font-weight: 700; color: var(--nx-text); }
.nx-prose img { border-radius: var(--nx-r); margin: 8px 0 16px; }
.nx-prose kbd {
  background: var(--nx-surface-2); border: 1px solid var(--nx-line-2); border-bottom-width: 2px;
  border-radius: 5px; padding: 1px 6px; font-size: 12.5px; font-family: ui-monospace, monospace; color: var(--nx-text);
}

.nx-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 11px; margin-top: 6px; }
.nx-fact { background: var(--nx-bg-2); border: 1px solid var(--nx-line); border-radius: var(--nx-r); padding: 11px 13px; }
.nx-fact dt { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-muted); }
.nx-fact dd { margin: 3px 0 0; font-size: 14.5px; font-weight: 700; color: var(--nx-text); }
.nx-fact dd a:hover { color: var(--nx-cyan); }

/* ==========================================================================
   Breadcrumbs, page head, pager
   ========================================================================== */

.nx-crumbs { margin: 16px 0 4px; }
.nx-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; list-style: none; font-size: 12.5px; color: var(--nx-muted); }
.nx-crumbs li { display: flex; align-items: center; gap: 6px; }
.nx-crumbs li + li::before {
  content: ""; width: 5px; height: 5px;
  border-right: 1.5px solid var(--nx-muted); border-top: 1.5px solid var(--nx-muted); transform: rotate(45deg);
}
.nx-crumbs a { font-weight: 600; }
.nx-crumbs a:hover { color: var(--nx-cyan); }
.nx-crumbs [aria-current] span { color: var(--nx-text); font-weight: 700; }

.nx-head { margin: 10px 0 6px; }
.nx-head h1 { font-size: clamp(23px, 3.4vw, 33px); font-weight: 800; letter-spacing: -.035em; text-wrap: balance; }
.nx-head p { margin-top: 8px; color: var(--nx-muted); font-size: 15px; max-width: 78ch; }
.nx-intro { margin-top: 8px; max-width: 82ch; font-size: 14.5px; color: var(--nx-muted); }
.nx-intro p:last-child { margin-bottom: 0; }

.nx-pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin: 32px 0 8px; }
.nx-pager a, .nx-pager span {
  display: inline-grid; place-items: center; min-width: 39px; height: 39px; padding: 0 14px;
  border-radius: 11px; background: var(--nx-surface); border: 1px solid var(--nx-line);
  font-size: 14px; font-weight: 700; color: var(--nx-text-2); transition: all .17s var(--nx-ease);
}
.nx-pager a:hover { border-color: var(--nx-cyan); color: var(--nx-cyan); }
.nx-pager .is-on { background: linear-gradient(135deg, var(--nx-cyan), var(--nx-cyan-2)); border-color: transparent; color: #04121a; }

/* ==========================================================================
   Ads
   ========================================================================== */

.nx-ad { display: block; margin: 22px auto; text-align: center; max-width: 100%; overflow: hidden; }
.nx-ad__tag { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--nx-faint); margin-bottom: 6px; }
.nx-ad__body { display: flex; justify-content: center; }

/* ==========================================================================
   Forms
   ========================================================================== */

.nx-field { margin-bottom: 15px; }
.nx-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--nx-text-2); margin-bottom: 6px; }
.nx-in, .nx-ta, .nx-sel {
  width: 100%; background: var(--nx-bg-2); border: 1px solid var(--nx-line);
  border-radius: var(--nx-r); padding: 11px 14px; font-size: 14.5px; color: var(--nx-text); outline: none;
  transition: border-color .18s var(--nx-ease), box-shadow .18s var(--nx-ease);
}
.nx-ta { min-height: 130px; resize: vertical; }
.nx-in:focus, .nx-ta:focus, .nx-sel:focus { border-color: var(--nx-cyan); box-shadow: var(--nx-glow); }

.nx-note { border-radius: var(--nx-r); padding: 12px 16px; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.nx-note--ok { background: rgba(163, 230, 53, .12); border: 1px solid rgba(163, 230, 53, .3); color: #bef264; }
.nx-note--err { background: rgba(251, 113, 133, .12); border: 1px solid rgba(251, 113, 133, .3); color: #fda4af; }

/* ==========================================================================
   Modal + toast
   ========================================================================== */

.nx-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; visibility: hidden; opacity: 0; transition: opacity .24s var(--nx-ease), visibility .24s; }
.nx-modal.is-open { visibility: visible; opacity: 1; }
.nx-modal__veil { position: absolute; inset: 0; background: rgba(2, 5, 12, .72); }
.nx-modal__box {
  position: relative; width: min(460px, 100%); background: var(--nx-surface);
  border: 1px solid var(--nx-line); border-radius: var(--nx-r-lg); padding: 22px;
  box-shadow: var(--nx-sh-lg); transform: translateY(14px) scale(.98); transition: transform .28s var(--nx-ease);
}
.nx-modal.is-open .nx-modal__box { transform: none; }
.nx-modal h3 { font-size: 18px; margin-bottom: 4px; }
.nx-modal p { color: var(--nx-muted); font-size: 14px; }
.nx-modal__acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }

.nx-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 150%); z-index: 400;
  background: var(--nx-surface); border: 1px solid var(--nx-line-2); color: var(--nx-text);
  padding: 12px 22px; border-radius: var(--nx-pill); font-size: 14px; font-weight: 600;
  box-shadow: var(--nx-sh-lg); transition: transform .34s var(--nx-ease);
}
.nx-toast.is-on { transform: translate(-50%, 0); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.nx-faq { border-top: 1px solid var(--nx-line); }
.nx-faq details { border-bottom: 1px solid var(--nx-line); }
.nx-faq summary { list-style: none; cursor: pointer; padding: 15px 34px 15px 0; font-size: 15px; font-weight: 700; position: relative; }
.nx-faq summary::-webkit-details-marker { display: none; }
.nx-faq summary::after {
  content: ""; position: absolute; right: 6px; top: 22px; width: 8px; height: 8px;
  border-right: 2px solid var(--nx-muted); border-bottom: 2px solid var(--nx-muted);
  transform: rotate(45deg); transition: transform .22s var(--nx-ease);
}
.nx-faq details[open] summary { color: var(--nx-cyan); }
.nx-faq details[open] summary::after { transform: rotate(-135deg); border-color: var(--nx-cyan); }
.nx-faq__a { padding: 0 0 17px; color: var(--nx-text-2); font-size: 14.5px; line-height: 1.7; }

/* ==========================================================================
   Footer
   ========================================================================== */

.nx-foot { border-top: 1px solid var(--nx-line); background: var(--nx-bg-2); margin-top: 46px; padding: 42px 0 0; }
.nx-foot__grid { max-width: var(--nx-max); margin: 0 auto; padding: 0 18px; display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .nx-foot__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; } }
.nx-foot__brand p { color: var(--nx-muted); font-size: 14px; margin-top: 12px; max-width: 42ch; }
.nx-foot h3 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--nx-muted); margin-bottom: 12px; }
.nx-foot ul { list-style: none; }
.nx-foot li { margin-bottom: 8px; }
.nx-foot li a { font-size: 14px; color: var(--nx-text-2); font-weight: 500; }
.nx-foot li a:hover { color: var(--nx-cyan); }
.nx-foot__about { max-width: var(--nx-max); margin: 32px auto 0; padding: 26px 18px 0; border-top: 1px solid var(--nx-line); }
.nx-foot__about .nx-prose { font-size: 14px; color: var(--nx-muted); }
.nx-foot__about .nx-prose h3 { font-size: 15px; color: var(--nx-text-2); margin: 18px 0 7px; }
.nx-foot__bar { border-top: 1px solid var(--nx-line); margin-top: 26px; }
.nx-foot__barin { max-width: var(--nx-max); margin: 0 auto; padding: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 13px; color: var(--nx-muted); }

/* ==========================================================================
   Mobile tab bar + back to top
   ========================================================================== */

.nx-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex;
  background: rgba(11, 15, 26, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--nx-line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
@media (min-width: 1000px) { .nx-tabs { display: none; } }
body { padding-bottom: 64px; }
@media (min-width: 1000px) { body { padding-bottom: 0; } }
.nx-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 11px; font-size: 10px; font-weight: 700; color: var(--nx-muted); }
.nx-tab.is-on { color: var(--nx-cyan); }

.nx-top-btn {
  position: fixed; right: 18px; bottom: 78px; z-index: 80; width: 42px; height: 42px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--nx-surface); border: 1px solid var(--nx-line-2); color: var(--nx-cyan);
  box-shadow: var(--nx-sh); opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: all .26s var(--nx-ease);
}
.nx-top-btn.is-on { opacity: 1; pointer-events: auto; transform: none; }
@media (min-width: 1000px) { .nx-top-btn { bottom: 24px; } }

/* ==========================================================================
   404 + misc
   ========================================================================== */

.nx-404 { text-align: center; padding: 56px 20px 28px; }
.nx-404__n {
  font-size: clamp(74px, 15vw, 140px); font-weight: 900; letter-spacing: -.06em; line-height: 1;
  background: linear-gradient(120deg, var(--nx-cyan), var(--nx-pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nx-404 h1 { font-size: clamp(20px, 3vw, 27px); margin: 8px 0 10px; }
.nx-404 p { color: var(--nx-muted); max-width: 52ch; margin: 0 auto 24px; }

img.is-fallback { object-fit: contain !important; background: #121a30; opacity: .5; padding: 14%; }

.nx-reveal { opacity: 0; transform: translateY(14px); }
.nx-reveal.is-in { opacity: 1; transform: none; transition: opacity .5s var(--nx-ease), transform .5s var(--nx-ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .nx-reveal { opacity: 1; transform: none; }
}

@media print {
  .nx-top, .nx-strip, .nx-tabs, .nx-ad, .nx-top-btn { display: none !important; }
  body { background: #fff; color: #000; }
}
