/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #0a0c10;
  --bg-card: #111520;
  --bg-nav: #0d1018;
  --accent: #00c8ff;
  --accent2: #7b2fff;
  --text: #e0e6f0;
  --text-muted: #8a94a8;
  --border: #1e2535;
  --radius: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px;
}

.navbar-brand img { width: 36px; height: 36px; border-radius: 6px; }
.navbar-brand span { color: var(--accent); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: .95rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
}
.nav-cta:hover { background: #fff; color: #000 !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 80px 48px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent2);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: .2s;
}

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #fff; color: #000; }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); margin-left: 12px; }
.btn-outline:hover { background: var(--accent); color: #000; }

/* ===== SECTION ===== */
.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section-sm { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-header h2 span { color: var(--accent); }

/* ===== CARDS GRID ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-img { width: 100%; height: 200px; object-fit: cover; }

.card-body { padding: 20px; }

.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,200,255,.1);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.card-tag.rpg { color: #b97cff; background: rgba(123,47,255,.12); }
.card-tag.battle { color: #ff6b6b; background: rgba(255,107,107,.12); }
.card-tag.open-world { color: #ffb347; background: rgba(255,179,71,.12); }
.card-tag.tournament { color: #4cff91; background: rgba(76,255,145,.12); }

.card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--text-muted); margin-bottom: 16px; }

.card-meta { display: flex; align-items: center; gap: 12px; font-size: .8rem; color: var(--text-muted); }

.rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  color: #ffd700;
}

.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.read-more:hover { border-color: var(--accent); }

/* ===== TOURNAMENT SECTION ===== */
.tournament-section {
  background: linear-gradient(135deg, #0d1018 0%, #111a2e 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tournament-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tournament-inner img { border-radius: 12px; width: 100%; height: 340px; object-fit: cover; }

.tournament-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.tournament-text h2 span { color: var(--accent); }
.tournament-text p { color: var(--text-muted); margin-bottom: 20px; }

.tournament-list { list-style: none; margin-bottom: 28px; }
.tournament-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.tournament-list li:last-child { border-bottom: none; }
.tournament-list li::before { content: '▶'; color: var(--accent); font-size: .7rem; margin-top: 5px; flex-shrink: 0; }

/* ===== SUBSCRIBE SECTION ===== */
.subscribe-section {
  background: linear-gradient(135deg, #0f1520 0%, #131b30 100%);
  border-top: 1px solid var(--border);
}

.subscribe-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 24px;
  text-align: center;
}

.subscribe-inner h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 12px; }
.subscribe-inner h2 span { color: var(--accent); }
.subscribe-inner p { color: var(--text-muted); margin-bottom: 32px; }

.subscribe-form { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: 12px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}

.subscribe-form input[type="email"]:focus { border-color: var(--accent); }
.subscribe-form input[type="email"]::placeholder { color: var(--text-muted); }

.form-msg {
  margin-top: 16px;
  font-size: .9rem;
  min-height: 22px;
  color: #4cff91;
  display: none;
}

/* ===== ABOUT STRIP ===== */
.about-strip {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-inner img { border-radius: 12px; width: 100%; height: 320px; object-fit: cover; }
.about-text h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.about-text h2 span { color: var(--accent); }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }

/* ===== STATS ===== */
.stats-bar {
  background: var(--accent);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 16px;
}

.stat-item h3 { font-size: 2rem; font-weight: 800; color: #000; }
.stat-item p { font-size: .85rem; color: #000; opacity: .75; font-weight: 600; }

/* ===== CONTACT FORM ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: .95rem;
}

.contact-detail .icon {
  width: 36px;
  height: 36px;
  background: rgba(0,200,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-detail div strong { display: block; color: var(--text); font-size: .85rem; }
.contact-detail div span { color: var(--text-muted); font-size: .85rem; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: .95rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--bg-card); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #0d1018 0%, #111a2e 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
  text-align: center;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero h1 span { color: var(--accent); }
.page-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== POLICY PAGE ===== */
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px;
}

.policy-content h2 { font-size: 1.4rem; font-weight: 700; margin: 36px 0 12px; color: var(--accent); }
.policy-content h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.policy-content p { color: var(--text-muted); margin-bottom: 14px; }
.policy-content ul { padding-left: 20px; margin-bottom: 14px; }
.policy-content ul li { color: var(--text-muted); margin-bottom: 6px; }
.policy-last-updated { font-size: .85rem; color: var(--text-muted); margin-bottom: 32px; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 60px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p { color: var(--text-muted); font-size: .9rem; margin-top: 12px; max-width: 280px; }

.footer-col h4 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: .9rem; }
.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== COOKIE BANNER ===== */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #111a2e;
  border-top: 2px solid var(--accent);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 999;
  font-size: .9rem;
}

#cookie-banner p { color: var(--text-muted); flex: 1; min-width: 240px; }
#cookie-banner a { color: var(--accent); }

.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

.btn-cookie-accept {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  font-size: .9rem;
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
}

/* ===== TOURNAMENTS PAGE ===== */
.tournament-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: border-color .2s;
}

.tournament-card:hover { border-color: var(--accent); }
.tournament-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.tournament-card p { color: var(--text-muted); font-size: .9rem; margin-bottom: 16px; }

.t-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--text-muted); margin-bottom: 16px; }
.t-meta span { display: flex; align-items: center; gap: 5px; }

.status-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}

.status-open { background: rgba(76,255,145,.12); color: #4cff91; }
.status-upcoming { background: rgba(0,200,255,.1); color: var(--accent); }
.status-closed { background: rgba(255,107,107,.1); color: #ff6b6b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .tournament-inner,
  .about-inner,
  .contact-grid { grid-template-columns: 1fr; }
  .tournament-inner img,
  .about-inner img { height: 240px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-nav); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-content { padding: 60px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
}
