:root {
  --cyan: #8eeeff;
  --violet: #7858ec;
  --magenta: #ff75d1;
}

* { scrollbar-width: thin; scrollbar-color: rgba(120,88,236,0.6) #0b0726; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0b0726; }
::-webkit-scrollbar-thumb { background: linear-gradient(#7858ec, #8eeeff); border-radius: 8px; }

body {
  background-color: #060317;
  color: #e6e6f2;
  font-family: 'Open Sans', 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

h1,h2,h3,h4,.font-brand { font-family: 'Nova Square', 'Nova Flat', sans-serif; }

/* Radial glow backgrounds */
.glow-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(120, 88, 236, 0.35), transparent 45%),
    radial-gradient(circle at 80% 30%, rgba(142, 238, 255, 0.3), transparent 45%);
}
.glow-section {
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 88, 236, 0.22), transparent 55%);
}
.glow-live {
  box-shadow: 0 0 40px rgba(142, 238, 255, 0.3), 0 0 80px rgba(142, 238, 255, 0.12);
}

/* Text gradients */
.text-gradient {
  background: linear-gradient(90deg, #8eeeff, #7858ec, #ff75d1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.text-gradient-primary {
  background: linear-gradient(90deg, #7858ec, #8eeeff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.animated-gradient-text {
  background: linear-gradient(90deg, #8eeeff, #7858ec, #ff75d1, #8eeeff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientFlow 6s ease-in-out infinite;
}
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Buttons & CTA */
.btn-gradient {
  background-image: linear-gradient(90deg, #7858ec, #8eeeff);
  background-size: 150% 100%;
  transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 25px rgba(120, 88, 236, 0.4);
  color: #060317;
  font-weight: 700;
}
.btn-gradient:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
  box-shadow: 0 8px 35px rgba(142, 238, 255, 0.4);
}
.btn-gradient:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }
.btn-ghost {
  border: 2px solid transparent;
  background: linear-gradient(#060317, #060317) padding-box,
              linear-gradient(90deg, #7858ec, #8eeeff) border-box;
  transition: transform 0.2s ease, box-shadow 0.4s ease;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(142, 238, 255, 0.25);
}

/* Gradient border cards */
.card-gradient-border {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(#0b0726, #0b0726) padding-box,
    linear-gradient(135deg, #7858ec, #8eeeff) border-box;
  transition: transform 0.3s ease, box-shadow 0.4s ease;
}
.card-gradient-border:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 45px rgba(120, 88, 236, 0.35), 0 0 30px rgba(142, 238, 255, 0.15);
}

/* Live badge */
.badge-live {
  background: rgba(6, 3, 23, 0.8);
  border: 1px solid rgba(142, 238, 255, 0.6);
  color: #8eeeff;
  box-shadow: 0 0 20px rgba(142, 238, 255, 0.6), 0 0 45px rgba(142, 238, 255, 0.25);
  text-shadow: 0 0 12px rgba(142, 238, 255, 0.9);
  letter-spacing: 0.18em;
}
.badge-live .dot { animation: pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(142,238,255,0.7); }
  50% { opacity: 0.4; box-shadow: 0 0 0 8px rgba(142,238,255,0); }
}

.badge-closed {
  background: rgba(255, 117, 209, 0.08);
  border: 1px solid rgba(255, 117, 209, 0.6);
  color: #ff75d1;
  text-shadow: 0 0 12px rgba(255, 117, 209, 0.7);
  letter-spacing: 0.18em;
}

/* Nav links */
.nav-link { position: relative; transition: color 0.2s; }
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -4px;
  height: 2px; width: 0;
  background: linear-gradient(90deg, #7858ec, #8eeeff);
  transition: width 0.3s ease;
}
.nav-link:hover { color: #8eeeff; }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #8eeeff; }
.nav-link.active::after { width: 100%; }

/* Team cards */
.team-card { position: relative; overflow: hidden; }
.team-card .overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(120,88,236,0.95));
  transform: translateY(101%);
  transition: transform 0.3s ease;
}
.team-card:hover .overlay { transform: translateY(0); }

/* Social icons */
.social-icon { transition: all 0.3s ease; }
.social-icon:hover { color: #8eeeff; transform: translateY(-3px); filter: drop-shadow(0 0 10px rgba(142,238,255,0.5)); }

/* Form */
.form-field {
  background: rgba(11, 7, 38, 0.6);
  border: 1px solid transparent;
  background-image: linear-gradient(#0b0726, #0b0726) padding-box,
                    linear-gradient(90deg, #7858ec, #8eeeff) border-box;
  color: #fff;
}
.form-field::placeholder { color: rgba(255,255,255,0.35); }
.form-field:focus { outline: 2px solid rgba(142,238,255,0.5); }

/* Buton ochi – ascunde/afișează competiția */
.loolish-eye {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; flex: none; margin-left: .75rem;
  border: 1px solid transparent;
  background: linear-gradient(#0b0726, #0b0726) padding-box,
              linear-gradient(90deg, #7858ec, #8eeeff) border-box;
  border-radius: .85rem; font-size: 1.1rem; cursor: pointer;
  transition: transform .2s ease, box-shadow .3s ease;
}
.loolish-eye:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(142, 238, 255, 0.35);
}
.loolish-eye-closed { display: none !important; }

/* Stare colapsată: doar titlul, jocul și ochiul */
article.loolish-collapsed .loolish-card-body,
article.loolish-collapsed .badge-live,
article.loolish-collapsed .badge-closed,
article.loolish-collapsed .loolish-eye-open { display: none !important; }
article.loolish-collapsed .loolish-eye-closed { display: inline-flex !important; }
article.loolish-collapsed { padding-bottom: 1.25rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}