@font-face { font-family: "Bebas Neue"; src: url("/assets/fonts/bebas-neue.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
:root { --bg: #080a10; --surface: #11141c; --surface-2: #1a1e29; --line: #262b38; --text: #eef1f6; --muted: #8890a3; --accent: #2ee6c9; --accent-2: #7af5e2; --krit: #fc0053; --radius: 14px; }
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 "Inter", system-ui, sans-serif; }
body { display: flex; flex-direction: column; overflow: hidden; }
html, body { overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h3 { font: 20px/1.1 "Bebas Neue", sans-serif; letter-spacing: .04em; margin: 18px 0 8px; }
.nx-top { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: rgba(8, 10, 16, .9); }
.nx-brand { font: 30px/1 "Bebas Neue", sans-serif; letter-spacing: .08em; text-decoration: none; color: var(--accent); }
.nx-brand small { font: 600 11px/1 "Inter", sans-serif; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.nx-brand b { color: var(--krit); }
.nx-res { margin: 0 auto; display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.nx-res-n { font: 34px/1 "Bebas Neue", sans-serif; letter-spacing: .03em; }
.nx-res-l { color: var(--muted); font-weight: 600; }
.nx-rate { color: var(--accent); font-weight: 600; }
.nx-krit { color: var(--muted); font-weight: 600; font-size: 12px; text-decoration: none; }
.nx-krit:hover { color: var(--krit); }
.nx-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 400px; min-height: 0; overflow: hidden; }
.nx-main > * { min-width: 0; }
.nx-graph { position: relative; min-height: 0; background: radial-gradient(circle at 50% 50%, #10192a 0, var(--bg) 70%); }
.nx-graph canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.nx-graph canvas.is-hover { cursor: pointer; }
.nx-center { position: absolute; right: 12px; top: 12px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 600; }
.nx-legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: calc(100% - 24px); font-size: 11px; color: var(--muted); pointer-events: none; }
.nx-legend span { display: inline-flex; align-items: center; gap: 5px; }
.nx-legend i { font-style: normal; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; color: #0b0d12; font-size: 10px; font-weight: 600; }
.nx-side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.nx-hint { margin: 0; padding: 10px 12px; border-radius: 10px; background: rgba(46, 230, 201, .1); border: 1px solid rgba(46, 230, 201, .35); font-size: 13px; }
.nx-btn { border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 8px 14px; font-weight: 600; transition: background .15s, border-color .15s, opacity .15s; }
.nx-btn:hover:not(:disabled) { border-color: var(--accent); }
.nx-btn:disabled { opacity: .45; cursor: not-allowed; }
.nx-btn.is-on { border-color: var(--accent); color: var(--accent); }
.nx-sm { padding: 6px 12px; font-size: 13px; }
.nx-go { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; background: var(--accent); color: #04211c; border: 0; font: 24px/1 "Bebas Neue", sans-serif; letter-spacing: .05em; }
.nx-go small { font: 600 12px/1.2 "Inter", sans-serif; letter-spacing: 0; opacity: .8; }
.nx-go:hover:not(:disabled) { background: var(--accent-2); }
.nx-go.is-ready { animation: nx-pulse 1.6s ease-in-out infinite; }
@keyframes nx-pulse { 50% { box-shadow: 0 0 0 6px rgba(46, 230, 201, .18); } }
.nx-offer { display: grid; gap: 8px; }
.nx-card { display: grid; grid-template-columns: 64px 1fr; gap: 10px; text-align: left; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .15s, transform .15s; }
.nx-card:hover, .nx-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.nx-card .nx-thumb { width: 64px; height: 64px; }
.nx-thumb { border-radius: 10px; object-fit: cover; background: var(--bg); display: grid; place-items: center; font-size: 26px; color: #0b0d12; }
.nx-card b { display: block; font-size: 15px; line-height: 1.25; }
.nx-card p { margin: 2px 0 0; font-size: 12px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nx-why { display: block; margin-top: 4px; font-size: 12px; color: var(--accent); }
.nx-role { display: inline-block; font: 600 10px/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; margin-bottom: 4px; background: var(--bg); color: var(--muted); }
.nx-role.is-link { color: #6aa8ff; }
.nx-role.is-bridge { color: #f2a541; }
.nx-role.is-horizon { color: #b38cff; }
.nx-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.nx-tab { flex: 1; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 4px; color: var(--muted); font-weight: 600; font-size: 13px; }
.nx-tab.is-on { color: var(--text); border-bottom-color: var(--accent); }
.nx-pane { display: flex; flex-direction: column; gap: 8px; }
.nx-pane[hidden] { display: none; }
.nx-fac { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.nx-fac header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nx-fac b { font-size: 15px; }
.nx-fac p { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.nx-fac .nx-now { color: var(--text); }
.nx-fac.is-locked { opacity: .55; }
.nx-fac .nx-btn { width: 100%; display: flex; justify-content: space-between; }
.nx-lvl { font-size: 12px; color: var(--accent); font-weight: 600; }
.nx-muted { margin: 0; color: var(--muted); font-size: 12px; }
.nx-in { background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 0; }
.nx-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.nx-row { display: flex; gap: 6px; flex-wrap: wrap; }
.nx-row .nx-in { flex: 1; }
.nx-check { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.nx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nx-list button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; border: 0; background: none; text-align: left; }
.nx-list button:hover { background: var(--surface-2); }
.nx-list .nx-dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #0b0d12; font-size: 12px; }
.nx-list span.t { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-list small { color: var(--muted); font-size: 11px; }
.nx-list .is-off .t { color: var(--muted); }
.nx-stat { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.nx-stat span { color: var(--muted); }
.nx-stat b { font-variant-numeric: tabular-nums; }
.nx-bar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; }
.nx-bar i { display: block; height: 100%; }
.nx-reset { padding: 12px; border-radius: 12px; border: 1px dashed #5b4d8a; background: rgba(120, 90, 220, .08); }
.nx-reset p { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.nx-ov { position: fixed; inset: 0; z-index: 50; background: rgba(4, 6, 10, .72); display: grid; place-items: center; padding: 16px; }
.nx-modal { width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.nx-modal h2 { font: 32px/1 "Bebas Neue", sans-serif; letter-spacing: .03em; margin: 0 40px 6px 0; }
.nx-x { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-size: 18px; line-height: 1; }
.nx-fiche-img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.nx-credit { font-size: 11px; color: var(--muted); margin: 4px 0 10px; overflow-wrap: anywhere; }
.nx-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 8px 3px 3px; border-radius: 99px; background: var(--surface-2); }
.nx-chip i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b0d12; font-size: 11px; }
.nx-rel { display: block; width: 100%; text-align: left; border: 0; background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-top: 4px; font-size: 13px; }
.nx-rel em { color: var(--accent); font-style: normal; }
.nx-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.nx-primary { background: var(--accent); color: #04211c; border-color: var(--accent); }
.nx-toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.nx-toast { background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); padding: 8px 14px; border-radius: 10px; font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: nx-in .25s ease-out; }
@keyframes nx-in { from { opacity: 0; transform: translateY(8px); } }
.reduce-motion *, .reduce-motion *::before { animation: none !important; transition: none !important; }
@media (max-width: 860px) {
  body { overflow: auto; height: auto; }
  .nx-main { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .nx-graph { height: 52vh; }
  .nx-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
  .nx-top { padding: 8px 12px; gap: 10px; }
  .nx-brand small, .nx-krit, .nx-legend { display: none; }
  .nx-res-n { font-size: 28px; }
}
.nx-help { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font-weight: 600; }
.nx-help:hover { border-color: var(--accent); color: var(--accent); }
.nx-goal { padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(46, 230, 201, .12), rgba(46, 230, 201, .03)); border: 1px solid rgba(46, 230, 201, .35); }
.nx-goal small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.nx-goal p { margin: 4px 0 8px; font-weight: 600; }
.nx-goal .nx-bar { height: 8px; }
.nx-goal .nx-bar i { background: var(--accent); transition: width .3s; }
.nx-goal .nx-btn { width: 100%; margin-top: 8px; }
.nx-goal.is-done { animation: nx-pulse 1.6s ease-in-out infinite; }
.nx-gain { float: right; font: 600 12px/1 "Inter", sans-serif; color: var(--accent); background: rgba(46, 230, 201, .12); padding: 4px 6px; border-radius: 5px; }
.nx-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.nx-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.nx-dots i.is-on { background: var(--accent); }
.nx-tuto p { font-size: 15px; }
.nx-gatebody { overflow: auto; }
.nx-gate { margin: auto; width: min(440px, calc(100% - 32px)); padding: 32px 24px; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.nx-gate h1 { font-size: 56px; margin: 0; }
.nx-gate p { color: var(--muted); margin: 0; }
.nx-gate .nx-go { text-decoration: none; }
.nx-danger { border-color: #7a2a3a; color: #ff8fa3; }
.nx-danger:hover:not(:disabled) { border-color: #ff5c7a; background: rgba(255, 92, 122, .1); }
[data-theme="aurore"] { --bg: #0d0814; --surface: #171021; --surface-2: #21172f; --line: #33264a; --text: #f4eefb; --muted: #9c8db3; --accent: #c084fc; --accent-2: #e0b4ff; }
[data-theme="ambre"] { --bg: #100b06; --surface: #1a130c; --surface-2: #261c12; --line: #3a2b1b; --text: #fbf3e9; --muted: #ab977e; --accent: #f5a524; --accent-2: #ffc766; }
[data-theme="glace"] { --bg: #070d14; --surface: #0e1722; --surface-2: #15212f; --line: #223246; --text: #eef6ff; --muted: #8aa0b8; --accent: #5cc8ff; --accent-2: #9fdfff; }
[data-theme="papier"] { --bg: #f4f1ea; --surface: #fbf9f4; --surface-2: #ede8dd; --line: #d8d0c0; --text: #22201c; --muted: #6d665a; --accent: #0f8f7a; --accent-2: #12a68d; }
[data-theme="papier"] .nx-graph { background: radial-gradient(circle at 50% 50%, #fffdf8 0, var(--bg) 70%); }
[data-theme="papier"] .nx-top { background: rgba(244, 241, 234, .92); }
[data-theme="papier"] .nx-go, [data-theme="papier"] .nx-primary { color: #fff; }
.nx-go, .nx-primary { color: color-mix(in srgb, var(--accent) 15%, #000); }
.nx-graph { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 8%, var(--bg)) 0, var(--bg) 70%); }
.nx-go.is-run { background: linear-gradient(90deg, var(--accent) var(--p, 0%), color-mix(in srgb, var(--accent) 35%, var(--surface-2)) var(--p, 0%)); opacity: 1; cursor: progress; }
.nx-cdom { display: block; font-size: 11px; font-weight: 600; margin-top: 1px; }
.nx-collw { color: var(--accent-2); }
.nx-fx, .nx-coll { padding: 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.nx-fx .nx-stat span { display: inline-flex; align-items: center; gap: 6px; }
.nx-fxi { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b0d12; font-size: 11px; }
.nx-coll header { display: flex; justify-content: space-between; gap: 8px; }
.nx-coll .nx-bar { margin: 6px 0 8px; }
.nx-coll.is-done { border-color: var(--accent); }
.nx-cm { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nx-cm button, .nx-cm span { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--bg); border-radius: 99px; padding: 3px 9px 3px 3px; font-size: 12px; }
.nx-cm i { font-style: normal; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #0b0d12; font-size: 10px; border: 1.5px solid transparent; }
.nx-cm .is-miss span { color: var(--muted); }
.nx-cm .is-miss i { background: transparent; }
.nx-coll .nx-btn { width: 100%; margin-top: 8px; }
.nx-tab { font-size: 12px; }
.nx-vipb { padding: 5px 12px; border-radius: 99px; border: 1px solid #c9a227; background: rgba(240, 178, 63, .12); color: #f0b23f; font: 18px/1 "Bebas Neue", sans-serif; letter-spacing: .06em; }
.nx-vipb:hover { background: rgba(240, 178, 63, .25); }
.nx-gold { background: #f0b23f; border-color: #f0b23f; color: #2a1c00; text-decoration: none; }
.nx-vipon { color: #f0b23f; font-weight: 600; }
.nx-perks { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.nx-perks li { padding: 8px 12px 8px 34px; border-radius: 10px; background: var(--surface-2); position: relative; }
.nx-perks li::before { content: "✓"; position: absolute; left: 12px; color: #f0b23f; font-weight: 600; }
.nx-cdom span { color: var(--muted); font-weight: 400; }
.nx-brand { display: flex; align-items: center; }
.nx-logo { display: block; width: 92px; height: auto; }
.nx-logo-xl { width: min(300px, 70vw); }
[data-theme="papier"] .nx-logo { filter: drop-shadow(0 0 1px #22201c) drop-shadow(0 0 1px #22201c); }
