* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  white-space: nowrap;
}
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1205; }
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost { border-color: rgba(255,255,255,.18); color: var(--text); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-lg { padding: 13px 22px; font-size: 15px; }
.btn-block { width: 100%; margin-top: 10px; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  min-height: 560px; display: flex; align-items: center;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11,13,18,.92) 0%, rgba(11,13,18,.55) 55%, rgba(11,13,18,.85) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 64px; }
.hero h1 {
  font-family: 'Cinzel', serif; font-weight: 800; margin: 14px 0 10px;
  font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: 1px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.hero-sub { color: #c9cfda; font-size: 17px; max-width: 520px; margin: 0 0 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.45); border: 1px solid var(--line); }
.pill i { font-size: 8px; }
.pill-on i { color: var(--on); }
.pill-off i { color: var(--karus); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-head h2 { font-size: 16px; margin: 0; display: flex; gap: 10px; align-items: center; }
.card-head h2 i { color: var(--gold); }
.card-head a { font-size: 13px; color: var(--muted); }
.card-head a:hover { color: var(--gold-2); }
.empty { color: var(--muted); list-style: none; }

/* Login card */
.login-card { background: rgba(21,25,34,.92); backdrop-filter: blur(6px); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.login-card h3 { margin: 0 0 16px; font-size: 17px; display: flex; gap: 10px; align-items: center; }
.login-card h3 i { color: var(--gold); }
.login-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.login-card input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
  background: #0d1016; border: 1px solid var(--line); border-radius: 8px; color: var(--text); font-size: 15px;
}
.login-card input:focus { outline: none; border-color: var(--gold); }
.login-links { display: flex; justify-content: space-between; margin-top: 14px; font-size: 13px; }
.login-links a { color: var(--muted); }
.login-links a:hover { color: var(--gold-2); }
.welcome-name { font-family: 'Cinzel', serif; font-size: 22px; margin: 0 0 12px; color: var(--gold-2); }
.kc { display: flex; justify-content: space-between; padding: 12px; border-radius: 8px; background: #0d1016; border: 1px solid var(--line); }
.kc span { color: var(--muted); }

/* Stats */
.stats { position: relative; margin-top: -36px; z-index: 2; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 2px;
}
.stat i { color: var(--gold); font-size: 18px; margin-bottom: 6px; }
.stat strong { font-size: 24px; }
.stat > span { color: var(--muted); font-size: 13px; }
.stat-nation { justify-content: center; }
.nat { display: flex; justify-content: space-between; font-weight: 600; }
.nat.karus { color: var(--karus); }
.nat.human { color: var(--human); }
.nat strong { font-size: 18px; color: var(--text); }

/* Grid */
.grid { display: grid; grid-template-columns: 1fr 1fr 340px; gap: 16px; margin-top: 24px; margin-bottom: 48px; }
.grid .news { grid-column: 1 / 3; }
.side { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 16px; }

/* Rankings */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li {
  display: grid; grid-template-columns: 28px 10px 1fr auto; grid-template-areas: "no dot name score" "no dot meta score";
  column-gap: 10px; align-items: center; padding: 9px 8px; border-radius: 8px;
}
.rank li:nth-child(odd) { background: rgba(255,255,255,.02); }
.rank .no { grid-area: no; font-weight: 700; color: var(--muted); text-align: center; }
.rank .dot { grid-area: dot; }
.rank .name { grid-area: name; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .name:hover { color: var(--gold-2); }
.rank .meta { grid-area: meta; font-size: 12px; color: var(--muted); }
.rank .score { grid-area: score; font-weight: 600; color: var(--gold-2); font-size: 14px; }
.rank li.top1 .no { color: #ffd34d; }
.rank li.top2 .no { color: #d4d9e2; }
.rank li.top3 .no { color: #d08a4a; }
.rank li.top1 { background: linear-gradient(90deg, rgba(255,211,77,.12), transparent); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.karus { background: var(--karus); }
.dot.human { background: var(--human); }

/* News */
.news-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.news-item { display: flex; gap: 12px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #11151c; transition: .15s; }
.news-item:hover { border-color: var(--gold); }
.news-img { flex: 0 0 160px; height: auto; aspect-ratio: 40 / 21; align-self: center; border-radius: 8px; background-size: cover; background-position: center; }
.news-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.news-body strong { font-size: 14px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--gold); }
.excerpt { font-size: 13px; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.date { font-size: 12px; color: #6f7786; }

/* Side */
.staff { list-style: none; margin: 0; padding: 0; }
.staff li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.staff li:last-child { border-bottom: 0; }
.st { margin-left: auto; font-size: 12px; font-weight: 600; }
.st.on { color: var(--on); }
.st.off { color: var(--off); }
.discord { text-align: center; }
.discord > i { font-size: 36px; color: #5865f2; }
.discord h2 { font-size: 17px; margin: 8px 0 6px; }
.discord p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }

/* Responsive */
@media (max-width: 1024px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid .news { grid-column: 1 / 3; }
  .side { grid-column: 1 / 3; grid-row: auto; display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; padding-top: 32px; }
  .stats { margin-top: 0; padding-top: 16px; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .grid, .side, .news-list { grid-template-columns: 1fr; }
  .grid .news, .side { grid-column: auto; }
}
@media (max-width: 600px) { .news-img { flex-basis: 110px; } }

/* --- Gorsel iyilestirme (kartlar, basliklar, istatistikler) --- */
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #171c26 0%, #12161e 100%);
  border: 1px solid #252b37; border-radius: 16px; padding: 22px;
  box-shadow: 0 14px 34px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.03);
  transition: border-color .2s, transform .2s;
}
.card::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .55; }
.card:hover { border-color: rgba(217,164,65,.35); }
.login-card::before, .discord::before { display: none; }
.card-head { margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.card-head h2 { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #f0f2f6; }
.card-head h2 i { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(217,164,65,.12); border: 1px solid rgba(217,164,65,.3); font-size: 14px; }
.card-head a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; transition: .15s; }
.card-head a::after { content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; }
.card-head a:hover { border-color: var(--gold); color: var(--gold-2); background: rgba(217,164,65,.08); }

.stat {
  position: relative; overflow: hidden; flex-direction: row; align-items: center; gap: 14px; padding: 18px;
  background: linear-gradient(180deg, rgba(23,28,38,.96), rgba(18,22,30,.96)); border-radius: 16px; border-color: #252b37;
  box-shadow: 0 14px 34px rgba(0,0,0,.35); backdrop-filter: blur(6px);
}
.stat > i { width: 48px; height: 48px; flex: 0 0 48px; margin: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #1a1205; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 6px 16px rgba(217,164,65,.25); }
.stat strong { display: block; font-size: 26px; line-height: 1.1; color: #fff; }
.stat > span { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.stat:not(.stat-nation) { display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-content: center; align-items: center; }
.stat:not(.stat-nation) > i { grid-row: 1 / 3; }
.stat-nation { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.stat-nation .nat { padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }

.rank li { padding: 10px; border-radius: 10px; transition: background .15s; }
.rank li:nth-child(odd) { background: transparent; }
.rank li:hover { background: rgba(217,164,65,.06); }
.rank .no { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #0d1016; border: 1px solid var(--line); font-size: 13px; }
.rank li.top1 .no { background: linear-gradient(180deg, #ffe08a, #d9a441); color: #1a1205; border-color: transparent; }
.rank li.top2 .no { background: linear-gradient(180deg, #eef1f6, #aab3c1); color: #1a1d22; border-color: transparent; }
.rank li.top3 .no { background: linear-gradient(180deg, #f0b07a, #b86c34); color: #1d1208; border-color: transparent; }
.rank li.top1 { background: linear-gradient(90deg, rgba(255,211,77,.10), transparent 70%); }
.rank .score { padding: 3px 10px; border-radius: 20px; background: rgba(217,164,65,.08); font-size: 13px; }

.news-item { border-radius: 14px; border-color: #252b37; background: #10141b; padding: 12px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.news-item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.35); }
.news-img { border-radius: 10px; }
.news-body strong { font-size: 15px; color: #fff; }
.tag { padding: 2px 8px; border-radius: 6px; background: rgba(217,164,65,.12); font-size: 10px; }

.staff li { padding: 10px 4px; }
.st { padding: 2px 9px; border-radius: 20px; border: 1px solid currentColor; font-size: 11px; }
.discord { background: radial-gradient(400px 200px at 50% 0%, rgba(88,101,242,.28), transparent 70%), linear-gradient(180deg, #171c26, #12161e); border-color: rgba(88,101,242,.35); }
.discord > i { width: 64px; height: 64px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; background: #5865f2; color: #fff; font-size: 30px; box-shadow: 0 10px 24px rgba(88,101,242,.35); }
.btn-discord:hover { filter: brightness(1.1); }
.login-card { border-radius: 18px; border-color: rgba(217,164,65,.25); }
.login-card h3 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.hero-sub { font-size: 18px; }
.stat-nation .nat { display: flex; justify-content: space-between; align-items: center; }
.stat-nation .nat strong { display: inline; font-size: 18px; }
