@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

:root {
  --gold:     #FFB400;
  --gold2:    #FFD700;
  --gold-dim: rgba(255,180,0,0.15);
  --bg:       #080808;
  --bg2:      #0f0f0f;
  --bg3:      #151515;
  --card:     rgba(20,18,14,0.85);
  --border:   rgba(255,180,0,0.12);
  --text:     #f5f5f5;
  --muted:    #888;
  --green:    #22c55e;
  --radius:   16px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════ NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ═══════════════════════════════ NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: rgba(8,8,8,0.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px) saturate(1.5);
}

.nav-logo { display:flex; align-items:center; gap:10px; text-decoration:none; }
.nav-logo img { height:44px; }

.nav-links { display:flex; gap:2.5rem; list-style:none; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .2s;
  border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #5865F2;
  color: #fff;
  padding: 0.5rem 1.3rem;
  border-radius: 99px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}
.nav-discord:hover { opacity: 0.88; transform: translateY(-1px); }

.nav-live-link {
  color: var(--gold) !important;
  background: rgba(255,180,0,.1);
  border: 1px solid rgba(255,180,0,.35);
  border-radius: 99px;
  padding: .32rem 1rem !important;
  font-size: .92rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  margin: 0 .6rem;
  box-shadow: 0 0 14px rgba(255,180,0,.12);
  transition: background .2s, box-shadow .2s !important;
}
.nav-live-link::after { display: none !important; }
.nav-live-link:hover {
  background: rgba(255,180,0,.18) !important;
  box-shadow: 0 0 22px rgba(255,180,0,.25) !important;
}
.nav-live-link.active {
  background: rgba(255,180,0,.15);
  border-color: rgba(255,180,0,.55);
}
.nav-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  animation: livePulse 1.2s ease-in-out infinite;
}

/* ═══════════════════════════════ 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 70% 50%, rgba(255,180,0,0.07) 0%, transparent 70%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,100,0,0.05) 0%, transparent 60%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,180,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,180,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 3rem 3rem;
  display: grid;
  grid-template-columns: 1fr 380px;
  align-items: center;
  gap: 3rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,180,0,0.12);
  border: 1px solid rgba(255,180,0,0.3);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.8rem;
}

.hero-title {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}

.hero-title .line2 {
  background: linear-gradient(90deg, var(--gold), var(--gold2), #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions { display:flex; gap:1rem; flex-wrap:wrap; }

.hero-logo {
  animation: heroFloat 5s ease-in-out infinite;
  filter: drop-shadow(0 0 60px rgba(255,180,0,0.4));
}
.hero-logo img { width: min(440px, 38vw); display:block; }

@keyframes heroFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-18px) rotate(1deg); }
}

/* ═══════════════════════════════ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .25s;
  letter-spacing: 0.01em;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  color: #000;
  box-shadow: 0 4px 24px rgba(255,180,0,0.35);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(255,180,0,0.5); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ═══════════════════════════════ STATS */
.stats-section {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, rgba(255,180,0,0.04), transparent);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}

.stat { display:flex; align-items:center; gap:1rem; }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,180,0,0.1);
  border: 1px solid rgba(255,180,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width:20px; height:20px; fill: var(--gold); }

.stat-num   { font-size: 1.6rem; font-weight: 800; display:block; line-height:1; }
.stat-label { font-size: 0.78rem; color: var(--muted); margin-top:0.2rem; display:block; }

/* ═══════════════════════════════ SECTIONS */
.section-wrap {
  position: relative;
  z-index: 1;
}

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 3rem;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,180,0,0.1);
  border: 1px solid rgba(255,180,0,0.25);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.2rem;
}
.section-eyebrow svg { width:12px; height:12px; fill:currentColor; }

.section-h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 520px; }

/* ═══════════════════════════════ ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.about-logo-wrap img {
  max-width: 320px;
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(255,180,0,0.5));
}

.about-float-badge {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

.about-float-badge svg { width:22px; height:22px; fill: var(--gold); }

/* ═══════════════════════════════ TEKMOVALCI */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.team-block {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.team-block:hover { border-color: rgba(255,180,0,0.35); transform: translateY(-4px); }

.team-block-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-bottom: 1px solid var(--border);
}

.team-color-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-block-name { font-weight: 800; font-size: 1rem; }

.team-players { padding: 0.8rem 0; }

.player-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  transition: background .2s;
}
.player-row:hover { background: rgba(255,255,255,0.03); }

.player-name { font-size: 0.9rem; font-weight: 600; }

.player-yt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ff4444;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: rgba(255,68,68,0.1);
  border: 1px solid rgba(255,68,68,0.2);
  transition: background .2s;
}
.player-yt:hover { background: rgba(255,68,68,0.2); }
.player-yt svg { width:14px; height:14px; fill:#ff4444; }

.about-list { list-style:none; margin-top:2rem; display:flex; flex-direction:column; gap:0.8rem; }
.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.about-list li svg { width:18px; height:18px; fill:var(--green); flex-shrink:0; }

/* ═══════════════════════════════ MINIGAMES */
.mg-section { background: var(--bg2); border-top:1px solid var(--border); }

.mg-header { text-align:center; margin-bottom:3.5rem; }
.mg-header .section-desc { margin: 0 auto; }

.mg-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mg-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 256 / 213;   /* matches exact poster image dimensions */
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform .35s, box-shadow .35s;
}

.mg-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,180,0,0.3);
}

.mg-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s, filter .5s;
}
.mg-card:hover img { transform: scale(1.08); filter: brightness(1.1); }

.mg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  transition: background .3s;
}
.mg-card:hover .mg-overlay { background: linear-gradient(to top, rgba(0,0,0,0.96) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.15) 100%); }

.mg-icon-wrap {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255,180,0,0.2);
  border: 1px solid rgba(255,180,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.mg-icon-wrap svg { width:18px; height:18px; fill:var(--gold); }

.mg-name { font-size:1rem; font-weight:800; margin-bottom:0.2rem; }
.mg-desc { font-size:0.75rem; color: rgba(255,255,255,0.6); line-height:1.5; }

/* ═══════════════════════════════ FORMAT */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}

.format-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  transition: border-color .3s, transform .3s;
}
.format-card:hover { border-color: rgba(255,180,0,0.35); transform: translateY(-3px); }

.format-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #ff8c00);
  color: #000;
  font-weight: 900;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.format-card h3 { font-size:0.95rem; font-weight:700; margin-bottom:0.3rem; }
.format-card p  { font-size:0.82rem; color:var(--muted); line-height:1.6; }

/* ═══════════════════════════════ FOOTER */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-brand img { height: 44px; margin-bottom: 1rem; filter: drop-shadow(0 0 20px rgba(255,180,0,0.4)); }
.footer-brand p { font-size:0.85rem; color:var(--muted); max-width:240px; line-height:1.6; }

.footer-nav h4 { font-size:0.8rem; font-weight:700; color:var(--gold); letter-spacing:0.1em; text-transform:uppercase; margin-bottom:1rem; }
.footer-nav ul { list-style:none; display:flex; flex-direction:column; gap:0.6rem; }
.footer-nav a { color:var(--muted); text-decoration:none; font-size:0.85rem; transition:color .2s; }
.footer-nav a:hover { color:var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ═══════════════════════════════ VOTE PAGE */
.vote-page { padding-top: 68px; min-height: 100vh; }

.vote-hero-section {
  background: linear-gradient(180deg, rgba(255,180,0,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  padding: 5rem 3rem 4rem;
  text-align: center;
}

.vs-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  max-width: 920px;
  margin: 3rem auto 2rem;
  padding: 0 2rem;
}

.team-card {
  background: var(--bg3);
  border: 2px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tc, var(--gold));
  opacity: 0;
  transition: opacity .3s;
}

.team-card:hover::before, .team-card.chosen::before { opacity:1; }
.team-card:hover { border-color: rgba(255,255,255,0.15); transform: translateY(-6px); }
.team-card.chosen { border-color: var(--tc, var(--gold)); box-shadow: 0 0 40px rgba(255,180,0,0.15); }

.tc-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tc, var(--gold));
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.tc-name { font-size: 1.9rem; font-weight: 900; color: var(--tc, var(--gold)); }

.vote-btn {
  width: 100%;
  padding: 0.9rem;
  border-radius: 99px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  background: var(--tc, var(--gold));
  color: #000;
  margin-top: 1.5rem;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.vote-btn svg { width:18px; height:18px; fill:#000; }
.vote-btn:hover:not(:disabled) { transform: scale(1.04); filter: brightness(1.1); }
.vote-btn:disabled { opacity:0.4; cursor:not-allowed; }

.bar-wrap { margin-top: 1.5rem; }
.bar-meta { display:flex; justify-content:space-between; font-size:0.8rem; color:var(--muted); margin-bottom:0.5rem; }
.bar-bg { height:8px; background:rgba(255,255,255,0.07); border-radius:99px; overflow:hidden; }
.bar-fill { height:100%; border-radius:99px; background:var(--tc, var(--gold)); transition:width .9s cubic-bezier(.4,0,.2,1); }
.bar-pct { font-size:1.3rem; font-weight:900; color:var(--tc, var(--gold)); margin-top:0.4rem; }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg3);
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
  flex-shrink: 0;
}

.notice-box {
  max-width: 540px;
  margin: 1.5rem auto;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.notice-box svg { width:20px; height:20px; flex-shrink:0; }
.notice-voted  { background:rgba(255,180,0,0.08); border:1px solid rgba(255,180,0,0.3); color:var(--gold); }
.notice-closed { background:rgba(255,80,80,0.08); border:1px solid rgba(255,80,80,0.3); color:#ff6060; }
.notice-closed svg { fill:#ff6060; }
.notice-voted svg  { fill:var(--gold); }

#toast {
  position: fixed;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 600;
  z-index: 999;
  display: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

/* ═══════════════════════════════ RESPONSIVE */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; text-align:center; }
  .hero-desc { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content:center; }
  .hero-logo { display:none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display:none; }
  .format-grid { grid-template-columns: 1fr; }
  .vs-layout { grid-template-columns: 1fr; }
  .vs-divider { display:none; }
}

@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display:none; }
  .section { padding: 5rem 1.5rem; }
  .stats-inner { padding: 2rem 1.5rem; }
  .mg-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { flex-direction:column; }
}
