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

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

:root {
  --bg:        #08080f;
  --bg2:       #10101e;
  --bg3:       #181828;
  --border:    #2a2a45;
  --accent:    #7c5af0;
  --accent2:   #00d4ff;
  --text:      #e4e4f0;
  --muted:     #8888aa;
  --danger:    #ff4d6d;
  --gold:      #f0c040;
  --brand:     #f0325a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAV ── */
nav, .site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
}

.nav-logo-icon {
  height: 60px;
  width: auto;
}

.nav-logo span { color: var(--brand); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.15s;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.nav-links a.active {
  color: var(--brand);
}

.nav-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #5865f2;
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.9rem;
  border-radius: 99px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.1s;
}

.nav-discord:hover { opacity: 0.85; transform: translateY(-1px); text-decoration: none; }

/* ── HERO ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 2rem 80px;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,90,240,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 60%, rgba(0,212,255,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(124,90,240,0.15);
  border: 1px solid rgba(124,90,240,0.4);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 1.2rem;
}

.hero h1 .glow {
  color: var(--accent2);
  text-shadow: 0 0 40px rgba(0,212,255,0.5);
}

.hero p {
  max-width: 540px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1.2rem;
  margin-bottom: 2.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.15s;
  user-select: all;
}

.ip-box:hover { border-color: var(--accent); }

.ip-box .label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.ip-copy-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.ip-copy-hint.copied { color: #4ade80; }

.btn-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }

/* ── SECTION ── */
section { padding: 70px 2rem; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-sub {
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 3rem;
}

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.15s, transform 0.15s;
}

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

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.card p { color: var(--muted); font-size: 0.9rem; }

/* ── HOW TO PLAY ── */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.rule-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem;
}

.rule-card h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text);
}

.rule-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rule-card li {
  color: var(--muted);
  font-size: 0.9rem;
  padding-left: 1.1rem;
  position: relative;
}

.rule-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--text);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  margin-left: 0.6rem;
}

.timeline-item {
  display: flex;
  gap: 1.2rem;
  padding: 0.8rem 0 0.8rem 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item.special::before { background: var(--accent2); }

.tl-time {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent2);
  min-width: 52px;
}

.tl-desc {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ── PLAYER SEARCH ── */
.player-search {
  margin-bottom: 2rem;
}

.search-row {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
}

.search-row input {
  flex: 1;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  padding: 0.6rem 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.search-row input::placeholder { color: var(--muted); }
.search-row input:focus { border-color: var(--brand); }

.search-row button {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  padding: 0.6rem 1.2rem;
  cursor: pointer;
  transition: opacity 0.15s;
}

.search-row button:hover { opacity: 0.85; }

.player-card {
  margin-top: 1.2rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  max-width: 460px;
}

.player-card-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.player-card-name span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent2);
  margin-left: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.stat-box {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
}

.stat-box .stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.stat-box .stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  color: var(--text);
}

.search-error {
  margin-top: 0.8rem;
  color: var(--danger);
  font-size: 0.88rem;
}

/* ── LEADERBOARD ── */
.lb-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.lb-tab {
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
  font-family: 'Inter', sans-serif;
}

.lb-tab:hover { color: var(--text); }
.lb-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.lb-table-wrap {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

thead th {
  background: var(--bg3);
  padding: 0.75rem 1.2rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(240,50,90,0.06); }

tbody td {
  padding: 0.8rem 1.2rem;
  color: var(--text);
}

.rank-1 { color: var(--gold); font-weight: 700; }
.rank-2 { color: #c0c0c0; font-weight: 600; }
.rank-3 { color: #cd7f32; font-weight: 600; }

.lb-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 1.2rem;
}

/* ── BENTO GRID ── */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.bento-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.8rem;
  transition: border-color 0.15s;
}

.bento-card:hover { border-color: var(--brand); }

.bento-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.2rem;
}

/* How to Play */
.htp-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.htp-steps li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: var(--text);
}

.htp-steps li::before {
  content: counter(steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* What is the goal */
.goal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.goal-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.goal-list li::before {
  content: '✦';
  color: var(--brand);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* Cosmetics */
.bento-cosmetics { grid-column: 1; }

.bento-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* Server info */
.bento-info {
  grid-column: 2;
  display: flex;
  align-items: center;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.info-item { flex: 1; }

.info-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.info-val {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.info-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-cosmetics, .bento-info { grid-column: 1; }
  .info-row { flex-wrap: wrap; gap: 1rem; }
  .info-divider { display: none; }
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

footer .logo {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

footer .logo span { color: var(--brand); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 60px 2rem 40px;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(124,90,240,0.1) 0%, transparent 70%);
}

.page-header h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
}

.page-header p { color: var(--muted); margin-top: 0.4rem; }

/* Leaderboards header with map background */
.lb-header {
  position: relative;
  overflow: hidden;
  padding: 90px 2rem 70px;
  background: none;
}

.lb-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/mareva.png') center 40% / cover no-repeat;
  transform: scale(1.04);
}

.lb-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(8, 8, 15, 0.55) 0%,
    rgba(8, 8, 15, 0.75) 60%,
    rgba(8, 8, 15, 0.96) 100%);
}

.lb-header .container { position: relative; z-index: 1; }
.lb-header p { color: rgba(255,255,255,0.75); }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-links { gap: 1.2rem; }
  section { padding: 50px 1rem; }
  .hero { padding: 70px 1rem 60px; }
  .page-header { padding: 40px 1rem 30px; }
}
