/* ============================================================
   NOXUS PREMIUM POLISH LAYER — 2026-06-11
   Loaded after newone-theme.css + mobile-overrides.css.
   Adds: cinematic depth layers (parallax targets), film grain,
   refined panel chrome, fantasy CTA buttons, footer polish.
   No structural/markup logic lives here — pure presentation.
   ============================================================ */

:root {
  --nx-gold: #f6d778;
  --nx-gold-deep: #d49828;
  --nx-purple: #b65cff;
  --nx-purple-deep: #6d28d9;
  --nx-ember: #ff5a3c;
  --nx-ink: #08030f;
  --nx-text: #f7f1ff;
  --nx-muted: #b9aeca;
  --nx-hairline: linear-gradient(90deg, transparent, rgba(246, 215, 120, 0.55), rgba(176, 78, 255, 0.55), rgba(246, 215, 120, 0.55), transparent);
}

/* ────────────────────────────────────────────────────────────
   1. CINEMATIC ATMOSPHERE — grain + vignette + depth layers
   ──────────────────────────────────────────────────────────── */

/* Film grain + vignette: one fixed overlay, static, pointer-transparent. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 120% 90% at 50% 40%, transparent 58%, rgba(2, 0, 8, 0.42) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: cover, 160px 160px;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

/* Parallax depth layers — injected inside the fixed .newone-bg.
   Oversized so scroll translation never exposes an edge. */
.nx-smoke,
.nx-aura,
.nx-dust {
  position: absolute;
  inset: -30% -14%;
  display: block;
  pointer-events: none;
}

.nx-smoke--a { z-index: 2; }
.nx-smoke--b { z-index: 2; }
.nx-aura     { z-index: 4; }
.nx-dust     { z-index: 5; }

.nx-smoke::before,
.nx-aura::before,
.nx-dust::before,
.nx-dust::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Violet ceremonial smoke, upper register. */
.nx-smoke--a::before {
  background:
    radial-gradient(ellipse 46% 22% at 22% 30%, rgba(146, 64, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 52% 26% at 74% 22%, rgba(104, 40, 220, 0.13), transparent 72%);
  filter: blur(26px);
  animation: nxSmokeDrift 26s ease-in-out infinite alternate;
}

/* Dark-red ember haze, lower register — the molten undertone. */
.nx-smoke--b::before {
  background:
    radial-gradient(ellipse 42% 18% at 76% 78%, rgba(168, 34, 24, 0.13), transparent 72%),
    radial-gradient(ellipse 50% 20% at 28% 86%, rgba(120, 16, 32, 0.11), transparent 74%);
  filter: blur(30px);
  animation: nxSmokeDrift 34s ease-in-out infinite alternate-reverse;
}

/* Molten gold aura rising from the depths. */
.nx-aura::before {
  background:
    radial-gradient(ellipse 64% 14% at 50% 96%, rgba(246, 199, 96, 0.10), transparent 70%),
    radial-gradient(ellipse 30% 10% at 50% 99%, rgba(255, 158, 64, 0.12), transparent 72%);
  filter: blur(18px);
  animation: nxAuraBreathe 12s ease-in-out infinite alternate;
}

/* Gold + violet dust motes, two interleaved fields. */
.nx-dust::before {
  background-image:
    radial-gradient(1.6px 1.6px at 12% 78%, rgba(246, 215, 120, 0.85), transparent 100%),
    radial-gradient(1.2px 1.2px at 38% 32%, rgba(246, 215, 120, 0.6), transparent 100%),
    radial-gradient(1.4px 1.4px at 64% 58%, rgba(255, 224, 150, 0.7), transparent 100%),
    radial-gradient(1.1px 1.1px at 86% 22%, rgba(246, 215, 120, 0.55), transparent 100%),
    radial-gradient(1.3px 1.3px at 52% 88%, rgba(255, 206, 120, 0.6), transparent 100%);
  background-size: 520px 520px;
  background-repeat: repeat;
  opacity: 0.5;
  animation: nxDustFloat 38s linear infinite, nxTwinkle 5.5s ease-in-out infinite;
}

.nx-dust::after {
  background-image:
    radial-gradient(1.4px 1.4px at 24% 14%, rgba(196, 128, 255, 0.7), transparent 100%),
    radial-gradient(1.1px 1.1px at 72% 42%, rgba(176, 100, 255, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 48% 66%, rgba(214, 160, 255, 0.6), transparent 100%),
    radial-gradient(1px 1px at 90% 84%, rgba(176, 100, 255, 0.5), transparent 100%);
  background-size: 660px 660px;
  background-repeat: repeat;
  opacity: 0.4;
  animation: nxDustFloat 52s linear infinite reverse, nxTwinkle 7s ease-in-out 1.6s infinite;
}

@keyframes nxSmokeDrift {
  from { transform: translate3d(-2%, 1.2%, 0) scale(1); }
  to   { transform: translate3d(2%, -1.6%, 0) scale(1.07); }
}

@keyframes nxAuraBreathe {
  from { opacity: 0.7; transform: scaleY(1); }
  to   { opacity: 1;   transform: scaleY(1.12); }
}

@keyframes nxDustFloat {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-40px, -160px, 0); }
}

@keyframes nxTwinkle {
  0%, 100% { opacity: 0.32; }
  50%      { opacity: 0.62; }
}

/* ────────────────────────────────────────────────────────────
   2. SCROLL REVEAL (classes applied by noxus-parallax.js only,
   so content stays fully visible without JS)
   ──────────────────────────────────────────────────────────── */

.nx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.75s cubic-bezier(0.2, 0.65, 0.25, 1);
  will-change: opacity, transform;
}

.nx-reveal.nx-in {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ────────────────────────────────────────────────────────────
   3. PANEL CHROME — one consistent "expensive MMORPG panel"
   treatment for every homepage card surface.
   ──────────────────────────────────────────────────────────── */

.newsBlock,
.weeklyCardsWrap,
.homeEventPanel,
.djw-card,
.hallOfFameElectric,
.live-hof-card,
.mainHomeBlock .blockHome {
  border: 1px solid rgba(132, 58, 245, 0.42) !important;
  background:
    radial-gradient(130% 50% at 50% 0%, rgba(146, 60, 255, 0.13), transparent 52%),
    radial-gradient(90% 36% at 50% 102%, rgba(168, 50, 40, 0.07), transparent 60%),
    linear-gradient(172deg, rgba(17, 9, 33, 0.95), rgba(6, 3, 13, 0.98)) !important;
  box-shadow:
    inset 0 1px 0 rgba(246, 215, 120, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 26px rgba(112, 41, 220, 0.14) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newsBlock:hover,
.weeklyCardsWrap:hover,
.homeEventPanel:hover,
.djw-card:hover,
.hallOfFameElectric:hover,
.live-hof-card:hover,
.mainHomeBlock .blockHome:hover {
  border-color: rgba(246, 196, 110, 0.4) !important;
  box-shadow:
    inset 0 1px 0 rgba(246, 215, 120, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 22px 52px rgba(0, 0, 0, 0.6),
    0 0 38px rgba(140, 60, 255, 0.22) !important;
}

/* Live hero panels: same family, slightly tighter. */
.newone-live-card {
  border-color: rgba(145, 75, 255, 0.5) !important;
  box-shadow:
    inset 0 1px 0 rgba(246, 215, 120, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    0 16px 38px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(120, 45, 255, 0.16) !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.newone-live-card:hover {
  border-color: rgba(246, 196, 110, 0.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(246, 215, 120, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 20px 46px rgba(0, 0, 0, 0.56),
    0 0 34px rgba(150, 70, 255, 0.26) !important;
}

/* Section titles: gold ember underline for hierarchy. */
.h2-title {
  position: relative;
}

.h2-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 64px;
  height: 2px;
  background: linear-gradient(90deg, var(--nx-gold), rgba(182, 92, 255, 0.55), transparent);
  box-shadow: 0 0 10px rgba(246, 215, 120, 0.35);
  pointer-events: none;
}

/* Section divider lines: ornamental gradient rule. */
main span.line {
  display: block;
  height: 1px;
  max-width: 1100px;
  margin: 60px auto;
  border: 0;
  background: var(--nx-hairline) !important;
  box-shadow: 0 0 14px rgba(176, 78, 255, 0.25);
  opacity: 0.8;
}

/* ────────────────────────────────────────────────────────────
   4. FANTASY CTA BUTTONS — angled corners, gold inner trim,
   light sweep on hover. Applied to nav/global CTAs only
   (download-page CTAs carry the same pattern inline).
   ──────────────────────────────────────────────────────────── */

.newone-play,
.serverInfoButton,
.button-custom {
  position: relative;
  border-radius: 2px !important;
  clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px);
  border: 1px solid rgba(246, 215, 120, 0.32) !important;
  background: linear-gradient(170deg, #9a4dff 0%, #6d28d9 48%, #45129a 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 0 0 1px rgba(246, 215, 120, 0.16),
    inset 0 -10px 22px rgba(28, 4, 64, 0.55) !important;
  filter: drop-shadow(0 6px 18px rgba(118, 40, 230, 0.38));
  transition: filter 0.25s ease, transform 0.2s ease;
}

.newone-play::after,
.serverInfoButton::after,
.button-custom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.22) 47%, transparent 62%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
}

.newone-play:hover,
.serverInfoButton:hover,
.button-custom:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 26px rgba(140, 60, 255, 0.5)) brightness(1.08);
}

.newone-play:hover::after,
.serverInfoButton:hover::after,
.button-custom:hover::after {
  transform: translateX(130%);
}

.newone-play:active,
.serverInfoButton:active,
.button-custom:active {
  transform: translateY(0);
  filter: drop-shadow(0 4px 12px rgba(118, 40, 230, 0.4)) brightness(0.97);
}

/* Header nav: gold flare under the active hover. */
.newone-nav a::after {
  background: linear-gradient(90deg, transparent, var(--nx-gold), var(--nx-purple), transparent);
  box-shadow: 0 0 8px rgba(246, 215, 120, 0.5);
}

/* ────────────────────────────────────────────────────────────
   5. FOOTER — quiet, expensive close.
   ──────────────────────────────────────────────────────────── */

footer {
  position: relative;
  margin-top: 84px !important;
  border-top: 1px solid rgba(246, 215, 120, 0.16) !important;
  background: linear-gradient(180deg, rgba(13, 7, 24, 0.88), rgba(5, 2, 10, 0.97)) !important;
}

footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: var(--nx-hairline);
  box-shadow: 0 0 18px rgba(176, 78, 255, 0.4);
  pointer-events: none;
}

footer .h2-title span {
  color: var(--nx-gold) !important;
  font-family: "Cinzel", serif !important;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

footer .f-menu a {
  display: inline-block;
  padding: 2px 0;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
}

footer .f-menu a:hover {
  color: var(--nx-gold) !important;
  transform: translateX(4px);
  text-shadow: 0 0 12px rgba(246, 215, 120, 0.45);
}

footer .footerInfo {
  opacity: 0.85;
}

/* ────────────────────────────────────────────────────────────
   6. MOTION SAFETY + SMALL SCREENS
   ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* Depth layers stay visible but freeze their drift on small
     devices: cheaper paint, identical composition. */
  .nx-smoke::before,
  .nx-aura::before,
  .nx-dust::before,
  .nx-dust::after {
    animation: none;
  }

  body::after {
    opacity: 0.4;
  }

  main span.line {
    margin: 40px auto;
  }

  footer {
    margin-top: 56px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-smoke::before,
  .nx-aura::before,
  .nx-dust::before,
  .nx-dust::after,
  .newone-purple-fog,
  .newone-particle,
  .newone-bg img {
    animation: none !important;
  }

  .nx-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .newone-play::after,
  .serverInfoButton::after,
  .button-custom::after {
    display: none;
  }

  .newsBlock,
  .weeklyCardsWrap,
  .homeEventPanel,
  .djw-card,
  .newone-live-card,
  .hallOfFameElectric,
  .live-hof-card,
  .mainHomeBlock .blockHome,
  .newone-play,
  .serverInfoButton,
  .button-custom,
  footer .f-menu a {
    transition: none !important;
  }
}
