/* Osobny widok rankingów SkyRift. Nie zmienia regulaminu ani css/style.css. */
.rankings-page { overflow: hidden; }
.rankings-hero {
  position: relative;
  overflow: hidden;
  padding: 122px 0 82px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(38, 182, 255, 0.25), transparent 58%),
    radial-gradient(ellipse at 18% 40%, rgba(50, 100, 241, 0.13), transparent 42%);
}
.rankings-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: 10%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(121, 224, 255, 0.14);
  border-radius: 50%;
}
.rankings-hero h1 { margin-inline: auto; }
.rankings-hero h1 span { color: var(--cyan); }
.rankings-hero > .container > p:not(.eyebrow) { max-width: 700px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.rankings-hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 27px; }
.rankings-hero-meta span { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(129, 229, 255, 0.16); border-radius: 999px; color: #a7cfe3; background: rgba(3, 22, 40, 0.36); font-size: 12px; font-weight: 750; }
.rankings-hero-meta i { color: var(--cyan); font-style: normal; }
.rankings-section { padding: 74px 0 112px; }
.rankings-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.rankings-toolbar h2 { margin-bottom: 9px; }
.rankings-toolbar p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; }
.rankings-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rankings-tab { min-height: 41px; padding: 9px 16px; border: 1px solid rgba(139, 226, 255, 0.15); border-radius: 11px; color: #a8cada; background: rgba(4, 24, 42, 0.54); font-size: 12.5px; font-weight: 850; cursor: pointer; transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease; }
.rankings-tab:hover { transform: translateY(-1px); color: #e6faff; border-color: rgba(133, 227, 255, 0.32); }
.rankings-tab.active { border-color: rgba(105, 224, 255, 0.48); color: #e9fbff; background: linear-gradient(135deg, rgba(41, 173, 223, 0.35), rgba(14, 72, 127, 0.36)); }
.rankings-category { overflow: hidden; border: 1px solid rgba(139, 226, 255, 0.17); border-radius: 21px; background: linear-gradient(145deg, rgba(13, 47, 79, 0.68), rgba(5, 19, 34, 0.88)); box-shadow: 0 24px 52px rgba(0, 0, 0, 0.19), inset 0 1px 0 rgba(238, 255, 255, 0.04); }
.rankings-category-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 105px; padding: 23px 26px; border-bottom: 1px solid rgba(140, 226, 255, 0.12); background: linear-gradient(100deg, rgba(13, 59, 98, 0.54), rgba(5, 24, 43, 0.40)); }
.rankings-category-head > div { display: flex; align-items: center; gap: 13px; }
.rankings-category-icon { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid rgba(110, 223, 255, 0.28); border-radius: 14px; color: var(--cyan); background: rgba(74, 203, 255, 0.11); font-size: 21px; }
.rankings-category-kicker { margin: 0 0 2px; color: #7eafc7; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.rankings-category h3 { margin: 0; color: #ecfbff; font-size: 20px; }
.rankings-category-head > p { margin: 0; color: #8bb2c5; font-size: 12px; text-align: right; }
.rankings-content { padding: 16px; }
.rankings-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rankings-board { overflow: hidden; border: 1px solid rgba(140, 226, 255, 0.12); border-radius: 16px; background: rgba(3, 20, 35, 0.40); }
.rankings-board-head { display: flex; align-items: flex-start; gap: 11px; min-height: 90px; padding: 18px; border-bottom: 1px solid rgba(140, 226, 255, 0.09); background: linear-gradient(135deg, rgba(12, 53, 87, 0.44), rgba(7, 26, 45, 0.34)); }
.rankings-board-icon { display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border: 1px solid rgba(109, 224, 255, 0.24); border-radius: 11px; color: var(--cyan); background: rgba(76, 202, 255, 0.10); font-size: 17px; }
.rankings-board-kicker { margin: 0 0 2px; color: #7daebf; font-size: 10px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.rankings-board h4 { margin: 0; color: #edfbff; font-size: 17px; line-height: 1.2; }
.rankings-board-description { margin: 4px 0 0; color: #91b9ca; font-size: 11.5px; line-height: 1.45; }
.rankings-list { padding: 7px 11px 12px; }
.rankings-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 63px; padding: 9px 6px; border-bottom: 1px solid rgba(140, 226, 255, 0.08); }
.rankings-row:last-child { border-bottom: 0; }
.rankings-row:hover { border-radius: 11px; background: rgba(52, 169, 220, 0.08); }
.rankings-position { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #b8dce8; background: rgba(85, 188, 229, 0.09); font-size: 11px; font-weight: 900; }
.rankings-row.rankings-top-1 .rankings-position { color: #ecfbff; background: rgba(82, 207, 255, 0.31); box-shadow: 0 0 0 1px rgba(151, 238, 255, 0.25); }
.rankings-row.rankings-top-2 .rankings-position { color: #d4eaf3; background: rgba(113, 169, 196, 0.21); }
.rankings-row.rankings-top-3 .rankings-position { color: #c5e0ea; background: rgba(52, 132, 179, 0.22); }
.rankings-player { display: flex; align-items: center; min-width: 0; gap: 9px; }
.rankings-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid rgba(126, 224, 255, 0.20); border-radius: 10px; color: var(--cyan); background: rgba(61, 175, 226, 0.11); font-size: 12px; font-weight: 900; }
.rankings-player strong { display: block; overflow: hidden; color: #e7faff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rankings-player p { margin: 1px 0 0; overflow: hidden; color: #83aabd; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rankings-value { color: #a8ebff; font-size: 12px; font-weight: 900; text-align: right; white-space: nowrap; }
.rankings-empty { display: grid; place-items: center; min-height: 240px; padding: 28px 21px; color: #9dc1d1; text-align: center; }
.rankings-empty > span { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 11px; border: 1px solid rgba(119, 225, 255, 0.22); border-radius: 12px; color: var(--cyan); background: rgba(64, 180, 230, 0.10); font-size: 18px; }
.rankings-empty strong { color: #e5f9ff; font-size: 14px; }
.rankings-empty p { max-width: 330px; margin: 6px 0 0; color: #8fb5c7; font-size: 12px; }
.rankings-info { display: flex; gap: 12px; align-items: flex-start; max-width: 900px; margin: 20px auto 0; padding: 16px 18px; border: 1px solid rgba(136, 225, 255, 0.15); border-radius: 14px; background: rgba(10, 39, 64, 0.44); }
.rankings-info > span { display: grid; place-items: center; flex: 0 0 auto; width: 23px; height: 23px; border-radius: 50%; color: #05233c; background: var(--cyan); font-family: Georgia, serif; font-style: italic; font-weight: 900; }
.rankings-info p { margin: 0; color: #9dc3d4; font-size: 13px; line-height: 1.55; }

.dungeon-picker { margin-bottom: 16px; padding: 20px; border: 1px solid rgba(140, 226, 255, 0.12); border-radius: 16px; background: rgba(3, 20, 35, 0.34); }
.dungeon-picker-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.dungeon-picker-heading h4 { margin: 0; color: #ecfbff; font-size: 17px; }
.dungeon-picker-heading p { margin: 3px 0 0; color: #8fb5c7; font-size: 12px; }
.dungeon-picker-count { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(119, 225, 255, 0.19); border-radius: 999px; color: #a7d8e8; background: rgba(47, 156, 202, 0.09); font-size: 10.5px; font-weight: 900; white-space: nowrap; }
.dungeon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.dungeon-choice { position: relative; min-height: 142px; overflow: hidden; padding: 17px; border: 1px solid rgba(137, 226, 255, 0.14); border-radius: 14px; color: inherit; background: linear-gradient(145deg, rgba(11, 42, 70, 0.72), rgba(5, 21, 38, 0.85)); text-align: left; cursor: pointer; transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.dungeon-choice::before { content: ""; position: absolute; right: -45px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(72, 201, 255, 0.20), transparent 67%); pointer-events: none; }
.dungeon-choice:hover { transform: translateY(-3px); border-color: rgba(137, 230, 255, 0.34); background: linear-gradient(145deg, rgba(16, 61, 99, 0.78), rgba(5, 25, 44, 0.90)); }
.dungeon-choice.active { border-color: rgba(105, 228, 255, 0.55); background: linear-gradient(145deg, rgba(17, 86, 134, 0.72), rgba(7, 39, 67, 0.92)); box-shadow: 0 14px 31px rgba(14, 163, 214, 0.12), inset 0 1px 0 rgba(216, 253, 255, 0.08); }
.dungeon-choice-inner { position: relative; display: flex; flex-direction: column; min-height: 108px; }
.dungeon-choice-top { display: flex; align-items: center; gap: 8px; }
.dungeon-choice-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(110, 223, 255, 0.26); border-radius: 10px; color: var(--cyan); background: rgba(71, 203, 255, 0.10); font-size: 15px; }
.dungeon-choice-rarity { color: #86b7ca; font-size: 10px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.dungeon-choice strong { display: block; max-width: 180px; margin-top: 14px; color: #e9fbff; font-size: 15px; line-height: 1.2; }
.dungeon-choice-status { width: fit-content; margin-top: auto; padding: 3px 8px; border: 1px solid rgba(119, 225, 255, 0.19); border-radius: 999px; color: #a9e6f7; background: rgba(70, 195, 244, 0.09); font-size: 10px; font-weight: 850; }
.dungeon-choice[data-status="W przygotowaniu"] .dungeon-choice-status { color: #b7c7cf; border-color: rgba(164, 200, 214, 0.18); background: rgba(164, 200, 214, 0.08); }
.dungeon-results-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 2px 12px; }
.dungeon-results-head p { margin: 0 0 2px; color: #7daebf; font-size: 10px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.dungeon-results-head h4 { margin: 0; color: #eafaff; font-size: 18px; }
.dungeon-results-head span { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border: 1px solid rgba(119, 225, 255, 0.19); border-radius: 999px; color: #b2eaff; background: rgba(52, 181, 235, 0.09); font-size: 10.5px; font-weight: 900; }

@media (max-width: 900px) {
  .rankings-toolbar { align-items: flex-start; flex-direction: column; }
  .rankings-tabs { justify-content: flex-start; }
  .rankings-panels, .dungeon-grid { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .rankings-hero { padding: 84px 0 64px; }
  .rankings-section { padding: 52px 0 78px; }
  .rankings-toolbar { margin-bottom: 21px; }
  .rankings-tabs { width: 100%; display: grid; grid-template-columns: 1fr; }
  .rankings-tab { width: 100%; }
  .rankings-category-head { align-items: flex-start; flex-direction: column; min-height: 0; padding: 19px; }
  .rankings-category-head > p { text-align: left; }
  .rankings-content { padding: 10px; }
  .rankings-board-head { padding: 16px; }
  .rankings-row { grid-template-columns: 32px minmax(0, 1fr); gap: 9px; min-height: 61px; }
  .rankings-value { grid-column: 2; margin-top: -7px; text-align: left; }
  .rankings-info { padding: 15px; }
  .dungeon-picker { padding: 15px; }
  .dungeon-picker-heading { flex-direction: column; }
  .dungeon-results-head { align-items: flex-start; flex-direction: column; }
}


.rankings-avatar { position: relative; overflow: hidden; }
.rankings-avatar img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}

/* Klikalne profile graczy i wysuwane okno profilu. */
.rankings-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(140, 226, 255, 0.08);
  color: inherit;
  background: transparent;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
  text-align: left;
  cursor: pointer;
}
.rankings-row:focus-visible { outline: 2px solid rgba(126, 231, 255, 0.90); outline-offset: -2px; border-radius: 11px; }
.rankings-row:last-child { border-bottom: 0; }

.rankings-profile-open { overflow: hidden; }
.rankings-profile-modal { position: fixed; inset: 0; z-index: 700; display: grid; place-items: center; padding: 22px; }
.rankings-profile-modal[hidden] { display: none; }
.rankings-profile-backdrop { position: absolute; inset: 0; background: rgba(1, 8, 17, 0.74); backdrop-filter: blur(7px); }
.rankings-profile-dialog { position: relative; z-index: 1; width: min(100%, 790px); max-height: min(780px, calc(100vh - 44px)); overflow: auto; padding: 27px; border: 1px solid rgba(131, 227, 255, 0.26); border-radius: 23px; background: linear-gradient(145deg, rgba(12, 50, 82, 0.98), rgba(3, 17, 32, 0.99)); box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(238, 255, 255, 0.06); }
.rankings-profile-dialog:focus { outline: none; }
.rankings-profile-close { position: absolute; top: 15px; right: 15px; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid rgba(150, 226, 255, 0.24); border-radius: 11px; color: #dff7ff; background: rgba(13, 50, 79, 0.72); font: inherit; font-size: 23px; line-height: 1; cursor: pointer; transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease; }
.rankings-profile-close:hover { transform: translateY(-1px); border-color: rgba(150, 230, 255, 0.44); background: rgba(20, 81, 121, 0.80); }
.rankings-profile-close:focus-visible { outline: 2px solid rgba(129, 231, 255, 0.92); outline-offset: 2px; }
.rankings-profile-head { display: flex; align-items: center; gap: 17px; min-height: 88px; padding-right: 45px; }
.rankings-profile-avatar { position: relative; display: grid; place-items: center; flex: 0 0 auto; width: 76px; height: 76px; overflow: hidden; border: 1px solid rgba(130, 230, 255, 0.45); border-radius: 18px; background: linear-gradient(145deg, rgba(44, 176, 227, 0.47), rgba(7, 52, 91, 0.80)); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24); }
.rankings-profile-avatar img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.rankings-profile-kicker { margin: 0 0 4px; color: #83b9cf; font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.rankings-profile-head h2 { margin: 0; overflow: hidden; color: #f1fcff; font-size: clamp(25px, 4vw, 34px); line-height: 1.08; text-overflow: ellipsis; white-space: nowrap; }
.rankings-profile-updated { margin: 7px 0 0; color: #8cb2c5; font-size: 11.5px; }
.rankings-profile-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.rankings-profile-stat { display: flex; align-items: center; gap: 12px; min-height: 92px; padding: 16px; border: 1px solid rgba(139, 226, 255, 0.15); border-radius: 15px; background: linear-gradient(145deg, rgba(13, 63, 101, 0.42), rgba(6, 27, 48, 0.55)); }
.rankings-profile-stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 39px; height: 39px; border: 1px solid rgba(113, 225, 255, 0.28); border-radius: 12px; color: var(--cyan); background: rgba(56, 190, 239, 0.11); font-size: 19px; font-weight: 900; }
.rankings-profile-stat > div { display: grid; min-width: 0; gap: 2px; }
.rankings-profile-stat > div > span { color: #86afc3; font-size: 10px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.rankings-profile-stat strong { overflow: hidden; color: #e8fbff; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.rankings-profile-stat small { color: #9bd8ea; font-size: 11px; }
.rankings-profile-dungeons { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(140, 226, 255, 0.12); }
.rankings-profile-section-head p { margin: 0 0 3px; color: #7daebf; font-size: 10px; font-weight: 900; letter-spacing: 0.11em; text-transform: uppercase; }
.rankings-profile-section-head h3 { margin: 0; color: #eafaff; font-size: 20px; }
.rankings-profile-dungeon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 13px; }
.rankings-profile-dungeon { position: relative; min-height: 190px; overflow: hidden; padding: 15px; border: 1px solid rgba(140, 226, 255, 0.14); border-radius: 15px; background: rgba(3, 22, 39, 0.54); }
.rankings-profile-dungeon::after { content: ""; position: absolute; right: -48px; bottom: -58px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(80, 204, 255, 0.14), transparent 67%); pointer-events: none; }
.rankings-profile-dungeon-head { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; }
.rankings-profile-dungeon-head > span { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid rgba(110, 223, 255, 0.25); border-radius: 10px; color: var(--cyan); background: rgba(67, 191, 239, 0.10); font-size: 14px; }
.rankings-profile-dungeon-head > div { display: grid; min-width: 0; gap: 1px; }
.rankings-profile-dungeon-head strong { overflow: hidden; color: #e6faff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.rankings-profile-dungeon-head small { color: #84b5c9; font-size: 9.5px; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.rankings-profile-dungeon-status { position: relative; z-index: 1; display: inline-flex; margin-top: 13px; padding: 3px 8px; border: 1px solid rgba(112, 225, 255, 0.18); border-radius: 999px; color: #a8e7f8; background: rgba(57, 184, 232, 0.08); font-size: 9.5px; font-weight: 850; }
.rankings-profile-dungeon-status.is-preparing { color: #bacbd3; border-color: rgba(177, 205, 215, 0.16); background: rgba(172, 199, 210, 0.07); }
.rankings-profile-dungeon-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 2px; margin: 14px 0 0; }
.rankings-profile-dungeon-stats dt { margin: 0; color: #82adbf; font-size: 10px; }
.rankings-profile-dungeon-stats dd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 9px; color: #e3f8ff; font-size: 12px; font-weight: 850; }
.rankings-profile-dungeon-stats dd small { flex: 0 0 auto; color: #87d6ed; font-size: 9.5px; font-weight: 800; }
.rankings-profile-loading { display: grid; justify-items: center; min-height: 310px; padding: 44px 22px; color: #a7cbda; text-align: center; }
.rankings-profile-loading > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 12px; border: 1px solid rgba(112, 225, 255, 0.24); border-radius: 13px; color: var(--cyan); background: rgba(67, 193, 241, 0.10); font-size: 23px; animation: statusPulse 1.1s ease-in-out infinite; }
.rankings-profile-loading strong { color: #e9fbff; font-size: 15px; }
.rankings-profile-loading p { max-width: 330px; margin: 7px 0 0; color: #8fb7c8; font-size: 12px; line-height: 1.5; }
.rankings-profile-error > span { color: #ffc2cb; border-color: rgba(255, 137, 153, 0.26); background: rgba(255, 119, 138, 0.10); animation: none; }

@media (max-width: 740px) {
  .rankings-profile-modal { align-items: end; padding: 10px; }
  .rankings-profile-dialog { width: 100%; max-height: calc(100vh - 20px); padding: 22px 18px; border-radius: 20px; }
  .rankings-profile-head { gap: 13px; }
  .rankings-profile-avatar { width: 64px; height: 64px; border-radius: 16px; }
  .rankings-profile-overview, .rankings-profile-dungeon-grid { grid-template-columns: 1fr; }
  .rankings-profile-dungeon { min-height: 0; }
}
