/* NXGEN FC - motion and polish layer (loaded after style.css). Everything is subtle and switched off for
   people who ask their phone for less motion. */
:root { --nx-ease: cubic-bezier(.2,.8,.2,1); }

/* Scroll reveal: only when the script is running (html.nx-js), so nothing is hidden without JavaScript. */
html.nx-js .nx-rv { opacity: 0; transform: translateY(10px); transition: opacity .35s ease-out, transform .35s ease-out; transition-delay: var(--nx-d, 0s); }
html.nx-js .nx-rv.nx-in { opacity: 1; transform: none; }

/* Cards lift and glow a little under the finger / mouse. */
.card, .glass-tile, .soccer-card { transition: transform .35s var(--nx-ease), box-shadow .35s var(--nx-ease), border-color .35s; }
@media (hover: hover) {
    .card:hover, .glass-tile:hover, .soccer-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(212,175,55,.25); }
}

/* Gold buttons: a light sweep, and a press effect. */
.btn-gold, .btn-primary { position: relative; overflow: hidden; transition: transform .15s, box-shadow .25s, filter .25s; }
.btn-gold::after, .btn-primary::after { content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); pointer-events: none; }
@media (hover: hover) { .btn-gold:hover::after, .btn-primary:hover::after { animation: nx-sweep .9s var(--nx-ease); } .btn-gold:hover { box-shadow: 0 0 18px rgba(212,175,55,.55); } }
.btn-gold:active, .btn-primary:active { transform: scale(.96); }
@keyframes nx-sweep { to { left: 140%; } }

/* Tap ripple. */
.nx-ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255,255,255,.35); animation: nx-ripple .6s linear; pointer-events: none; }
@keyframes nx-ripple { to { transform: scale(3.2); opacity: 0; } }

/* Big gold titles shimmer slowly. */
h1.cinzel { background: linear-gradient(90deg, #b8860b, #f5d77a 30%, #d4af37 50%, #fff3c4 60%, #b8860b 90%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: nx-shine 7s linear 1; }
@keyframes nx-shine { to { background-position: -250% center; } }

/* Page entrance and the top loading bar between pages. */

@keyframes nx-page { from { opacity: 0; } to { opacity: 1; } }
#nx-bar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 99999; background: linear-gradient(90deg, #d4af37, #fff3c4, #d4af37); box-shadow: 0 0 10px #d4af37; transition: width 2.5s var(--nx-ease), opacity .3s; }
#nx-bar.go { width: 85%; }

/* Win / loss form bubbles pop in. */
html.nx-js .nx-pop { animation: nx-pop .5s var(--nx-ease) both; animation-delay: var(--nx-d, 0s); }
@keyframes nx-pop { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } to { transform: scale(1); opacity: 1; } }

/* Nice scrollbars and selection. */
::selection { background: rgba(212,175,55,.45); color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #d4af37 #0b0f1a; }

/* Badges breathe. */
.nx-badge { animation: nx-breathe 3s ease-in-out 3; }
@keyframes nx-breathe { 50% { box-shadow: 0 0 14px rgba(212,175,55,.7); } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html.nx-js .nx-rv { opacity: 1; transform: none; }
}


/* A light passes over a card under the mouse (not all the time: that would slow phones down). */
@media (hover: hover) {
    .glass-tile { position: relative; }
    .glass-tile:hover { box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 18px rgba(212,175,55,.18); }
}

/* The logo floats gently, the live dot pulses. */

@keyframes nx-float { 50% { transform: translateY(-4px); } }
.nav-links .fa-circle { animation: nx-live 1.2s ease-in-out infinite; }
@keyframes nx-live { 50% { opacity: .3; } }

/* Speed: the blur behind every tile made scrolling heavy on phones (each tile re-blurs the page under it).
   The tiles are almost opaque anyway, so a solid background looks the same. */
.glass-tile { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(13, 18, 31, 0.94); }
.nx-rv { will-change: opacity, transform; }
.nx-rv.nx-in { will-change: auto; }

/* While a video plays full screen, every animation of the page stops (they kept the laptop busy and the video
   stuttered). */
html.nx-fs *, html.nx-fs *::before, html.nx-fs *::after { animation-play-state: paused !important; transition: none !important; }
html.nx-fs body::before { display: none; }
