/* VIPerClub design tokens + open2077.net Cyberpunk 2077 visual system.
   Existing untouched pages keep cyber-styles.css, viper2077.css and ice-bg.css unchanged. */
@font-face{font-family:"Chakra Petch";src:url(/fonts/chakra-petch-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url(/fonts/chakra-petch-600.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Chakra Petch";src:url(/fonts/chakra-petch-700.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(/fonts/inter-var.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/fonts/jetbrains-mono-400.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"JetBrains Mono";src:url(/fonts/jetbrains-mono-500.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap}

/* CSS Houdini sweeping hazard-stripe animation properties (open2077.net button signature) */
@property --btn-line-1 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --btn-line-2 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --btn-line-3 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --btn-line-4 { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --btn-line-5 { syntax: "<number>"; inherits: true; initial-value: 0; }

:root{
  /* Legacy v2 tokens preserved for untouched pages */
  --bg-0:#050c16;--bg-1:#0a1322;--bg-2:#111d30;--bg-glass:rgba(5,12,22,.78);
  --line:rgba(75,99,133,.34);--line-strong:rgba(75,99,133,.62);
  --text-hi:#FFFFFF;--text:#C9D6EA;--text-mute:#7E95B5;
  --cyan:#08DFEC;--cyan-dim:rgba(8,223,236,.14);--yellow:#FCEE0A;--rose:#FF005F;--violet:#7C5CFF;
  --font-display:"Chakra Petch",system-ui,sans-serif;
  --font-body:"Space Grotesk","Inter",system-ui,sans-serif;
  --font-mono:"JetBrains Mono",ui-monospace,monospace;
  --r-sm:2px;--r-md:4px;--r-lg:6px;
  --ease-out:cubic-bezier(.22,1,.36,1);--dur-1:150ms;--dur-2:260ms;--dur-3:620ms;
  --glow-cyan:0 0 0 1px rgba(8,223,236,.42),0 0 28px -4px rgba(8,223,236,.48);
  --glow-yellow:0 0 0 1px rgba(252,238,10,.55),0 8px 34px -8px rgba(252,238,10,.52);
  --glow-red:0 0 0 1px rgba(255,0,95,.45),0 0 28px -4px rgba(255,0,95,.48);
  --container:1620px;--nav-h:76px;

  /* open2077.net Cyberpunk 2077 design tokens */
  --o77-body:#050c16;
  --o77-body-90:rgba(5,12,22,.90);
  --o77-body-75:rgba(5,12,22,.75);
  --o77-body-55:rgba(5,12,22,.55);
  --o77-surface-1:rgba(12,21,36,.84);
  --o77-surface-2:rgba(18,30,49,.88);
  --o77-surface-3:rgba(26,41,65,.92);
  --o77-text:#ffffff;
  --o77-dim:rgba(255,255,255,.70);
  --o77-faint:rgba(255,255,255,.44);
  --o77-secondary:#4b6385;
  --o77-line:rgba(75,99,133,.34);
  --o77-line-strong:rgba(75,99,133,.64);
  --o77-yellow:#fcee0a;
  --o77-blue:#08dfec;
  --o77-red:#ff005f;
  --o77-ice:#70f3f5;
  --o77-skew:-12deg;
  --o77-skew-rev:12deg;
  --o77-heading:"Archivo","Chakra Petch",system-ui,sans-serif;
  --o77-hud:"Chakra Petch","JetBrains Mono",system-ui,sans-serif;
  --o77-main:"Space Grotesk","Inter",system-ui,sans-serif;
  --o77-mono:"JetBrains Mono",ui-monospace,monospace;
  --active-color:var(--o77-yellow);
  --active-glow:rgba(252,238,10,.45);
}

:root[data-active-tone="yellow"]{--active-color:var(--o77-yellow);--active-glow:rgba(252,238,10,.45)}
:root[data-active-tone="blue"]{--active-color:var(--o77-blue);--active-glow:rgba(8,223,236,.45)}
:root[data-active-tone="red"]{--active-color:var(--o77-red);--active-glow:rgba(255,0,95,.48)}

html{color-scheme:dark}
::selection{background:var(--active-color);color:#050c16}
:focus-visible{outline:2px solid var(--active-color);outline-offset:3px}

/* Shared animated film grain overlay (exact open2077.net .48s step-end analog static) */
.o77-grain{
  position:fixed;top:-64px;left:-64px;width:calc(100% + 128px);height:calc(100% + 128px);
  z-index:900;pointer-events:none;
  opacity:.46;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .58 0 0 0 0 .66 0 0 0 0 .78 0 0 0 .58 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size:80px 80px;
  animation:o77-grain-step .48s step-end infinite;
  will-change:transform;
}
@media (max-width:1250px){.o77-grain{opacity:.24}}
@keyframes o77-grain-step{
  0%{transform:translate3d(0,0,0)}
  25%{transform:translate3d(-32px,18px,0)}
  50%{transform:translate3d(20px,-28px,0)}
  75%{transform:translate3d(-14px,-22px,0)}
}

/* Shared sweeping button hazard-line keyframes (open2077.net) */
@keyframes o77-btn-line{
  0%{--btn-line-p:0}
  100%{--btn-line-p:1}
}
@keyframes o77-l1{0%{--btn-line-1:0}100%{--btn-line-1:1}}
@keyframes o77-l2{0%{--btn-line-2:0}100%{--btn-line-2:1}}
@keyframes o77-l3{0%{--btn-line-3:0}100%{--btn-line-3:1}}
@keyframes o77-l4{0%{--btn-line-4:0}100%{--btn-line-4:1}}
@keyframes o77-l5{0%{--btn-line-5:0}100%{--btn-line-5:1}}

/* Exact open2077.net continuous [data-glitch] heading effect (Your account / Get the launcher) */
[data-glitch]{
  position:relative;
  display:inline-block;
  --color-1:var(--o77-red);
  --color-2:var(--o77-blue);
}
@media (prefers-reduced-motion:no-preference){
  [data-glitch]::before,
  [data-glitch]::after{
    content:attr(data-glitch) !important;
    display:block !important;
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    color:inherit;
    -webkit-text-fill-color:inherit;
    font:inherit;
    letter-spacing:inherit;
    text-transform:inherit;
    line-height:inherit;
    pointer-events:none;
    -webkit-user-select:none;
    user-select:none;
    background:transparent;
    overflow:hidden;
  }
  [data-glitch]::before{
    left:3px;
    text-shadow:-2px 0 var(--color-1,var(--o77-red));
    animation:o77-glitch-1 2s linear infinite alternate-reverse;
  }
  [data-glitch]::after{
    left:-3px;
    text-shadow:-2px 0 var(--color-2,var(--o77-blue));
    animation:o77-glitch-2 2s linear infinite alternate-reverse;
  }
}
@keyframes o77-glitch-1{
  0%{clip:rect(91px,3000px,134px,0)}
  5%{clip:rect(16px,3000px,43px,0)}
  10%{clip:rect(16px,3000px,145px,0)}
  15%{clip:rect(23px,3000px,59px,0)}
  20%{clip:rect(148px,3000px,114px,0)}
  25%{clip:rect(109px,3000px,50px,0)}
  30%{clip:rect(53px,3000px,142px,0)}
  35%{clip:rect(141px,3000px,114px,0)}
  40%{clip:rect(39px,3000px,65px,0)}
  45%{clip:rect(91px,3000px,132px,0)}
  50%{clip:rect(146px,3000px,136px,0)}
  55%{clip:rect(92px,3000px,6px,0)}
  60%{clip:rect(37px,3000px,100px,0)}
  65%{clip:rect(53px,3000px,96px,0)}
  70%{clip:rect(84px,3000px,83px,0)}
  75%{clip:rect(116px,3000px,15px,0)}
  80%{clip:rect(59px,3000px,100px,0)}
  85%{clip:rect(101px,3000px,19px,0)}
  90%{clip:rect(86px,3000px,113px,0)}
  95%{clip:rect(22px,3000px,100px,0)}
  100%{clip:rect(59px,3000px,122px,0)}
}
@keyframes o77-glitch-2{
  0%{clip:rect(105px,3000px,102px,0)}
  5%{clip:rect(127px,3000px,86px,0)}
  10%{clip:rect(41px,3000px,148px,0)}
  15%{clip:rect(104px,3000px,33px,0)}
  20%{clip:rect(64px,3000px,69px,0)}
  25%{clip:rect(142px,3000px,2px,0)}
  30%{clip:rect(21px,3000px,133px,0)}
  35%{clip:rect(141px,3000px,19px,0)}
  40%{clip:rect(133px,3000px,136px,0)}
  45%{clip:rect(150px,3000px,80px,0)}
  50%{clip:rect(139px,3000px,13px,0)}
  55%{clip:rect(115px,3000px,87px,0)}
  60%{clip:rect(94px,3000px,124px,0)}
  65%{clip:rect(81px,3000px,120px,0)}
  70%{clip:rect(83px,3000px,150px,0)}
  75%{clip:rect(113px,3000px,20px,0)}
  80%{clip:rect(35px,3000px,45px,0)}
  85%{clip:rect(5px,3000px,79px,0)}
  90%{clip:rect(64px,3000px,86px,0)}
  95%{clip:rect(18px,3000px,36px,0)}
  100%{clip:rect(59px,3000px,119px,0)}
}

/* WebGL radial scanline RGB chromatic mouse-hover displacement overlay (open2077.net GlitchFrame) */
.o77-glitch-canvas{
  position:fixed !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:1;
  pointer-events:none;
  opacity:0;
  transition:opacity .22s ease;
}
.o77-glitch-canvas.is-live{
  opacity:1;
}
@media (hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){
  .o77-glitch-canvas{display:none !important}
}

@keyframes o77-eq{
  0%,100%{transform:scaleY(.28)}
  50%{transform:scaleY(1)}
}
@keyframes o77-runtime{
  0%,100%{opacity:1}
  50%{opacity:.32}
}

/* Exact open2077.net logo RGB slice hover glitch (0.55s step-end) */
@keyframes o77-logo-glitch{
  0%{clip-path:inset(0 0 0 0);transform:translate3d(0,0,0);filter:drop-shadow(0 0 8px var(--active-glow))}
  12%{clip-path:inset(0 0 52% 0);transform:translate3d(-3px,0,0);filter:drop-shadow(3px 0 #ff005f) drop-shadow(-3px 0 #08dfec)}
  24%{clip-path:inset(46% 0 0 0);transform:translate3d(4px,0,0);filter:drop-shadow(-3px 0 #ff005f) drop-shadow(3px 0 #08dfec)}
  38%{clip-path:inset(18% 0 34% 0);transform:translate3d(-2px,0,0);filter:drop-shadow(4px 0 #ff005f) drop-shadow(-2px 0 #fcee0a)}
  52%{clip-path:inset(60% 0 8% 0);transform:translate3d(3px,0,0);filter:drop-shadow(-3px 0 #08dfec) drop-shadow(3px 0 #ff005f)}
  68%{clip-path:inset(8% 0 64% 0);transform:translate3d(-2px,0,0);filter:drop-shadow(3px 0 #ff005f) drop-shadow(-3px 0 #08dfec)}
  82%{clip-path:inset(0 0 0 0);transform:translate3d(2px,0,0);filter:drop-shadow(2px 0 #ff005f) drop-shadow(-2px 0 #08dfec)}
  100%{clip-path:inset(0 0 0 0);transform:translate3d(0,0,0);filter:drop-shadow(0 0 12px var(--active-glow))}
}

/* open2077.net [data-glitchess] zero-jitter hover scramble */
[data-glitchess]{position:relative;display:inline-block}
[data-glitchess].is-scrambling{color:transparent !important;-webkit-text-fill-color:transparent !important}
[data-glitchess].is-scrambling::before{
  content:attr(data-glitchess);position:absolute;inset:0;
  color:var(--glitch-ink,currentColor);-webkit-text-fill-color:var(--glitch-ink,currentColor);
  white-space:nowrap;pointer-events:none;
}

.paused .o77-grain,
html.ice-paused .o77-grain{animation-play-state:paused !important}

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