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

:root {
  --bg: #080b14;
  --bg2: #0d1120;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --gold: #f59e0b;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-2px); }

.btn-ghost {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--accent2); background: rgba(124,58,237,0.15); }

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}
#navbar.scrolled {
  background: rgba(8,11,20,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
}
.logo span { color: var(--accent2); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.btn-nav {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 600 !important;
}
.btn-nav:hover { background: var(--accent2); }
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(124,58,237,0.25) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(168,85,247,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #080b14 0%, #0d0618 100%);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  padding-top: 80px;
}
.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 16px;
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-desc {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block; width: 2px; height: 48px;
  background: linear-gradient(to bottom, var(--accent2), transparent);
  margin: 0 auto;
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ── SECTION COMMON ── */
section { padding: 100px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}
.section-desc { color: var(--muted); margin-top: 12px; max-width: 500px; margin-left: auto; margin-right: auto; }
.label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 12px;
}

/* ── GAMES ── */
.games { background: var(--bg2); }
.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.game-card.featured { grid-column: span 2; grid-row: span 1; }
.game-img {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: pointer;
}
.game-card.featured .game-img { aspect-ratio: 16/9; }
.game-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.game-img:hover .game-overlay { opacity: 1; }
.game-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
  width: fit-content;
}
.game-overlay h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.game-card.featured .game-overlay h3 { font-size: 2rem; }
.game-overlay p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.btn-game {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent2);
  border-bottom: 1px solid var(--accent2);
  padding-bottom: 2px;
  width: fit-content;
  transition: color 0.2s;
}

/* ── ABOUT ── */
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
}
.about-text p { color: var(--muted); margin-bottom: 16px; }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px;
}
.stat span {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent2);
}
.stat p { font-size: 0.85rem; color: var(--muted); }

.about-visual { display: flex; justify-content: center; align-items: center; }
.visual-box {
  width: 320px; height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.vb-inner { position: relative; width: 200px; height: 200px; }
.vb-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(124,58,237,0.4);
  animation: spin 8s linear infinite;
}
.vb-ring.r2 {
  inset: 20px;
  border-color: rgba(168,85,247,0.3);
  animation-duration: 5s;
  animation-direction: reverse;
}
.vb-core {
  position: absolute; inset: 40px;
  background: radial-gradient(circle, rgba(124,58,237,0.3), rgba(8,11,20,0.8));
  border-radius: 50%;
  border: 1px solid rgba(168,85,247,0.5);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NEWS ── */
.news { background: var(--bg2); }
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}
.news-card.big { grid-row: span 2; }
.news-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.news-card:hover { border-color: rgba(124,58,237,0.4); transform: translateY(-3px); }
.news-date { font-size: 0.78rem; color: var(--muted); margin-bottom: 10px; }
.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 2px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.news-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card.big h3 { font-size: 1.6rem; }
.news-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.news-card a { font-size: 0.85rem; color: var(--accent2); font-weight: 500; }

/* ── CAREERS ── */
.roles-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px;
}
.role-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}
.role-card:hover { border-color: rgba(124,58,237,0.5); transform: translateY(-4px); }
.role-icon { font-size: 2rem; display: block; margin-bottom: 12px; }
.role-card h4 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.role-card p { font-size: 0.8rem; color: var(--muted); margin-bottom: 14px; }
.role-card a { font-size: 0.85rem; color: var(--accent2); font-weight: 500; }
.careers-cta { text-align: center; }

/* ── CONTACT ── */
.contact { background: var(--bg2); }
.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-text h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-text p { color: var(--muted); margin-bottom: 28px; }
.contact-info { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-info li { color: var(--muted); font-size: 0.95rem; }
.contact-info a { color: var(--accent2); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form select option { background: #1a1a2e; }
.contact-form textarea { resize: vertical; }

/* ── FOOTER ── */
footer {
  background: #050710;
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 60px; padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 0.85rem; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-links h5 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .game-card.featured { grid-column: span 2; }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(8,11,20,0.97); padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: block; }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.big { grid-row: span 1; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .games-grid { grid-template-columns: 1fr; }
  .game-card.featured { grid-column: span 1; }
  .roles-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; }
}

/* ── GAME BUTTONS ── */
.game-btns { display: flex; gap: 16px; align-items: center; }
.btn-play {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 7px 16px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s;
}
.btn-play:hover { background: var(--accent2); transform: translateY(-2px); }

/* ── AUTH MODAL ── */
.auth-overlay {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.auth-overlay.hidden { display: none; }

.auth-modal {
  background: #0f1221;
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 12px;
  padding: 48px 40px;
  width: 100%; max-width: 420px;
  position: relative;
  box-shadow: 0 0 60px rgba(124,58,237,0.2);
}
.auth-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--muted);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
}
.auth-close:hover { color: #fff; }

.auth-panel.hidden { display: none; }

.auth-logo {
  font-family: var(--font-head);
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.1em; margin-bottom: 20px;
}
.auth-logo span { color: var(--accent2); }

.auth-modal h2 {
  font-family: var(--font-head);
  font-size: 1.8rem; font-weight: 700; margin-bottom: 6px;
}
.auth-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; }

.field { margin-bottom: 14px; }
.field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--accent); }

.auth-error {
  font-size: 0.82rem; color: #f87171;
  min-height: 18px; margin-bottom: 10px;
}
.w100 { width: 100%; }
.auth-switch { font-size: 0.85rem; color: var(--muted); margin-top: 20px; text-align: center; }
.auth-switch a { color: var(--accent2); }

.success-icon { font-size: 3rem; margin-bottom: 16px; }

/* nav user display */
.nav-user {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.85rem; color: var(--muted);
}
.nav-user span { color: var(--accent2); font-weight: 600; }
.nav-user a { font-size: 0.8rem; color: var(--muted); }
.nav-user a:hover { color: #fff; }
