:root {
  color-scheme: dark;
  --ngx-midnight: #08142b;
  --ngx-indigo: #5a9dff;
  --ngx-coral: #ff957f;
  --ngx-turquoise: #4df1dd;
  --ngx-sand: #fdf6ef;
  --ngx-slate: #b9cae4;
  --ngx-ink: #0f1f38;
  --ngx-card: rgba(20, 36, 68, 0.78);
  --ngx-glass: rgba(25, 46, 84, 0.6);
  --ngx-border: rgba(255, 255, 255, 0.16);
  --ngx-gradient: linear-gradient(120deg, rgba(90, 157, 255, 0.95), rgba(77, 241, 221, 0.85));
  --ngx-radius-lg: 32px;
  --ngx-radius-md: 20px;
  --ngx-shadow: 0 25px 70px rgba(5, 11, 21, 0.65);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Manrope', 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(180deg, rgba(8, 16, 35, 0.95), rgba(5, 10, 22, 0.95));
  color: #f5fbff;
  line-height: 1.6;
  min-height: 100vh;
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(77, 241, 221, 0.18), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(90, 157, 255, 0.25), transparent 55%),
    radial-gradient(circle at 40% 80%, rgba(255, 149, 127, 0.18), transparent 60%),
    #040b18;
  animation: ngxDrift 24s infinite alternate ease-in-out;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/assets/images/sections/games-sheen.webp') center/cover;
  opacity: 0.06;
  filter: blur(10px);
  z-index: -1;
}

@keyframes ngxDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-2%, 1%, 0) scale(1.02); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  position: relative;
  overflow: hidden;
}

.ngx-shell {
  width: min(1200px, 92vw);
  margin: 0 auto;

}

.ngx-top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 16px 0;
  background: rgba(3, 7, 15, 0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--ngx-border);
}

.ngx-brand-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ngx-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.ngx-brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.ngx-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  transition: opacity 0.3s ease;
}

.ngx-nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ngx-slate);
  transition: color 0.3s ease, background 0.3s ease;
}

.ngx-nav-links a:hover,
.ngx-nav-links a:focus-visible,
.ngx-nav-links a[aria-current='page'] {
  background: rgba(63, 125, 244, 0.18);
  color: #fff;
}

.ngx-menu-trigger {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--ngx-border);
  background: var(--ngx-card);
  color: #fff;
  font-size: 1.25rem;
}

.ngx-hero {
  margin-top: 30px;
  padding:40px 20px;
  display: grid;
  gap: 32px;
  position: relative;
}

.ngx-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--ngx-radius-lg);
  background: linear-gradient(145deg, rgba(8, 22, 44, 0.9), rgba(6, 16, 33, 0.92)),
    url('/assets/images/main/hero-surge.webp') center/cover;
  filter: brightness(1.1);
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ngx-hero-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ngx-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--ngx-coral);
  background: rgba(255, 122, 102, 0.15);
}

.ngx-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  max-width: 700px;
}

.ngx-hero p {
  max-width: 560px;
  color: var(--ngx-slate);
}

.ngx-cta-cluster {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ngx-cta-primary,
.ngx-cta-ghost {
  padding: 16px 28px;
  border-radius: 18px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ngx-cta-slim {
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.ngx-cta-primary {
  background: var(--ngx-gradient);
  color: #050b15;
  box-shadow: 0 15px 35px rgba(42, 122, 188, 0.4);
}

.ngx-cta-primary:hover {
  transform: translateY(-2px);
}

.ngx-cta-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.ngx-mini-card {
  padding: 24px;
  border-radius: var(--ngx-radius-md);
  background: var(--ngx-card);
  border: 1px solid var(--ngx-border);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.ngx-mini-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(10, 20, 40, 0.45);
  border-color: rgba(255, 255, 255, 0.2);
}

.ngx-mini-card strong {
  color: var(--ngx-turquoise);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ngx-mini-card footer {
  margin-top: auto;
}

.ngx-badge-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}

.ngx-badge-row span {
  padding: 10px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  text-align: center;
}

.ngx-section {
  margin-top: 80px;
}

.ngx-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.ngx-section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
}

.ngx-section-header p {
  max-width: 520px;
  color: var(--ngx-slate);
}

.ngx-grid {
  margin-top: 36px;
  display: grid;
  gap: 24px;
}


.ngx-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.ngx-grid--two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.ngx-card {
  padding: 28px;
  border-radius: var(--ngx-radius-md);
  background: var(--ngx-glass);
  border: 1px solid var(--ngx-border);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;


}

@media (max-width:600px) {
  .ngx-card {
    padding: 25px 10px;
  }
  .ngx-quiz {
        padding: 25px 10px;
  }

  .ngx-grid--two {
    grid-template-columns:none;
  }
}

.ngx-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.ngx-card:hover::after {
  opacity: 1;
}

.ngx-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 30px 60px rgba(8, 15, 30, 0.55);
}

.ngx-card--action {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.ngx-card--action footer {
  margin-top: auto;
}

.ngx-card h3 {
  margin-bottom: 8px;
}

.ngx-card p {
  color: var(--ngx-slate);
}

.ngx-game-media {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ngx-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ngx-stats span {
  font-weight: 600;
  color: var(--ngx-turquoise);
}

.ngx-quiz {
  padding: 28px;
  border-radius: var(--ngx-radius-lg);
  background: radial-gradient(circle at top, rgba(63, 125, 244, 0.25), rgba(5, 11, 21, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ngx-quiz h3 {
  margin-bottom: 12px;
}

.ngx-quiz ol {
  margin-left: 20px;
  color: var(--ngx-slate);
}

.ngx-quiz li {
  margin-bottom: 12px;
}

.ngx-quiz mark {
  background: rgba(43, 228, 208, 0.15);
  color: var(--ngx-turquoise);
  padding: 0 6px;
  border-radius: 6px;
}

.ngx-highlight-strip {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.ngx-highlight-strip article {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.ngx-games-zone {
  background: linear-gradient(180deg, rgba(10, 24, 51, 0.92), rgba(6, 16, 33, 0.95)),
    url('/assets/images/sections/games-sheen.webp') center/cover;
  border-radius: var(--ngx-radius-lg);
  padding: 64px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ngx-games-zone .ngx-grid {
  margin-top: 32px;
}

.ngx-game-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ngx-game-card footer {
  margin-top: auto;
}

.ngx-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(63, 125, 244, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--ngx-indigo);
}

.ngx-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ngx-turquoise);
  font-weight: 600;
}

.ngx-about-panel {
  background: linear-gradient(145deg, rgba(10, 24, 47, 0.95), rgba(6, 15, 32, 0.9)),
    url('/assets/images/sections/about-lagoon.webp') center/cover;
  border-radius: var(--ngx-radius-lg);
  padding: 60px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ngx-faq {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.ngx-faq details {
  border-radius: 18px;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ngx-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.ngx-faq p {
  margin-top: 10px;
  color: var(--ngx-slate);
}

.ngx-contact-plane {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  background: linear-gradient(130deg, rgba(10, 25, 49, 0.92), rgba(6, 12, 26, 0.9)),
    url('/assets/images/sections/contact-tide.webp') center/cover;
  border-radius: var(--ngx-radius-lg);
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ngx-contact-plane form {
  display: grid;
  gap: 18px;
}

.ngx-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ngx-field label {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ngx-field input,
.ngx-field textarea,
.ngx-field select {
  background: rgba(8, 22, 41, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 18px;
  color: #fff;
  font-size: 1rem;
}

.ngx-field textarea {
  min-height: 140px;
  resize: vertical;
}

.ngx-submit {
  border: none;
  cursor: pointer;
}

.ngx-policy-section {
  background: rgba(5, 15, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--ngx-radius-lg);
  padding: 40px;
  margin-top: 30px;
}

.ngx-policy-section h3 {
  margin-top: 20px;
  margin-bottom: 12px;
}

.ngx-policy-section ul,
.ngx-policy-section ol {
  padding-left: 20px;
  color: var(--ngx-slate);
}

.ngx-policy-section li {
  margin-bottom: 10px;
}

.ngx-footer {
  margin-top: 80px;
  border-top: 1px solid var(--ngx-border);
  padding: 32px 0 60px;
  display: grid;
  gap: 12px;
  color: var(--ngx-slate);
}

.ngx-footer a {
  color: var(--ngx-turquoise);
}

.ngx-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ngx-floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ngx-floating-icons span {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(43, 228, 208, 0.45);
  animation: floaty 12s linear infinite;
}

@keyframes floaty {
  from { transform: translateY(0) scale(1); opacity: 0; }
  20% { opacity: 0.6; }
  to { transform: translateY(-160px) scale(1.8); opacity: 0; }
}

.ngx-floating-icons span:nth-child(2) {
  left: 30%;
  animation-delay: 3s;
}

.ngx-floating-icons span:nth-child(3) {
  left: 70%;
  animation-delay: 6s;
}

.ngx-floating-icons span:nth-child(4) {
  left: 85%;
  animation-delay: 1.5s;
}

.ngx-floating-icons span:nth-child(5) {
  left: 10%;
  animation-delay: 4.5s;
}

.ngx-scroll-hint {
  position: absolute;
  bottom: 24px;
  right: 24px;
  font-size: 0.85rem;
  color: var(--ngx-slate);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2em;
}

.ngx-scroll-hint::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--ngx-turquoise);
  animation: pulseLine 2.5s infinite;
}

@keyframes pulseLine {
  0% { transform: scaleX(0); opacity: 0; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0); opacity: 0; }
}

@keyframes ngxPulse {
  0% { box-shadow: 0 0 0 rgba(90, 157, 255, 0); }
  50% { box-shadow: 0 25px 60px rgba(90, 157, 255, 0.25); }
  100% { box-shadow: 0 0 0 rgba(90, 157, 255, 0); }
}

@keyframes ngxGlow {
  0% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
  100% { opacity: 0.85; transform: translateY(0); }
}

.ngx-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 10, 22, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 99;
}

.ngx-modal.is-visible {
  opacity: 1;
  visibility: visible;
}

.ngx-modal-box {
  background: rgba(12, 24, 48, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--ngx-radius-lg);
  padding: 32px;
  width: min(420px, 90vw);
  position: relative;
  animation: ngxPulse 12s ease-in-out infinite;
}

.ngx-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

.ngx-modal-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ngx-card,
.ngx-mini-card {
  will-change: transform;
}

@media (max-width: 1200px) {
  .ngx-shell {
    width: min(1100px, 94vw);
  }
}

@media (max-width: 991px) {
  .ngx-nav-links {
    position: absolute;
    inset: 0;
    top: 70px;
    height: max-content;
    flex-direction: column;
    justify-content: flex-start;
    padding: 60px 24px;
    background: rgba(3, 7, 15, 0.98);
    backdrop-filter: blur(18px);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  .ngx-nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .ngx-menu-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ngx-games-zone,
  .ngx-about-panel,
  .ngx-contact-plane {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .ngx-hero {
    padding: 60px 20px 80px;
  }

  .ngx-shell {
    width: 92vw;
  }

  .ngx-section {
    margin-top: 60px;
  }

  .ngx-games-zone {
    padding: 32px 18px;
  }

  .ngx-games-zone .ngx-grid--two,
  .ngx-games-zone .ngx-grid--three {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .ngx-games-zone .ngx-grid {
    margin-top: 24px;
  }
}

@media (max-width: 560px) {
  .ngx-cta-cluster {
    flex-direction: column;
  }

  .ngx-contact-plane {
    padding: 20px;
    grid-template-columns:none;
  }

  .ngx-policy-section {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .ngx-card {
    animation: ngxPulse 18s ease-in-out infinite;
  }

  .ngx-mini-card {
    animation: ngxGlow 16s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
