:root {
  --bg: #07100c;
  --bg-soft: #0d1b14;
  --panel: rgba(16, 34, 25, 0.88);
  --panel-2: rgba(10, 21, 16, 0.94);
  --text: #f3fff7;
  --muted: #a9bdb0;
  --lime: #61f20f;
  --lime-soft: #b6ff8d;
  --purple: #9b5cff;
  --red: #ff335f;
  --gold: #ffd45e;
  --silver: #d7e2e7;
  --bronze: #e99b5d;
  --line: rgba(172,255,127,.18);
  --shadow: 0 18px 55px rgba(0,0,0,.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(97,242,15,.12), transparent 26%),
    radial-gradient(circle at 88% 12%, rgba(155,92,255,.11), transparent 25%),
    linear-gradient(180deg, #06100b 0%, #08120e 55%, #050a07 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(5, 13, 9, .84);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .02em;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #061006;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--lime), #d9ffbd);
  box-shadow: 0 0 28px rgba(97,242,15,.25);
}
.brand span small { display: block; color: var(--lime); font-size: .7rem; letter-spacing: .16em; }

.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 700; }
.nav-links a:hover, .nav-links a.active { color: var(--lime); }

.menu-btn {
  display: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
}

.container { width: min(1180px, calc(100% - 32px)); margin: auto; }
.section { padding: 84px 0; }
.section-tight { padding: 54px 0; }

.hero {
  min-height: 75vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(97,242,15,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97,242,15,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000 10%, transparent 90%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; }
.eyebrow { color: var(--lime); text-transform: uppercase; font-weight: 900; letter-spacing: .18em; font-size: .78rem; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 18px; }
h1 { font-size: clamp(3rem, 7vw, 6.6rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.035em; }
h3 { font-size: 1.25rem; }
.hero-copy p { max-width: 680px; color: var(--muted); font-size: 1.08rem; }
.gradient-text { background: linear-gradient(90deg, var(--lime), #fff, var(--purple)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary { color: #071007; background: linear-gradient(135deg, var(--lime), #d5ffba); }
.btn-secondary { background: rgba(255,255,255,.035); border-color: var(--line); color: var(--text); }
.btn:hover { transform: translateY(-1px); }

.hero-card, .card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18,39,28,.88), rgba(8,19,13,.9));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-card { padding: 24px; transform: rotate(1deg); }
.live-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--lime-soft); font-weight: 800; font-size: .82rem; }
.live-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
.score-preview { margin-top: 22px; display: grid; gap: 10px; }
.score-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: rgba(255,255,255,.035); border-radius: 14px; }
.rank { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: rgba(97,242,15,.12); color: var(--lime); font-weight: 900; }

.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 34px; }
.stat { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.stat strong { display: block; font-size: 2rem; color: var(--lime); }
.stat span { color: var(--muted); font-size: .9rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.card { padding: 26px; }
.card p, .muted { color: var(--muted); }
.icon-badge { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(97,242,15,.1); color: var(--lime); font-size: 1.3rem; margin-bottom: 18px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-head p { max-width: 620px; color: var(--muted); margin: 0; }

.roadmap { display: grid; gap: 14px; }
.roadmap-item { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.roadmap-item strong { color: var(--lime); }

.banner {
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid rgba(155,92,255,.25);
  background: linear-gradient(120deg, rgba(97,242,15,.1), rgba(155,92,255,.12));
}

.page-hero { padding: 80px 0 44px; }
.page-hero p { max-width: 760px; color: var(--muted); font-size: 1.05rem; }

.tabs, .filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.tab-btn { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); padding: 10px 14px; border-radius: 12px; font-weight: 800; cursor: pointer; }
.tab-btn.active { color: #061006; background: var(--lime); }

.tournament-panel { display: none; }
.tournament-panel.active { display: block; }
.tournament-header { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.status { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: .78rem; font-weight: 900; background: rgba(97,242,15,.1); color: var(--lime-soft); }
.status.partial { background: rgba(255,212,94,.1); color: var(--gold); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; min-width: 720px; background: rgba(4,10,7,.45); }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--lime-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: rgba(97,242,15,.045); }
tr:hover td { background: rgba(255,255,255,.02); }
.player-link { color: var(--text); font-weight: 900; background: none; border: 0; padding: 0; cursor: pointer; }
.player-link:hover { color: var(--lime); }
.medal-1 { color: var(--gold); } .medal-2 { color: var(--silver); } .medal-3 { color: var(--bronze); }

.form-control { width: 100%; background: rgba(255,255,255,.035); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; }
select.form-control option { background: #0c1710; }
.filter-bar .form-control { width: auto; min-width: 220px; }

.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.72); z-index: 80; }
.modal.open { display: flex; }
.modal-card { width: min(650px,100%); max-height: 90vh; overflow: auto; background: #0c1811; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.modal-close { float: right; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 10px; padding: 8px 11px; cursor: pointer; }
.profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 22px 0; }
.profile-stat { padding: 14px; border-radius: 14px; background: rgba(255,255,255,.035); }
.profile-stat strong { display: block; color: var(--lime); font-size: 1.35rem; }

.mind-map { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.resource-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
textarea.form-control { min-height: 150px; resize: vertical; }

.site-footer { padding: 46px 0 28px; border-top: 1px solid var(--line); background: rgba(2,7,4,.65); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 28px; }
.footer-grid h4 { margin: 0 0 12px; }
.footer-grid a { display: block; color: var(--muted); margin: 7px 0; }
.footer-grid a:hover { color: var(--lime); }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; gap: 16px; }

.notice { border-left: 3px solid var(--gold); padding: 13px 16px; background: rgba(255,212,94,.06); color: #ffe9a8; border-radius: 0 12px 12px 0; }

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: absolute; top: 76px; left: 16px; right: 16px; padding: 16px; background: #0b1710; border: 1px solid var(--line); border-radius: 16px; flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .menu-btn { display: block; }
}

@media (max-width: 640px) {
  .section { padding: 62px 0; }
  h1 { font-size: 3.1rem; }
  .grid-2, .grid-3, .grid-4, .contact-grid, .profile-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section-head, .tournament-header, .footer-bottom { align-items: flex-start; flex-direction: column; }
  .roadmap-item { grid-template-columns: 1fr; gap: 5px; }
  .filter-bar .form-control { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Enhanced tournament results */
.status.verified { background: rgba(97,242,15,.14); color: var(--lime-soft); box-shadow: inset 0 0 0 1px rgba(97,242,15,.2); }
.view-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:28px 0 14px; padding-bottom:14px; border-bottom:1px solid var(--line); }
.view-btn { border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.025); padding:10px 14px; border-radius:12px; cursor:pointer; font-weight:850; }
.view-btn.active { color:#071007; background:linear-gradient(135deg,var(--lime),#d5ffba); }
.results-table { min-width:930px; }
.results-table td:nth-last-child(-n+3), .results-table th:nth-last-child(-n+3) { text-align:center; }
.table-note { margin:10px 4px 0; color:var(--muted); font-size:.86rem; }
.round-section { margin-top:30px; }
.round-title h3 { margin:4px 0 14px; }
.match-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.match-card { border:1px solid var(--line); border-radius:18px; padding:18px; background:rgba(255,255,255,.025); }
.match-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:12px; }
.match-head strong, .match-head span { display:block; }
.match-head div > span { color:var(--lime); font-size:1.35rem; font-weight:900; }
.team-block { padding:11px 13px; margin:8px 0; border-radius:12px; background:rgba(255,255,255,.025); }
.team-block.winner { border-left:3px solid var(--lime); background:rgba(97,242,15,.07); }
.team-block small { display:block; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:.68rem; }
.table-wrap.compact { border-radius:12px; margin-top:12px; }
.table-wrap.compact table { min-width:520px; font-size:.84rem; }
.table-wrap.compact th, .table-wrap.compact td { padding:9px 10px; }
.formula { display:block; white-space:normal; margin:16px 0; padding:14px; border-radius:12px; background:#050b07; color:var(--lime-soft); border:1px solid var(--line); }
.rules-list { padding-left:20px; }
.rules-list li { margin:8px 0; }
.comparison-panel { margin-top:34px; padding:24px; border:1px solid var(--line); border-radius:20px; background:rgba(255,255,255,.02); }
.compact-head { margin-bottom:18px; align-items:center; }
.compact-head h3 { margin:5px 0 0; }
.compare-controls { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.compare-controls label { color:var(--muted); font-size:.82rem; font-weight:800; }
.compare-controls select { margin-top:6px; }
.compare-table { border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.compare-row { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:12px; padding:11px 14px; border-bottom:1px solid var(--line); }
.compare-row:last-child { border-bottom:0; }
.compare-header { background:rgba(97,242,15,.06); color:var(--lime-soft); }
.profile-grid-4 { grid-template-columns:repeat(4,1fr); }
.modal-card { width:min(980px,100%); }
.modal-details { align-items:start; }
.round-list { list-style:none; padding:0; display:grid; gap:8px; }
.round-list li { display:flex; justify-content:space-between; gap:18px; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.download-stack { display:grid; gap:10px; }
@media (max-width:900px){ .match-grid{grid-template-columns:1fr;} .profile-grid-4{grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .compare-controls,.profile-grid-4{grid-template-columns:1fr;} .compare-row{grid-template-columns:1fr 1fr 1fr; font-size:.83rem;} .tournament-stats .stat strong{font-size:1.25rem;} }


.brand--image { gap: 0; }
.brand-logo { height: 58px; width: auto; max-width: min(52vw, 320px); object-fit: contain; filter: drop-shadow(0 6px 22px rgba(0,0,0,.28)); }
.brand-logo--footer { height: 72px; max-width: min(58vw, 360px); }
.footer-brand { display: inline-flex; margin-bottom: 10px; }
.footer-brand-block { margin-bottom: 12px; }
@media (max-width: 900px) { .brand-logo { height: 50px; } .brand-logo--footer { height: 64px; } }
@media (max-width: 640px) { .brand-logo { height: 42px; max-width: 62vw; } .brand-logo--footer { height: 56px; max-width: 68vw; } .nav-wrap { gap: 14px; } }
