:root {
  --bg: #0b0d11;
  --surface: #14171d;
  --surface-2: #1b1f27;
  --line: #272c36;
  --text: #eef0f3;
  --muted: #98a2ae;
  --accent: #e0483f;
  --accent-dark: #c43a32;
  --ct: #6ea8fe;
  --t: #e0a63f;
  --good: #3fb97d;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  --wide: 1140px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
#slot-head { margin-top: 30px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--ct); outline-offset: 2px; }

/* Ust cubuk */
.top { position: sticky; top: 0; z-index: 10; background: rgba(11, 13, 17, .92); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.brand img { width: 28px; height: 28px; }
.nav { display: flex; gap: 18px; margin-left: 6px; color: var(--muted); }
.nav a:hover { color: var(--text); }
.top-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer;
  padding: 8px 15px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); white-space: nowrap;
}
.btn:hover { background: #252a34; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn.discord:hover { background: #4752c4; }

/* Vitrin: Discord kartlarindaki sancak seridi */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, #191d24, #0b0d11); }
.hero::before {
  content: ""; position: absolute; inset: 0; background: var(--accent); opacity: .13;
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 44% 100%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--accent); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 58px; padding-bottom: 58px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .12em; font-size: 13px; text-transform: uppercase; }
.hero h1 { font-size: clamp(38px, 6.2vw, 68px); font-weight: 800; letter-spacing: -.01em; margin: 10px 0 14px; }
.hero p { color: #c7cdd5; max-width: 52ch; margin: 0 0 22px; font-size: 16.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: rgba(20, 23, 29, .8); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: #c7cdd5; }

.server-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.server-state { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 0 4px rgba(63, 185, 125, .18); }
.server-count { font-size: 46px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 12px; }
.server-count small { font-size: 22px; color: var(--muted); font-weight: 600; }
.bar { height: 6px; background: #272c36; border-radius: 3px; overflow: hidden; margin: 10px 0 14px; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.server-map { color: var(--muted); margin-bottom: 16px; overflow-wrap: anywhere; }
.ip-box { display: flex; gap: 8px; align-items: stretch; }
.ip-value { flex: 1; min-width: 0; background: #0d0f13; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.hint { font-size: 13px; color: var(--muted); margin-top: 8px; overflow-wrap: anywhere; }

/* Bolumler */
section { padding: 46px 0 8px; scroll-margin-top: 60px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { font-size: 26px; font-weight: 800; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

/* Canli oyuncular */
.teams { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team { padding: 14px 16px; min-width: 0; }
.team h3 { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .05em; padding-bottom: 9px; border-bottom: 2px solid var(--line); margin-bottom: 4px; }
.team.ct h3 { color: var(--ct); border-color: #2c4369; }
.team.t h3 { color: var(--t); border-color: #5f4a23; }
.player { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid #20242c; }
.player:last-child { border-bottom: 0; }
.player img { width: 46px; height: 19px; object-fit: contain; }
.player .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player .sub { font-size: 12.5px; }
.player .score { font-variant-numeric: tabular-nums; color: #c7cdd5; }
.empty { color: var(--muted); padding: 28px 16px; text-align: center; }

/* Siralama */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.podium-card { position: relative; overflow: hidden; padding: 18px; border-top: 3px solid var(--line); min-width: 0; }
.podium-card.p1 { border-top-color: #ffd76a; }
.podium-card.p2 { border-top-color: #c5ced8; }
.podium-card.p3 { border-top-color: #b07a4a; }
.podium-card .place { position: absolute; right: 12px; top: 2px; font-size: 62px; font-weight: 800; color: rgba(255, 255, 255, .06); line-height: 1.2; }
.podium-card img { width: 96px; height: 39px; object-fit: contain; object-position: left; margin-bottom: 10px; display: block; }
.podium-card .name { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-card .rating { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 8px; }
.podium-card .kd { color: var(--muted); font-size: 13.5px; }

.search { width: min(280px, 100%); font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 7px; padding: 8px 12px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 9px 14px; border-bottom: 1px solid #20242c; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.pos { width: 44px; color: var(--muted); font-weight: 700; }
.who { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.who img { width: 58px; height: 24px; object-fit: contain; flex: none; }
.who b { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.who small { display: block; font-size: 12.5px; }

/* Rutbe renkleri: Discord kartlariyla ayni */
.tier-0 { color: #a2a7af; } .tier-1 { color: #c98f5b; } .tier-2 { color: #c5ced8; } .tier-3 { color: #e8b93c; }
.tier-4 { color: #3fc2b5; } .tier-5 { color: #958cf5; } .tier-6 { color: #3fbf7f; } .tier-7 { color: #ef625a; } .tier-8 { color: #ffd76a; }

/* Nasil katilinir */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.step { padding: 18px; }
.step b { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 7px; }
.step b span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13.5px; flex: none; }
.step p { margin: 0; color: #c7cdd5; }
.step code { font-family: var(--mono); font-size: 13.5px; color: #fff; background: #0d0f13; border-radius: 4px; padding: 1px 5px; }
.slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.slot { padding: 14px 16px; }
.slot b { display: block; font-size: 16px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.stat { padding: 14px 16px; }
.stat b { display: block; font-size: 25px; font-weight: 800; font-variant-numeric: tabular-nums; }

footer { margin-top: 54px; border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 13.5px; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.notice { background: #2b1b1a; border-bottom: 1px solid #6a2e2a; color: #ffb4ae; padding: 9px 20px; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 7px; padding: 9px 15px; z-index: 20; max-width: calc(100vw - 32px); }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 36px; padding-bottom: 36px; gap: 26px; }
  .hero::before { clip-path: polygon(78% 0, 100% 0, 100% 100%, 58% 100%); }
  .steps, .podium { grid-template-columns: minmax(0, 1fr); }
  .teams { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .podium-card img { margin-bottom: 8px; }
}
@media (max-width: 460px) {
  .top .wrap { gap: 10px; }
  .brand span { display: none; }
  .ip-box { flex-direction: column; }
  .who { min-width: 170px; }
  .who b { max-width: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar i { transition: none; }
}
