/* ==========================================================================
   VIPerClub 2077 skin (v1). Loaded after cyber-styles.css / vault.css on every
   web page except Big Screen (/bigscreen, /tv) and ViperOS (/firetv*).
   Night-city navy, yellow + cyan + hot red accents, skewed shapes, film grain.
   CSS + inline SVG only; no images, no web icons added.
   ========================================================================== */
:root {
  --v77-bg: #05070c;
  --v77-bg-2: #0a1626;
  --v77-panel: rgba(9, 19, 34, .86);
  --v77-line: rgba(75, 99, 133, .55);
  --v77-muted: #4b6385;
  --v77-text: #c9d6ea;
  --v77-yellow: #fcee0a;
  --v77-blue: #08dfec;
  --v77-red: #ff005f;
  --v77-skew: -12deg;
  --v77-head: 'Archivo', 'Orbitron', system-ui, sans-serif;
  --v77-mono: 'JetBrains Mono', 'Share Tech Mono', ui-monospace, monospace;
  --cyber-yellow: #fcee0a;
  --cyber-cyan: #08dfec;
  --cyber-red: #ff005f;
  --bg-dark: #05070c;
}
html { background-color: var(--v77-bg) !important; }
/* the page wash and the film grain share one fixed layer that is painted once. A fixed body background repainted the
   whole viewport on every scroll frame, and a full-screen mix-blend overlay on top of the page was re-blended on every
   composited frame (the single biggest GPU cost on every page). */
html::before {
  content: ""; position: fixed; inset: 0; z-index: -2147483647; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .4 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 0, 95, .13), transparent 60%),
    radial-gradient(900px 520px at 5% 10%, rgba(8, 223, 236, .10), transparent 60%),
    linear-gradient(180deg, #071223 0%, var(--v77-bg) 42%, #040910 100%);
  background-blend-mode: overlay, normal, normal, normal;
}
@media (max-width: 1250px) {
  html::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 0, 95, .13), transparent 60%),
    radial-gradient(900px 520px at 5% 10%, rgba(8, 223, 236, .10), transparent 60%),
    linear-gradient(180deg, #071223 0%, var(--v77-bg) 42%, #040910 100%); }
}
/* touch browsers drew the old fixed body wash as a normal scrolling background spread over the whole page
   (mobile Chrome / iOS Safari do not pin it), so phones keep that look: the same layer, page-tall, scrolling */
@media (hover: none) and (pointer: coarse) {
  html { position: relative; }
  html::before { position: absolute; }
}
/* Member pages (no ICE field): pin the navy wash so long pages keep the same
   top teal glow on phones too. Admin / 404 / renew / lock are unchanged. */
html:not(.has-ice-bg)::before { position: fixed !important; }

/* Gentle, low-cost glow drift on the navy wash. Transform and opacity only;
   no scanlines. Off on ICE pages and under prefers-reduced-motion. */
html:not(.has-ice-bg)::after {
  content: "";
  position: fixed;
  inset: -18% -12%;
  z-index: -2147483646;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% -5%, rgba(8, 223, 236, .18), transparent 62%),
    radial-gradient(55% 45% at 18% 8%, rgba(8, 223, 236, .10), transparent 58%);
  opacity: .7;
  animation: v77-wash-glow 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes v77-wash-glow {
  from { transform: translate3d(-2.5%, 0, 0) scale(1); opacity: .45; }
  to   { transform: translate3d(3%, 1.5%, 0) scale(1.07); opacity: .9; }
}
@media (prefers-reduced-motion: reduce) {
  html:not(.has-ice-bg)::after { animation: none; transform: none; opacity: .65; will-change: auto; }
}
body {
  background: transparent !important;
  color: var(--v77-text);
}
/* the old perspective grid and scanlines give way to grain */
.bg-grid, .bg-grid-red, .bg-clip, .scanlines { display: none !important; }
.bg-radial { opacity: .35; }
/* the old top-of-page grain overlay: off by default; only the admin Blackwall skin still turns it on */
.v77-grain {
  display: none;
  position: fixed; inset: 0;
  pointer-events: none; z-index: 2147483000; opacity: .5; mix-blend-mode: overlay; contain: strict;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (max-width: 1250px) { .v77-grain { opacity: .25; } }
@keyframes v77-grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); }
}

/* ---- type ---- */
h1, h2, h3, .brand-font {
  font-family: var(--v77-head) !important;
  font-style: italic; font-weight: 900 !important; letter-spacing: .01em !important;
  text-transform: uppercase;
}
h4, h5, h6 { font-family: var(--v77-head) !important; font-weight: 800; }
.mono-font, .cyber-hud-strip, code, kbd, .vault-label, .stat-label, .diag-label, .admin-kpi-label {
  font-family: var(--v77-mono) !important; letter-spacing: .14em;
}
.text-cybercyan { color: var(--v77-blue) !important; }
.text-cyberyellow { color: var(--v77-yellow) !important; }
.text-cyberred { color: var(--v77-red) !important; }
.bg-cyberyellow { background-color: var(--v77-yellow) !important; }
.bg-cybercyan { background-color: var(--v77-blue) !important; }
.bg-cyberred { background-color: var(--v77-red) !important; }
.border-cybercyan, .border-cybercyan\/30 { border-color: var(--v77-line) !important; }
.text-glow-cyan { text-shadow: none !important; color: var(--v77-blue) !important; animation: none !important; }
.text-glow-yellow { text-shadow: 3px 0 0 var(--v77-red) !important; color: var(--v77-yellow) !important; }
.vip-text { color: var(--v77-yellow) !important; text-shadow: 2px 0 0 var(--v77-red) !important; }

/* ---- nav: thin, dark, wide-tracked links like a game launcher ---- */
.nav-hud {
  background: #05070c !important;
  border-bottom: 1px solid var(--v77-line) !important; box-shadow: none !important;
}
.cyber-hud-strip { background: transparent !important; border-bottom: 1px solid rgba(75, 99, 133, .25) !important; color: var(--v77-muted) !important; font-size: 10px !important; }
.nav-hud a:not(.cyber-btn), .nav-tab, .nav-hud .nav-label-long, .nav-hud .nav-label-short {
  font-family: var(--v77-head) !important; font-style: normal; font-weight: 600 !important;
  letter-spacing: .18em !important; text-transform: uppercase;
}
.nav-tab {
  background: transparent !important; border: 1px solid transparent !important; color: #c9d6ea !important;
  box-shadow: none !important; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%) !important;
}
.nav-tab:hover, .nav-tab.active, .nav-tab[aria-current="page"] {
  border-color: var(--v77-line) !important; background: rgba(75, 99, 133, .18) !important; color: var(--v77-yellow) !important;
}
.nav-hud .text-3xl.brand-font, .nav-brand .brand-font { font-size: 1.9rem !important; letter-spacing: -.01em !important; }

/* ---- buttons: yellow slab with striped tail; secondary = red ---- */
.cyber-btn {
  --v77-btn: var(--v77-yellow);
  background: repeating-linear-gradient(115deg, transparent 0 7px, var(--v77-bg) 7px 11px) right 10px center / 34px 100% no-repeat, var(--v77-btn) !important;
  color: #05070c !important;
  font-family: var(--v77-head) !important; font-style: italic; font-weight: 900 !important;
  letter-spacing: .02em !important; text-transform: uppercase;
  border: 0 !important; border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%) !important;
  box-shadow: none !important; padding-right: 3.6rem !important;
  transition: transform .15s ease, filter .15s ease !important;
}
.cyber-btn:hover { transform: translateX(3px) !important; filter: brightness(1.08); box-shadow: none !important; }
.cyber-btn:active { transform: translateX(1px) scale(.99) !important; }
.cyber-btn:focus-visible { outline: 2px solid var(--v77-blue) !important; outline-offset: 3px; }
.cyber-btn.btn-danger, .btn-danger.cyber-btn, a[href="/logout"].cyber-btn, #logoutBtn.cyber-btn, .cyber-btn.bg-cyberred { --v77-btn: var(--v77-red); color: #fff !important; }
.cyber-btn.scan-anim-yellow::after { display: none !important; }
.cyber-btn:disabled, .cyber-btn[aria-disabled="true"] { filter: grayscale(.7) brightness(.7); }

/* icon buttons: open2077's slanted squares */
.icon-btn {
  background: rgba(75, 99, 133, .16) !important; border: 1px solid var(--v77-line) !important; color: var(--v77-yellow) !important;
  border-radius: 0 !important; box-shadow: none !important;
  clip-path: polygon(16% 0, 100% 0, 84% 100%, 0 100%) !important;
}
.icon-btn:hover { background: rgba(252, 238, 10, .12) !important; }

/* ---- panels ---- */
.cyber-card {
  background: linear-gradient(180deg, rgba(12, 24, 42, .9), var(--v77-panel)) !important;
  border: 1px solid var(--v77-line) !important;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9) !important;
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)) !important;
}
.cyber-card::before {
  border: 0 !important; opacity: 1 !important; clip-path: none !important;
  inset: 0 auto auto 0 !important; width: 64px !important; height: 3px !important;
  background: var(--v77-yellow) !important;
}
.cyber-card:hover { border-color: rgba(75, 99, 133, .85) !important; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9) !important; }
.hud-border { border-left-color: var(--v77-yellow) !important; }

/* inputs */
.cyber-input, .cyber-select {
  background: rgba(3, 8, 15, .75) !important; color: #eef4ff !important;
  border: 1px solid var(--v77-line) !important; border-radius: 0 !important;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%) !important;
  font-family: var(--v77-mono) !important;
}
.cyber-input:focus, .cyber-select:focus { border-color: var(--v77-blue) !important; box-shadow: 0 0 0 1px var(--v77-blue) inset !important; }

/* chips / pills / tabs */
.chip, .portal-chip, .req-tab, .member-filter-pill, .preset-pill-btn, .pref-pill, .audio-pill, .status-badge, .cyber-badge-pill, .cyber-spec-tag {
  border-radius: 0 !important;
  /* slanted via clip-path, not skew: the layout box (and tap target) stays exactly where it was */
  clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%);
  font-family: var(--v77-mono) !important; font-style: normal; letter-spacing: .12em;
  border-color: var(--v77-line) !important; box-shadow: none !important;
}
.chip.active, .portal-chip.active, .req-tab.active, .member-filter-pill.active, .pref-pill.active, .audio-pill.active {
  background: var(--v77-yellow) !important; color: #05070c !important; border-color: var(--v77-yellow) !important;
}
.cyber-badge-pill { background: rgba(5, 12, 22, .7) !important; color: var(--v77-blue) !important; border: 1px solid var(--v77-line) !important; }
.cyber-led { background: var(--v77-blue) !important; box-shadow: 0 0 8px var(--v77-blue) !important; }
.cyber-led-yellow { background: var(--v77-yellow) !important; box-shadow: 0 0 8px var(--v77-yellow) !important; }

/* glitch title (hover only, see reduced motion below) */
[data-glitch] { position: relative; }
[data-glitch]::before, [data-glitch]::after {
  content: attr(data-glitch); position: absolute; inset: 0; pointer-events: none; opacity: 0;
}
[data-glitch]::before { color: var(--v77-blue); transform: translate(-3px, 0); clip-path: inset(10% 0 55% 0); }
[data-glitch]::after { color: var(--v77-red); transform: translate(3px, 0); clip-path: inset(55% 0 8% 0); }
[data-glitch]:hover::before, [data-glitch]:hover::after, [data-glitch].v77-glitch-once::before, [data-glitch].v77-glitch-once::after { animation: v77-glitch .5s steps(2, end) 2; }
@keyframes v77-glitch {
  0% { opacity: .9; clip-path: inset(12% 0 60% 0); } 25% { clip-path: inset(62% 0 6% 0); transform: translate(4px, -1px); }
  50% { clip-path: inset(30% 0 40% 0); transform: translate(-4px, 1px); } 75% { clip-path: inset(80% 0 2% 0); } 100% { opacity: 0; }
}

/* ---- home hero: giant outlined backdrop word, big italic title, CTA slab ---- */
body.landing-page .cyber-hero-section { position: relative; isolation: isolate; }
body.landing-page .cyber-hero-section::before {
  content: "VIPERCLUB"; position: absolute; z-index: -1; left: 50%; top: 38%;
  transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font: italic 900 clamp(5rem, 19vw, 17rem)/0.8 var(--v77-head); letter-spacing: -.04em;
  color: rgba(255, 255, 255, .055); -webkit-text-stroke: 1px rgba(201, 214, 234, .14);
}
body.landing-page .cyber-reticle-ring, body.landing-page .cyber-reticle-corner { border-color: rgba(252, 238, 10, .55) !important; box-shadow: none !important; }
body.landing-page .cyber-hero-section h1 {
  font-size: clamp(3rem, 10vw, 8.5rem) !important; line-height: .9 !important; color: #fff !important;
  text-shadow: 4px 0 0 var(--v77-red), -4px 0 0 rgba(8, 223, 236, .7) !important; letter-spacing: -.02em !important;
}
body.landing-page .cyber-hero-section h1 + p, body.landing-page .cyber-hero-section .mono-font { color: var(--v77-muted) !important; }

/* status ribbons / alerts */
#publicAlert { font-family: var(--v77-head) !important; font-style: italic; }
footer { border-top: 1px solid var(--v77-line) !important; background: rgba(4, 9, 16, .9) !important; }

/* 404 / offline: centred slab */
body.v77-error h1.glitch-text { font-size: clamp(4rem, 14vw, 8rem) !important; color: var(--v77-yellow) !important; text-shadow: 5px 0 0 var(--v77-red) !important; }

/* phones: keep it calm and readable */
@media (max-width: 640px) {
  .cyber-btn { padding-right: 3rem !important; }
  .cyber-card { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)) !important; }
  body.landing-page .cyber-hero-section::before { top: 30%; }
}

/* motion off: no grain jitter, no glitch, no slide */
@media (prefers-reduced-motion: reduce) {
  .v77-grain { animation: none !important; }
  [data-glitch]::before, [data-glitch]::after { display: none !important; animation: none !important; }
  .cyber-btn, .cyber-btn:hover { transition: none !important; transform: none !important; }
}
html.tv-mode .v77-grain, html.apk-mode .v77-grain { display: none; }

/* hero title colours: yellow slab type with red/cyan split (v1.1) */
body.landing-page .cyber-hero-section h1 .text-cybercyan { color: var(--v77-yellow) !important; text-shadow: 5px 0 0 var(--v77-red) !important; }
body.landing-page .cyber-hero-section h1 { text-shadow: none !important; }
body.landing-page .cyber-hero-section::before { color: rgba(220, 230, 245, .085); -webkit-text-stroke: 1px rgba(220, 230, 245, .16); }
.cyber-terminal-box { background: rgba(5, 12, 22, .78) !important; border-color: var(--v77-line) !important; border-left: 4px solid var(--v77-yellow) !important; box-shadow: none !important; }
body.v77-error h1:not(.glitch-text) { font-size: clamp(1.8rem, 6vw, 2.6rem) !important; line-height: 1 !important; }

/* ==========================================================================
   v3: motion layer (original recreation of open2077-style effects).
   transform / opacity / clip-path only; off under reduced motion, lite, TV/APK.
   ========================================================================== */
/* RGB-split glitch: idle bursts on the hero title, every few seconds */
[data-glitch].v77-glitch-loop::before { animation: v77-burst-a 5.2s steps(1, end) infinite; }
[data-glitch].v77-glitch-loop::after { animation: v77-burst-b 5.2s steps(1, end) infinite; }
@keyframes v77-burst-a {
  0%, 84%, 100% { opacity: 0; transform: none; clip-path: inset(0 0 100% 0); }
  85% { opacity: .9; transform: translate(-5px, 0); clip-path: inset(8% 0 70% 0); }
  87% { transform: translate(4px, -1px); clip-path: inset(48% 0 30% 0); }
  89% { transform: translate(-3px, 1px); clip-path: inset(70% 0 6% 0); }
  91% { opacity: .9; transform: translate(6px, 0); clip-path: inset(22% 0 58% 0); }
  92% { opacity: 0; }
}
@keyframes v77-burst-b {
  0%, 85%, 100% { opacity: 0; transform: none; clip-path: inset(100% 0 0 0); }
  86% { opacity: .85; transform: translate(5px, 0); clip-path: inset(60% 0 12% 0); }
  88% { transform: translate(-4px, 1px); clip-path: inset(14% 0 64% 0); }
  90% { transform: translate(3px, 0); clip-path: inset(38% 0 44% 0); }
  92% { opacity: 0; }
}
/* the whole title jolts sideways for a frame during the burst */
.v77-glitch-loop { animation: v77-jolt 5.2s steps(1, end) infinite; }
@keyframes v77-jolt { 0%, 85%, 100% { transform: none; } 86% { transform: translateX(-2px) skewX(-4deg); } 88% { transform: translateX(3px); } 90% { transform: none; } }

/* text decode: scrambling glyphs keep the line from reflowing */
.v77-scrambling { font-variant-numeric: tabular-nums; }
.v77-scrambling .v77-sc { color: var(--v77-blue); opacity: .85; }

/* neon flicker for LEDs, badges and terminal prompts */
.cyber-led, .cyber-badge-pill, .cyber-terminal-box .animate-pulse { animation: v77-flicker 6s steps(1, end) infinite; }
@keyframes v77-flicker { 0%, 100% { opacity: 1; } 31% { opacity: .55; } 32% { opacity: 1; } 34% { opacity: .3; } 35% { opacity: 1; } 77% { opacity: .7; } 78% { opacity: 1; } }

/* buttons: speed-line sheen + RGB split on hover */
.cyber-btn { overflow: hidden; }
.cyber-btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(100deg, transparent 0 30%, rgba(255, 255, 255, .55) 30% 38%, transparent 38% 52%, rgba(255, 255, 255, .35) 52% 56%, transparent 56%);
  transform: translateX(-120%) skewX(-18deg); opacity: 0;
}
.cyber-btn:hover::before, .cyber-btn:focus-visible::before, #heroLoginBtn::before { animation: v77-sheen 1.1s cubic-bezier(.2, .7, .2, 1) 1; }
#heroLoginBtn::before { animation: v77-sheen 1.1s cubic-bezier(.2, .7, .2, 1) 1.2s infinite; animation-duration: 3.6s; }
@keyframes v77-sheen { 0% { transform: translateX(-120%) skewX(-18deg); opacity: 1; } 35%, 100% { transform: translateX(320%) skewX(-18deg); opacity: 0; } }
.cyber-btn:hover { animation: v77-btn-glitch .32s steps(2, end) 1; }
@keyframes v77-btn-glitch {
  0% { filter: drop-shadow(3px 0 0 var(--v77-red)) drop-shadow(-3px 0 0 var(--v77-blue)); transform: translateX(4px); }
  50% { filter: drop-shadow(-2px 0 0 var(--v77-red)) drop-shadow(2px 0 0 var(--v77-blue)); transform: translateX(1px); }
  100% { filter: none; transform: translateX(3px); }
}
/* striped tail runs while hovered */
.cyber-btn:hover { background-position: right 4px center, 0 0 !important; transition: background-position .3s steps(3) !important; }

/* logos: hover glitch */
.nav-hud img:hover, .cyber-reticle-wrap img:hover, .v77-logo-glitch:hover { animation: v77-logo .55s steps(1, end) 1; }
@keyframes v77-logo {
  0% { clip-path: inset(0 0 52% 0); transform: translateX(-3px); }
  14% { clip-path: inset(46% 0 0 0); transform: translateX(4px); }
  28% { clip-path: inset(0); transform: none; }
  42% { clip-path: inset(18% 0 34% 0); transform: translateX(-2px); }
  56%, 100% { clip-path: inset(0); transform: none; }
}

/* cards: lift + corner tick + edge glitch on hover */
.cyber-card, .cyber-telemetry-cell, .v77-card { transition: transform .22s cubic-bezier(.2, .7, .2, 1), border-color .2s ease; }
.cyber-card:hover, .cyber-telemetry-cell:hover, .v77-card:hover { transform: translateY(-3px); }
.cyber-card::after { content: ""; position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; pointer-events: none;
  background: linear-gradient(135deg, transparent 50%, var(--v77-yellow) 50%); opacity: 0; transition: opacity .2s ease; }
.cyber-card:hover::after { opacity: .9; animation: v77-tick .4s steps(2, end) 1; }
@keyframes v77-tick { 0% { transform: translate(-6px, 0); opacity: .2; } 50% { transform: translate(3px, -2px); opacity: 1; } 100% { transform: none; } }

/* reveal on scroll (only once JS marks targets; without JS everything is visible) */
html.v77-js .v77-reveal { opacity: 0; transform: translate3d(0, 18px, 0); }
html.v77-js .v77-reveal.v77-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--v77-d, 0s); }

/* marquee ticker under the hero */
.v77-marquee { position: relative; overflow: hidden; border-block: 1px solid var(--v77-line); background: rgba(5, 12, 22, .82);
  font: 600 12px/1 var(--v77-mono); letter-spacing: .3em; color: var(--v77-muted); text-transform: uppercase; padding: 12px 0; margin: 0 0 2rem; }
.v77-marquee-track { display: flex; width: max-content; animation: v77-marquee 38s linear infinite; will-change: transform; }
.v77-marquee span { padding: 0 1.6em; white-space: nowrap; }
.v77-marquee span:nth-child(3n+1) { color: var(--v77-yellow); }
.v77-marquee span:nth-child(3n+2) { color: var(--v77-blue); }
@keyframes v77-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* scanline sweep + cursor reticle (desktop, fine pointers only) */
.v77-sweep { position: fixed; left: 0; right: 0; top: 0; height: 140px; z-index: 2147482990; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8, 223, 236, .045) 45%, rgba(8, 223, 236, .08) 50%, transparent);
  animation: v77-sweep 9s steps(270, end) infinite; }
@keyframes v77-sweep { from { transform: translate3d(0, -160px, 0); } to { transform: translate3d(0, 110vh, 0); } }
/* Custom cursor is disabled: it hid the native pointer on desktop (cursor none
   on html.v77-cur-on). Every page now keeps the normal OS pointer. */
.v77-cur, .v77-ret, .v77-pulse { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 2147483001; opacity: 0; will-change: transform; }
html.v77-cur-on .v77-cur, html.v77-cur-on .v77-ret { opacity: 1; }
.v77-cur { margin: -2px 0 0 -2px; width: 26px; height: 28px; z-index: 2147483003; }
.v77-cur svg { display: block; overflow: visible; filter: drop-shadow(0 0 3px rgba(8, 223, 236, .85)) drop-shadow(0 0 7px rgba(252, 238, 10, .35)); transition: transform .12s ease; transform-origin: 2px 2px; }
.v77-cur path { stroke-linejoin: miter; stroke-miterlimit: 8; }
.v77-cur .v77-cur-core { fill: #070b14; stroke: var(--v77-yellow); stroke-width: 1.6; }
.v77-cur .v77-cur-c { fill: none; stroke: var(--v77-blue); stroke-width: 1.4; opacity: .7; }
.v77-cur .v77-cur-r { fill: none; stroke: var(--v77-red); stroke-width: 1.4; opacity: .45; }
.v77-cur .v77-cur-notch { stroke: var(--v77-blue); stroke-width: 1.6; fill: none; }
.v77-cur.v77-hot .v77-cur-core { fill: var(--v77-yellow); stroke: #070b14; stroke-width: 1.2; }
.v77-cur.v77-hot .v77-cur-notch { stroke: #070b14; }
.v77-cur.v77-press svg { transform: scale(.82); }
.v77-ret { width: 30px; height: 30px; z-index: 2147483002; transition: opacity .15s ease; }
html.v77-cur-on .v77-ret { opacity: .9; }
.v77-ret i { position: absolute; width: 8px; height: 8px; border: 0 solid var(--v77-blue); filter: drop-shadow(0 0 3px rgba(8, 223, 236, .9)); transition: border-color .15s ease, width .15s ease, height .15s ease; }
.v77-ret .v77-ret-tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.v77-ret .v77-ret-tr { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; }
.v77-ret .v77-ret-bl { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; }
.v77-ret .v77-ret-br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.v77-ret .v77-ret-dot { display: none; }
.v77-ret.v77-lock i { width: 12px; height: 12px; border-color: var(--v77-yellow); filter: drop-shadow(0 0 4px rgba(252, 238, 10, .75)); }
.v77-ret.v77-lock .v77-ret-dot { display: block; position: absolute; right: -3px; top: -9px; width: 14px; height: 3px; background: var(--v77-red); }
.v77-ret.v77-glitch { animation: v77-ret-glitch .26s steps(2, end) 1; }
@keyframes v77-ret-glitch {
  0% { filter: drop-shadow(-3px 0 0 rgba(255, 0, 95, .8)) drop-shadow(3px 0 0 rgba(8, 223, 236, .8)); clip-path: inset(0 0 55% 0); translate: 3px 0; }
  40% { filter: drop-shadow(2px 0 0 rgba(255, 0, 95, .8)) drop-shadow(-2px 0 0 rgba(8, 223, 236, .8)); clip-path: inset(40% 0 0 0); translate: -3px 0; }
  100% { filter: none; clip-path: none; translate: 0 0; }
}
.v77-pulse { opacity: 1; z-index: 2147483000; width: 0; height: 0; }
.v77-pulse::before, .v77-pulse::after { content: ""; position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border: 1.5px solid var(--v77-yellow); transform: rotate(45deg) scale(.3); opacity: .95; animation: v77-pulse .5s cubic-bezier(.2, .7, .3, 1) forwards; }
.v77-pulse::after { border-color: var(--v77-blue); animation-delay: .06s; }
@keyframes v77-pulse { to { transform: rotate(45deg) scale(1.6); opacity: 0; } }

/* ---- Night City hero backdrop (original procedural SVG layers) ---- */
body.landing-page { overflow-x: clip; }
.v77-city { position: absolute; z-index: -2; top: -6rem; height: max(calc(100vh + 2rem), 640px); left: calc(50% - 50vw); width: 100vw; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(70% 38% at 50% 92%, rgba(255, 0, 95, .28), transparent 70%),
    radial-gradient(50% 30% at 18% 80%, rgba(8, 223, 236, .16), transparent 70%),
    linear-gradient(180deg, #05070c 0%, #081a33 38%, #170f33 66%, #2a0b2b 84%, #0a0c18 100%); }
.v77-city > i { position: absolute; left: -3%; right: -3%; bottom: 0; background-repeat: repeat-x; background-position: center bottom; background-size: auto 100%;
  transform: translate3d(calc(var(--v77-mx, 0) * var(--k, 0) * 1px), calc(var(--v77-py, 0) * var(--k, 0) * 1px), 0); will-change: transform; }
.v77-city .v77-far { height: 74%; opacity: .75; --k: .45; background-image: url("/assets/nightcity/far.svg"); }
.v77-city .v77-mid { height: 58%; --k: .3; background-image: url("/assets/nightcity/mid.svg"); }
.v77-city .v77-near { height: 40%; --k: .12; background-image: url("/assets/nightcity/near.svg"); }
.v77-city .v77-slice { height: 58%; --k: .3; background-image: url("/assets/nightcity/mid.svg"); opacity: 0; animation: v77-city-glitch 8s steps(1, end) infinite; }
@keyframes v77-city-glitch {
  0%, 90%, 100% { opacity: 0; clip-path: inset(100% 0 0 0); }
  91% { opacity: .9; clip-path: inset(38% 0 52% 0); translate: 14px 0; }
  93% { clip-path: inset(62% 0 30% 0); translate: -10px 0; }
  95% { opacity: 0; }
}
.v77-city .v77-haze { inset: 0; height: auto; background: linear-gradient(0deg, rgba(255, 0, 95, .16), transparent 35%), linear-gradient(0deg, rgba(5, 12, 22, .0) 30%, rgba(5, 12, 22, .55) 75%, #05070c 100%); --k: 0; }
.v77-city .v77-rain { top: -200px; bottom: 0; height: auto; opacity: .55; --k: 0; transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='200'%3E%3Cg stroke='%23a9c8ff' stroke-opacity='.35' stroke-width='1'%3E%3Cpath d='M12 0l-6 34M58 70l-6 34M101 20l-6 34M33 130l-6 34M120 120l-6 34M80 160l-6 34'/%3E%3C/g%3E%3C/svg%3E") repeat;
  animation: v77-rain .55s steps(16, end) infinite; }
@keyframes v77-rain { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-35px, 200px, 0); } }
.v77-city .v77-scan { inset: 0; height: auto; --k: 0; transform: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); opacity: .5; }
/* legibility: dark vignette behind the headline and terminal */
.v77-city::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(42% 40% at 50% 50%, rgba(5, 12, 22, .72), rgba(5, 12, 22, .28) 65%, transparent 100%), linear-gradient(180deg, rgba(5, 12, 22, .65), transparent 20%), linear-gradient(0deg, #05070c, transparent 14%); }
body.landing-page .cyber-hero-section::before { z-index: -1; }

/* phones: calmer (no rain, no sweep, no cursor, slower glitch) */
@media (max-width: 768px), (pointer: coarse) {
  .v77-sweep, .v77-cursor, .v77-cur, .v77-ret, .v77-pulse { display: none !important; }
  .v77-city .v77-rain { display: none; }
  .v77-city .v77-slice { animation-duration: 14s; }
  [data-glitch].v77-glitch-loop::before, [data-glitch].v77-glitch-loop::after, .v77-glitch-loop { animation-duration: 9s; }
  .v77-marquee-track { animation-duration: 28s; }
  .cyber-card:hover, .cyber-telemetry-cell:hover, .v77-card:hover { transform: none; }
}
@media (max-width: 768px) { .v77-city { top: -4rem; height: max(calc(100vh + 1rem), 560px); } .v77-city .v77-near { height: 30%; } .v77-city .v77-mid { height: 46%; } .v77-city .v77-far { height: 62%; } }

/* Homepage: keep the Night City hero vivid, and only dissolve it in the last
   stretch where the buildings meet the navy. Reuse the same sky + layers
   behind the Architecture Matrix cards. No new assets or animation (keeps
   the #120 GPU settle: static layers, no will-change). */
body.landing-page .v77-city {
  /* Extend just far enough that the last-part fade covers the join with the
     telemetry tiles, without dimming the title or mid-hero skyline. */
  height: max(calc(100vh + 12rem), 800px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 84%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
@media (max-width: 768px) {
  body.landing-page .v77-city { height: max(calc(100vh + 16rem), 780px); }
}
/* Keep the original title vignette; only lengthen the bottom stop so the
   building line eases into the page navy in the last ~16%. */
body.landing-page .v77-city::after {
  background:
    radial-gradient(42% 40% at 50% 50%, rgba(5, 12, 22, .72), rgba(5, 12, 22, .28) 65%, transparent 100%),
    linear-gradient(180deg, rgba(5, 12, 22, .65), transparent 20%),
    linear-gradient(to top, #050505 0%, rgba(5, 5, 5, .8) 6%, transparent 16%);
}
/* Narrow blur strip only at the join. Dropped when the hero is off-screen,
   on lite / TV / APK shells, and under prefers-reduced-motion. */
body.landing-page .v77-city::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(to top, #050505 0%, rgba(5, 5, 5, .4) 55%, transparent 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 35%, transparent 100%);
}
html.v77-lite body.landing-page .v77-city::before,
html.tv-mode body.landing-page .v77-city::before,
html.apk-mode body.landing-page .v77-city::before,
html.v77-hero-off body.landing-page .v77-city::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (prefers-reduced-motion: reduce) {
  body.landing-page .v77-city::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

#architecture.v77-arch {
  background-color: transparent;
  isolation: isolate;
  overflow: hidden;
}
/* Same purple/pink Night City palette as the hero. */
.v77-arch-city {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(70% 38% at 50% 92%, rgba(255, 0, 95, .28), transparent 70%),
    radial-gradient(50% 30% at 18% 80%, rgba(8, 223, 236, .16), transparent 70%),
    linear-gradient(180deg, #05070c 0%, #081a33 38%, #170f33 66%, #2a0b2b 84%, #0a0c18 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
/* Stage the skyline like the hero (buildings sit on the bottom of a ~100vh
   field at the top of the section) so it stays behind the cards on tall pages. */
.v77-arch-skyline {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: min(100%, 110vh);
  overflow: hidden;
}
.v77-arch-skyline > i {
  position: absolute;
  left: -3%;
  right: -3%;
  bottom: 0;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
}
.v77-arch-skyline .v77-far {
  height: 74%;
  opacity: .75;
  background-image: url("/assets/nightcity/far.svg");
}
.v77-arch-skyline .v77-mid {
  height: 58%;
  background-image: url("/assets/nightcity/mid.svg");
}
.v77-arch-skyline .v77-near {
  height: 40%;
  background-image: url("/assets/nightcity/near.svg");
}
.v77-arch-skyline .v77-haze {
  inset: 0;
  height: auto;
  background: linear-gradient(0deg, rgba(255, 0, 95, .16), transparent 35%), linear-gradient(0deg, rgba(5, 12, 22, .0) 30%, rgba(5, 12, 22, .55) 75%, #05070c 100%);
}
@media (max-width: 768px) {
  .v77-arch-skyline .v77-near { height: 30%; }
  .v77-arch-skyline .v77-mid { height: 46%; }
  .v77-arch-skyline .v77-far { height: 62%; }
}
/* ~60% dark overlay so the same vivid skyline stays readable under the cards. */
.v77-arch-city .v77-arch-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(5, 7, 12, .72) 0%, rgba(5, 7, 12, .6) 10%, rgba(5, 7, 12, .58) 50%, rgba(5, 7, 12, .6) 90%, rgba(5, 7, 12, .72) 100%);
}

/* lite / TV / APK shells and reduced motion: everything static */
html.v77-lite *, html.v77-lite *::before, html.v77-lite *::after,
html.tv-mode .v77-city *, html.apk-mode .v77-city * { animation: none !important; }
html.v77-lite .v77-sweep, html.v77-lite .v77-cursor, html.v77-lite .v77-city .v77-rain, html.v77-lite .v77-city .v77-slice,
html.tv-mode .v77-sweep, html.tv-mode .v77-cursor, html.apk-mode .v77-sweep, html.apk-mode .v77-cursor,
html.v77-lite .v77-cur, html.v77-lite .v77-ret, html.tv-mode .v77-cur, html.tv-mode .v77-ret, html.apk-mode .v77-cur, html.apk-mode .v77-ret { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .v77-glitch-loop, .cyber-led, .cyber-badge-pill, .cyber-terminal-box .animate-pulse, .cyber-btn, .cyber-btn::before, .nav-hud img, .cyber-reticle-wrap img,
  .cyber-card::after, .v77-marquee-track, .v77-city > i { animation: none !important; transition: none !important; }
  .cyber-btn::before, .v77-sweep, .v77-cursor, .v77-pulse, .v77-city .v77-rain, .v77-city .v77-slice { display: none !important; }
  .v77-ret, .v77-ret i, .v77-cur svg { animation: none !important; transition: none !important; }
  .v77-city > i { transform: none !important; }
  .cyber-card:hover, .cyber-telemetry-cell:hover, .v77-card:hover { transform: none !important; }
  html.v77-js .v77-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .v77-marquee-track { transform: none !important; }
}
/* keep label clear of the striped tail */
.cyber-btn { padding-right: 3.1rem !important; }
@media (max-width: 480px) { .cyber-btn { padding-left: .9rem !important; padding-right: 2.6rem !important; background-size: 26px 100%, auto !important; background-position: right 6px center, 0 0 !important; } #navLoginBtn, .nav-hud #navLoginBtn { padding: .6rem 2.4rem .6rem .8rem !important; font-size: .78rem !important; } }

/* ===== ViperIcons (assets/icons/vipericons.svg): chamfered 24px-grid header icons ===== */
.vi { width: 1.25rem; height: 1.25rem; display: inline-block; flex-shrink: 0; vertical-align: -0.28em; fill: none; stroke: currentColor; overflow: visible; --vi-tick: var(--cyber-yellow, #fcee0a); pointer-events: none; transition: filter .18s ease, transform .18s ease; }
.vi-btn { display: inline-flex !important; align-items: center; justify-content: center; gap: .5rem; }
.nav-app .nav-actions > a > .vi, .nav-app .nav-actions > button > .vi { width: 1.2rem; height: 1.2rem; }
.nav-tab[aria-current="page"] .vi, .bg-cyberyellow .vi, .cyber-btn .vi, #navSignIn .vi, #hubAuthBtn .vi { --vi-tick: #000; }
.nav-tab .vi { --vi-tick: var(--cyber-pink, #ff2a6d); }
#logout .vi, .bg-cyberred .vi { --vi-tick: var(--cyber-yellow, #fcee0a); }
a:hover > .vi, button:hover > .vi, a:focus-visible > .vi, button:focus-visible > .vi {
  filter: drop-shadow(-1.5px 0 0 rgba(0, 240, 255, .85)) drop-shadow(1.5px 0 0 rgba(255, 42, 109, .85)) drop-shadow(0 0 5px currentColor);
  animation: vi-glitch .34s steps(2, end) 1;
}
@keyframes vi-glitch {
  0% { transform: translate(0, 0); } 25% { transform: translate(-1px, .5px) skewX(-6deg); }
  50% { transform: translate(1px, -.5px); } 75% { transform: translate(-.5px, 0) skewX(4deg); } 100% { transform: translate(0, 0); }
}
@media (max-width: 639px) {
  .nav-app .nav-actions > a > .vi, .nav-app .nav-actions > button > .vi { width: 1.15rem; height: 1.15rem; margin: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
  .vi { transition: none; }
  a:hover > .vi, button:hover > .vi, a:focus-visible > .vi, button:focus-visible > .vi { animation: none !important; transform: none !important; filter: drop-shadow(0 0 4px currentColor); }
}
:where(a, button):not(.nav-tab):not(.vi-btn) > .vi { margin-right: .5em; }
#hubAuthBtn { white-space: nowrap; }

/* ===== v77 skeletons: chamfered open2077 placeholders with a single cyan sweep (no layout shift, no text) =====
   Usage: <span class="vsk vsk-line" style="width:40%"></span>, .vsk-title, .vsk-block, .vsk-row (list item).
   Static (no animation) under prefers-reduced-motion and on lite devices (html.vsk-static / .tv-lite-mode). */
.vsk {
  display: block; position: relative; overflow: hidden; color: transparent !important; user-select: none; pointer-events: none;
  background: #0c131f; border-left: 2px solid rgba(252, 238, 10, .55);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.vsk::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, rgba(0, 240, 255, .14) 45%, rgba(0, 240, 255, .26) 50%, rgba(0, 240, 255, .14) 55%, transparent 100%);
  animation: vsk-sweep 1.35s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes vsk-sweep { to { transform: translateX(100%); } }
.vsk-inline { display: inline-block; vertical-align: middle; }
.vsk-line { height: .85rem; width: 70%; margin: .3rem 0; }
.vsk-line.short { width: 40%; }
.vsk-title { height: 2.4rem; width: min(26rem, 80%); }
.vsk-block { height: 4.5rem; width: 100%; }
.vsk-row { height: 3.25rem; width: 100%; margin: 0 0 .5rem; }
.vsk-stack { display: grid; gap: .5rem; }
@media (prefers-reduced-motion: reduce) { .vsk::after { animation: none; transform: none; background: rgba(0, 240, 255, .06); } }
html.vsk-static .vsk::after, html.tv-lite-mode .vsk::after { animation: none; transform: none; background: rgba(0, 240, 255, .06); }
/* Greeting placeholder keeps the h1 line height so nothing jumps when the name lands. */
#welcomeMsg[aria-busy="true"] { min-height: 1.15em; }
#welcomeMsg[aria-busy="true"] .vsk-title { height: .9em; margin: .1em 0; }

/* ---- Gate skeleton (v3.6.5): the members-only gate paints a page-shaped 2077 skeleton instead of a black
   screen. It holds no data; protected content stays display:none until checkLogin()/access resolves. ---- */
body.gate-pending .gate-loader.gate-sk {
  justify-content: flex-start !important; align-items: stretch !important; gap: 0 !important;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) 0 env(safe-area-inset-left, 0);
  background: #050505; overflow: hidden;
}
.gate-sk .gsk-nav { display: flex; align-items: center; gap: .75rem; height: 72px; padding: 0 2rem; border-bottom: 1px solid rgba(0, 240, 255, .18); flex-shrink: 0; }
.gate-sk .gsk-brand { width: 11rem; height: 1.6rem; }
.gate-sk .gsk-gap { flex: 1; }
.gate-sk .gsk-pill { width: 7.5rem; height: 2.2rem; }
.gate-sk .gsk-pill--y { width: 6rem; border-left-color: #fcee0a; }
.gate-sk .gsk-body { display: flex; flex-direction: column; gap: 1rem; width: 100%; max-width: 80rem; margin: 0 auto; padding: 2.25rem 2rem 0; box-sizing: border-box; }
.gate-sk .gsk-chips { display: flex; gap: .6rem; overflow: hidden; }
.gate-sk .gsk-chip { flex: 0 0 8.5rem; height: 2.4rem; }
.gate-sk .gsk-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.gate-sk .gsk-col2, .gate-sk .gsk-col1 { display: grid; gap: 1.5rem; align-content: start; }
.gate-sk .gsk-card { height: 11rem; width: 100%; }
.gate-sk .gsk-card--tall { height: 19rem; }
.gate-sk .gsk-rowtitle { width: 12rem; height: 1.1rem; margin-top: .6rem; }
.gate-sk .gsk-posters { display: flex; gap: .9rem; overflow: hidden; }
.gate-sk .gsk-poster { flex: 0 0 clamp(7.5rem, 14vw, 11rem); aspect-ratio: 2 / 3; height: auto; }
.gate-sk .gate-text {
  position: absolute; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0)); transform: translateX(-50%);
  font-family: 'JetBrains Mono', ui-monospace, monospace !important; font-size: .7rem !important; letter-spacing: .28em !important;
  color: rgba(0, 240, 255, .75) !important; white-space: nowrap;
}
@media (max-width: 767px) {
  .gate-sk .gsk-nav { height: 60px; padding: 0 1rem; }
  .gate-sk .gsk-brand { width: 8rem; }
  .gate-sk .gsk-pill { width: 2.6rem; }
  .gate-sk .gsk-pill--y { width: 4.5rem; }
  .gate-sk .gsk-body { padding: 1.5rem 1rem 0; }
  .gate-sk .gsk-grid { grid-template-columns: 1fr; }
  .gate-sk .gsk-col1 { display: none; }
  .gate-sk .gsk-chip { flex-basis: 6.5rem; }
}

/* v3.6.6 gate watchdog retry panel (shown only if the clearance check is still pending after 14s) */
.gate-loader.gate-stalled .gate-text, .gate-loader.gate-stalled .gate-bar { display: none !important; }
.gate-loader .gate-retry { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; gap: .7rem; width: min(26rem, calc(100vw - 2.5rem)); padding: 1.2rem 1.3rem;
  background: #0a111c; border: 1px solid rgba(0, 240, 255, .3); border-left: 3px solid #fcee0a;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); box-sizing: border-box; }
.gate-retry-title { font: 700 .78rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .28em; color: #fcee0a; }
.gate-retry-sub { color: rgba(226, 240, 255, .8); font-size: .9rem; line-height: 1.4; }
.gate-retry-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.gate-retry-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1.1rem; background: #00f0ff; color: #000;
  border: 1px solid #00f0ff; font: 700 .72rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .22em; cursor: pointer; text-decoration: none; }
.gate-retry-btn--ghost { background: transparent; color: #00f0ff; }
.gate-retry-btn:focus-visible { outline: 2px solid #fcee0a; outline-offset: 2px; }
/* v3.6.6 dashboard: a field whose data never came (listener error / 15s) */
.vsk-fail { display: inline-flex; align-items: center; gap: .6rem; font: 700 .72rem/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .24em; color: #fcee0a; }
.vsk-retry { min-height: 32px; padding: 0 .7rem; border: 1px solid #00f0ff; background: transparent; color: #00f0ff; font: inherit; letter-spacing: .2em; cursor: pointer; }
.vsk-retry:hover, .vsk-retry:focus-visible { background: #00f0ff; color: #000; outline: none; }

/* ===== v4 performance: idle loops stop when nobody can see them =====
   html.v77-hero-off: the hero is scrolled out of view (viper2077.js IntersectionObserver).
   html.v77-hidden: the tab is in the background. Paused, not removed, so the look is identical when they resume. */
html.v77-hero-off .v77-city *, html.v77-hero-off .v77-glitch-loop, html.v77-hero-off .v77-glitch-loop::before, html.v77-hero-off .v77-glitch-loop::after,
html.v77-hero-off .cyber-hero-section *, html.v77-hero-off .cyber-hero-section *::before, html.v77-hero-off .cyber-hero-section *::after,
html.v77-marquee-off .v77-marquee-track,
html.v77-hidden *, html.v77-hidden *::before, html.v77-hidden *::after,
.v77-off, .v77-off::before, .v77-off::after, .v77-off * { animation-play-state: paused !important; }
html.v77-hidden .v77-sweep { visibility: hidden; }
/* idle settle (viper2077.js, 20 s without input): the sweep rests and the landing hero holds a clean still frame.
   One-off flashes (title bursts, jolt, city glitch slice, button sheen, LED flicker / pulse) drop back to their resting
   look; the rain and the marquee hold where they are so nothing jumps. Any input resumes them. */
html.v77-idle .v77-sweep { animation-play-state: paused; opacity: 0; transition: opacity .6s ease; }
html.v77-idle body.landing-page .v77-glitch-loop, html.v77-idle body.landing-page .v77-glitch-loop::before, html.v77-idle body.landing-page .v77-glitch-loop::after,
html.v77-idle body.landing-page .v77-city .v77-slice, html.v77-idle body.landing-page #heroLoginBtn::before,
html.v77-idle body.landing-page .cyber-led, html.v77-idle body.landing-page .cyber-badge-pill, html.v77-idle body.landing-page .animate-pulse,
html.v77-idle body.landing-page .glitch-text, html.v77-idle body.landing-page .scan-anim::after,
html.v77-idle body.landing-page .scan-anim-fast::after, html.v77-idle body.landing-page .scan-anim-yellow::after { animation: none !important; }
html.v77-idle body.landing-page .v77-city .v77-rain, html.v77-idle body.landing-page .v77-marquee-track { animation-play-state: paused !important; }
/* parallax layers only stay promoted while the hero is on screen */
html.v77-hero-off .v77-city > i { will-change: auto; }
@media (prefers-reduced-motion: reduce) {
  .v77-sweep, .v77-marquee-track, .v77-city *, .glitch-text { animation: none !important; }
}
