/* METIN2 RELOAD · Sıralama (style.css + efektler.css üzerine) */
.ranking-page { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(60px, 8vw, 100px); }
.ranking-page > .hero-embers { position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; width: 100%; pointer-events: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Başlık ---------- */
.rk-head { display: grid; justify-items: center; text-align: center; padding-top: clamp(34px, 5vw, 60px); }
.rk-head h1 {
  margin-top: 10px;
  font-size: clamp(3rem, 7vw, 5.6rem);
  padding-bottom: .05em;
  background: linear-gradient(180deg, #fff3d6 8%, #f2c46e 46%, #c0611d 92%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 22px #ff3c1a44) drop-shadow(0 3px 1px #000);
}
.rk-lead { margin-top: 6px; color: var(--muted); font: italic clamp(16px, 1.6vw, 19px)/1.5 var(--serif); }
.sample-badge { display: inline-flex; align-items: center; gap: 9px; margin-top: 16px; padding: 6px 14px; border: 1px dashed #c3944488; border-radius: 3px; background: #2a0c0866; color: #e9c78b; font: 700 10.5px/1.4 var(--sans); letter-spacing: .14em; }
.rk-tabs { display: inline-flex; gap: 6px; margin-top: 28px; padding: 6px; border: 1.5px solid transparent; border-radius: 6px; background: linear-gradient(180deg, #1c0d0b, #0f0706) padding-box, var(--gold-border); box-shadow: 0 10px 26px #000b; }
.rk-tab { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 26px; border: 0; border-radius: 4px; background: transparent; color: #d4c3a4; font: 700 16px var(--serif); letter-spacing: .04em; cursor: pointer; transition: color .2s ease, background .25s ease, box-shadow .25s ease; }
.rk-tab svg { width: 18px; height: 18px; color: var(--gold); }
.rk-tab:hover { color: var(--gold-hi); }
.rk-tab[aria-selected="true"] { color: #fff1d6; background: linear-gradient(180deg, #a3200f, #5a0703); box-shadow: inset 0 1px #ffffff26, 0 0 16px #ff3c1a66; text-shadow: 0 1px 2px #000; }
.rk-tab[aria-selected="true"] svg { color: #ffe0b0; }

/* ---------- Kürsü ---------- */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: clamp(10px, 2vw, 26px); margin-top: clamp(26px, 4vw, 46px); max-width: 1000px; }
.pod { display: grid; justify-items: center; animation: pod-in .8s cubic-bezier(.2, .8, .2, 1) both; }
.pod-1 { animation-delay: .05s; }
.pod-2 { animation-delay: .2s; }
.pod-3 { animation-delay: .32s; }
@keyframes pod-in { from { opacity: 0; translate: 0 40px; } }
.pod-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; width: 100%; }
.pod-visual .class-figure { width: min(100%, 210px); margin-bottom: -18px; }
.pod-1 .pod-visual .class-figure { width: min(100%, 260px); }
.pod-visual::after { content: ''; position: absolute; bottom: -24px; left: 50%; width: 70%; height: 22px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, #ff3c1a55, transparent 70%); }
.pod-crest { padding-bottom: 10px; }
.pod-crest .g-crest { width: 120px; height: 120px; }
.pod-crest .g-crest b { font-size: 46px; }
.pod-1 .pod-crest .g-crest { width: 150px; height: 150px; }
.pod-base {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 34px 14px 22px;
  text-align: center;
  border: 1.5px solid transparent;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #ffffff10, transparent 40%) padding-box, linear-gradient(170deg, #2a1411, #120807) padding-box, var(--gold-border);
  box-shadow: 0 18px 40px #000c, inset 0 0 40px #6a0d0626;
}
.pod-1 .pod-base { padding-top: 44px; padding-bottom: 46px; box-shadow: 0 18px 40px #000c, 0 0 40px #ff3c1a44, inset 0 0 50px #8a140640; }
.pod-2 .pod-base { padding-bottom: 30px; }
.pod-place {
  position: absolute;
  top: -22px;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  color: #1b0d07;
  font: 700 20px var(--serif);
}
.pod-place::before { content: ''; position: absolute; inset: 4px; z-index: -1; transform: rotate(45deg); border: 2px solid #fff3; box-shadow: 0 0 16px var(--mc, #ff3c1a), 0 4px 8px #000; background: var(--mg); }
.pod-1 .pod-place { --mg: linear-gradient(135deg, #fff2c0, #e8b44a 50%, #8a5a10); --mc: #ffc75a; color: #3a2004; width: 52px; height: 52px; top: -26px; font-size: 24px; }
.pod-2 .pod-place { --mg: linear-gradient(135deg, #ffffff, #b8c0c8 50%, #5a6470); --mc: #c8d4e0; color: #20262c; }
.pod-3 .pod-place { --mg: linear-gradient(135deg, #ffd2b0, #c8763a 50%, #6a3410); --mc: #e8925a; color: #2c1204; }
.pod-crown { position: absolute; top: -62px; width: 34px; height: 34px; color: #ffd36a; fill: #ffc23a55; filter: drop-shadow(0 0 10px #ffb02a); animation: crown-float 2.8s ease-in-out infinite; }
@keyframes crown-float { 50% { translate: 0 -5px; } }
.pod-base h2 { margin-top: 6px; font-size: clamp(16px, 2vw, 24px); color: var(--gold-hi); text-shadow: 0 0 14px #ff3c1a55; word-break: break-word; }
.pod-1 .pod-base h2 { font-size: clamp(19px, 2.4vw, 30px); }
.pod-sub { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; color: #cdbfa8; font: italic 14px var(--serif); }
.pod-sub .dot { width: 4px; height: 4px; transform: rotate(45deg); background: #c39443; }
.pod-empty { visibility: hidden; }

/* ---------- İmparatorluk rozetleri ---------- */
.emp { display: inline-flex; align-items: center; gap: 7px; color: #d4c3a4; font: 700 13.5px var(--serif); white-space: nowrap; }
.emp-dot { display: inline-block; width: 9px; height: 9px; transform: rotate(45deg); box-shadow: 0 0 0 1px #c39443, 0 0 8px var(--ec); background: radial-gradient(circle at 35% 35%, #fff8, var(--ec) 50%, var(--ed)); }
.emp-shinsoo { --ec: #ff4a2a; --ed: #6a0804; }
.emp-chunjo { --ec: #ffc23a; --ed: #6a4204; }
.emp-jinno { --ec: #3aa0ff; --ed: #06286a; }
.g-crest { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; }
.g-crest::before { content: ''; position: absolute; inset: 15%; transform: rotate(45deg); border: 1.5px solid transparent; background: radial-gradient(circle at 40% 30%, var(--ec), var(--ed) 72%) padding-box, linear-gradient(135deg, #f2d58e, #8d5f24 50%, #c39443) border-box; box-shadow: 0 0 14px color-mix(in srgb, var(--ec) 45%, transparent), 0 4px 8px #000; }
.g-crest b { position: relative; color: #fff6e6; font: 700 15px var(--serif); text-shadow: 0 1px 2px #000; }
.emp-bg-shinsoo { --ec: #e0341a; --ed: #4a0603; }
.emp-bg-chunjo { --ec: #e0a02a; --ed: #4a2c03; }
.emp-bg-jinno { --ec: #2a86e0; --ed: #061e4a; }

/* ---------- Tablo ---------- */
.rk-board { margin-top: clamp(40px, 6vw, 70px); padding: clamp(18px, 2.6vw, 30px); border: 1.5px solid transparent; border-radius: 6px; background: var(--panel-fill), var(--gold-border); box-shadow: 0 18px 50px #000d, inset 0 0 60px #6a0d0626; scroll-margin-top: calc(var(--header-height) + 16px); }
.rk-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.rk-empires { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid #5c3a12; border-radius: 3px; background: #170a09; color: #d4c3a4; font: 700 14px var(--serif); cursor: pointer; transition: border-color .2s ease, color .2s ease, background .2s ease, box-shadow .2s ease; }
.chip:hover { border-color: #c39443; color: var(--gold-hi); }
.chip.is-on { border-color: #f2d58e; color: #fff1d6; background: linear-gradient(180deg, #3a120c, #1e0907); box-shadow: 0 0 12px #ff3c1a44; }
.rk-select select, .rk-search input { min-height: 38px; border: 1.5px solid transparent; border-radius: 3px; background: linear-gradient(180deg, #0c0505, #170b0a) padding-box, linear-gradient(180deg, #7a5222, #3a2410 55%, #8d5f24) border-box; color: var(--ink); font: 600 14px var(--sans); }
.rk-select select { padding: 0 34px 0 12px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #c39443 50%), linear-gradient(135deg, #c39443 50%, transparent 50%), linear-gradient(180deg, #0c0505, #170b0a), linear-gradient(180deg, #7a5222, #3a2410 55%, #8d5f24); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%, 0 0, 0 0; background-size: 5px 5px, 5px 5px, 100% 100%, 100% 100%; background-repeat: no-repeat; background-origin: padding-box, padding-box, padding-box, border-box; background-clip: padding-box, padding-box, padding-box, border-box; cursor: pointer; }
.rk-select select option { background: #170b0a; }
.rk-search { position: relative; margin-left: auto; display: flex; align-items: center; }
.rk-search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: #b38a4c; pointer-events: none; }
.rk-search input { width: min(260px, 60vw); padding: 0 12px 0 34px; outline: 0; }
.rk-search input:focus, .rk-select select:focus { box-shadow: 0 0 0 3px #ff3c1a22, 0 0 14px #ff3c1a44; }
.class-filter[hidden] { display: none; }

.rk-table-wrap { overflow-x: auto; }
.rk-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.rk-table th { padding: 6px 14px; color: #c0573a; font: 700 10.5px var(--sans); letter-spacing: .2em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.rk-table td { padding: 10px 14px; background: #160a09cc; border-block: 1px solid #3b2618; color: #d9cbb5; font-size: 14.5px; vertical-align: middle; transition: background .2s ease; }
.rk-table td:first-child { border-left: 1px solid #3b2618; border-radius: 4px 0 0 4px; width: 70px; }
.rk-table td:last-child { border-right: 1px solid #3b2618; border-radius: 0 4px 4px 0; }
.rk-table tbody tr:hover td { background: #2a0f0bdd; border-color: #8d5f24; }
.rk-table tr.top-row td { background: linear-gradient(90deg, #3a120c, #1a0a09 60%); border-color: #8d5f2499; }
.rows-in tr { animation: row-in .45s ease both; }
.rows-in tr:nth-child(2) { animation-delay: .03s; } .rows-in tr:nth-child(3) { animation-delay: .06s; } .rows-in tr:nth-child(4) { animation-delay: .09s; } .rows-in tr:nth-child(5) { animation-delay: .12s; } .rows-in tr:nth-child(n+6) { animation-delay: .15s; }
@keyframes row-in { from { opacity: 0; translate: 0 8px; } }
.rank-no { display: inline-grid; place-items: center; min-width: 34px; color: #b9a587; font: 700 17px var(--serif); }
.medal { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; font: 700 15px var(--serif); }
.medal::before { content: ''; position: absolute; inset: 5px; z-index: 0; transform: rotate(45deg); background: var(--mg); box-shadow: 0 0 10px var(--mc), 0 2px 4px #000; }
.medal { isolation: isolate; }
.medal::before { z-index: -1; }
.medal-1 { --mg: linear-gradient(135deg, #fff2c0, #e8b44a 50%, #8a5a10); --mc: #ffc75a; color: #3a2004; }
.medal-2 { --mg: linear-gradient(135deg, #fff, #b8c0c8 50%, #5a6470); --mc: #c8d4e0; color: #20262c; }
.medal-3 { --mg: linear-gradient(135deg, #ffd2b0, #c8763a 50%, #6a3410); --mc: #e8925a; color: #2c1204; }
.who { display: flex; align-items: center; gap: 12px; }
.who strong { display: block; color: var(--ink); font: 700 16px/1.2 var(--serif); }
.who small { display: block; color: #a8957a; font-size: 12px; }
.top-row .who strong { color: var(--gold-hi); text-shadow: 0 0 10px #ff3c1a66; }
.face { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; object-fit: cover; object-position: center 7%; border: 1.5px solid #c39443; box-shadow: 0 0 10px #ff3c1a44; }
.lv { display: flex; align-items: center; gap: 10px; }
.lv b { min-width: 28px; color: var(--gold-hi); font: 700 18px var(--serif); }
.exp { position: relative; width: 70px; height: 5px; border-radius: 3px; background: #2a1712; overflow: hidden; }
.exp i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #7a0a04, #ff4a24, #ffc27a); box-shadow: 0 0 8px #ff3c1a; }
.pts { color: var(--gold-hi); font: 700 16px var(--serif); font-variant-numeric: tabular-nums; }
.win { color: #8fd17a; font-weight: 700; }
.loss { color: #ff7a5c; font-weight: 700; }
.muted { color: #6f5f4d; }
.rk-empty { padding: 30px; text-align: center; color: var(--muted); font: italic 16px var(--serif); }

.rk-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.pg { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid #5c3a12; border-radius: 3px; background: #170a09; color: #d4c3a4; font: 700 15px var(--serif); cursor: pointer; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.pg:hover:not(:disabled) { border-color: #c39443; color: var(--gold-hi); }
.pg.is-on { border-color: #f2d58e; color: #fff1d6; background: linear-gradient(180deg, #a3200f, #5a0703); box-shadow: 0 0 12px #ff3c1a66; }
.pg:disabled { opacity: .35; cursor: default; }
.pg svg { width: 16px; height: 16px; }
.rk-updated { margin-top: 14px; text-align: center; color: #8f7f69; font: italic 13px var(--serif); }

@media (max-width: 760px) {
  .col-hide-s { display: none; }
  .rk-search { margin-left: 0; width: 100%; }
  .rk-search input { width: 100%; }
  .pod-visual .class-figure { margin-bottom: -10px; }
  .pod-base { padding: 28px 6px 16px; }
  .pod-1 .pod-base { padding-bottom: 30px; }
  .pod-sub { font-size: 11.5px; gap: 4px; }
  .pod-base .emp { font-size: 11.5px; }
  .pod-crest .g-crest { width: 76px; height: 76px; }
  .pod-1 .pod-crest .g-crest { width: 96px; height: 96px; }
  .pod-crest .g-crest b { font-size: 30px; }
  .pod-crown { top: -54px; width: 28px; height: 28px; }
  .rk-table td, .rk-table th { padding-inline: 8px; }
  .rk-tab { padding: 0 18px; font-size: 15px; }
  .exp { width: 36px; }
  .lv { gap: 6px; }
  .rk-table td:first-child { width: 48px; }
  .face { width: 34px; height: 34px; flex-basis: 34px; }
  .who { gap: 9px; }
}
