/* Rankings only: larger hero selection, modern tabs, and readable character summaries. */
body[data-route="rankings"] #main-content .ranking-experience { --rank-blue: #336b94; --rank-line: #a9cce3; }
body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card { padding: 26px; overflow: visible; }
body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card > .feature-card-head { justify-content: flex-start; gap: 12px; padding: 0 0 18px; margin-bottom: 18px; }
.ranking-experience .leaderboard-card > .feature-card-head .feature-status { margin-left: auto; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch { display: flex; flex-wrap: nowrap; gap: 6px; padding: 6px; overflow-x: auto; border: 1px solid #b8d7eb; border-radius: 14px; background: rgba(227,242,251,.85); scrollbar-width: thin; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button { display: flex; flex: 1 0 120px; flex-direction: row; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px; font: 600 13px/1.25 'Segoe UI',Arial,sans-serif; color: #416a86; white-space: nowrap; transition: background .18s, color .18s, box-shadow .18s; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button span { text-decoration: none; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-switch button[aria-pressed="true"] { color: #194a6c; border-color: #93bfdc; background: linear-gradient(#fff,#d7effe); box-shadow: 0 2px 7px #426e8a21, inset 0 -2px #70add3; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-update { margin-top: 10px; text-align: right; color: #56748b; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-options { margin: 12px 0 24px; padding: 8px 0 22px; }
.ranking-hero-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.ranking-experience .ranking-hero-heading .ranking-filter-label { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #466982; }
.ranking-experience .ranking-all-heroes { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; min-height: 38px; border: 1px solid #a9cadf; border-radius: 22px; background: #f4faff; color: #335d79; font: 600 12px/1.2 'Segoe UI',Arial,sans-serif; cursor: pointer; }
.ranking-experience .ranking-all-heroes[aria-pressed="true"] { color: #144e75; border-color: #659fc5; background: #daefff; box-shadow: inset 0 0 0 1px #b7dbf2; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-hero-heading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; margin: 0 0 18px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-hero-heading .ranking-filter-label { order: 2; color: #315e7c; font-size: 13px; font-weight: 800; text-align: center; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; width: 184px; min-height: 164px; padding: 15px 18px 13px; border: 1px solid #82b4d3; border-radius: 16px; background: linear-gradient(155deg,#fff,#e1f2fc); color: #285d80; box-shadow: 0 5px 17px #2f6b9126,inset 0 1px #fff; font: 800 15px/1.2 'Segoe UI',Arial,sans-serif; text-align: center; transition: transform .18s,border-color .18s,box-shadow .18s; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes[aria-pressed="true"] { border-color: #4c94bf; background: linear-gradient(155deg,#fff,#d1ecff); box-shadow: 0 0 0 3px #91c9eb8c,0 7px 20px #2f6b9130,inset 0 1px #fff; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes:hover { transform: translateY(-3px); border-color: #397faa; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-all-heroes:focus-visible { outline: 3px solid #256f9d; outline-offset: 3px; }
.ranking-all-emblem { position: relative; display: block; width: 108px; height: 108px; border: 1px solid #a4cfe8; border-radius: 50%; background: radial-gradient(circle,#f8fdff 18%,#cce8f9 77%,#8fc1df); box-shadow: inset 0 2px 8px #fff,0 4px 11px #397da53d; }
.ranking-all-emblem img { position: absolute; width: 54px; height: 54px; object-fit: contain; filter: drop-shadow(0 2px 3px #214a6e55); }
.ranking-all-emblem img:nth-child(1) { top: -4px; left: -5px; }
.ranking-all-emblem img:nth-child(2) { top: -4px; right: -5px; }
.ranking-all-emblem img:nth-child(3) { bottom: -4px; left: -5px; }
.ranking-all-emblem img:nth-child(4) { bottom: -4px; right: -5px; }
.ranking-all-emblem i { position: absolute; top: 34px; left: 34px; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid #e7f7ff; border-radius: 50%; background: linear-gradient(#5aa1cc,#2d729f); box-shadow: 0 2px 7px #1f557b77; color: #fff; font-size: 19px; }
.ranking-all-title { display: block; letter-spacing: .025em; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters { display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 10px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 132px; padding: 12px 5px 10px; border: 1px solid #b6d3e7; border-radius: 12px; background: linear-gradient(160deg,#fbfefff5,#d9edfacf); color: #41647e; cursor: pointer; transition: transform .18s, border-color .18s, box-shadow .18s; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button:hover { transform: translateY(-3px); border-color: #78afd4; box-shadow: 0 7px 16px #34648122; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button[aria-pressed="true"] { color: #164e76; border-color: #5f9fc8; background: linear-gradient(155deg,#fff,#c3e6ff); box-shadow: inset 0 0 0 2px #b1d9f1,0 5px 14px #467c9b25; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-filter-avatar { width: 70px; height: 70px; filter: drop-shadow(0 3px 5px #21466140); }
.ranking-experience .ranking-class-filters button > span { display: block; min-height: 28px; font: 600 11px/1.25 'Segoe UI',Arial,sans-serif; text-align: center; overflow-wrap: break-word; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-search { align-items: center; gap: 20px; margin-bottom: 20px; }
.ranking-experience .ranking-search-input { border-radius: 10px; background: #f8fcff; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table-scroll { max-height: 650px; border: 1px solid #bed9ea; border-radius: 12px; background: #f6fbffb8; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table { width: 100%; }
body[data-route="rankings"] #main-content .ranking-experience .feature-table td { padding: 9px 12px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-row-avatar { width: 42px; height: 42px; }
.ranking-experience .ranking-character-cell { border-radius: 7px; cursor: pointer; }
.ranking-experience .ranking-character-cell > span { font-weight: 600; }
.ranking-experience .ranking-character-cell:hover > span { color: #1d618e; text-decoration: underline; text-underline-offset: 3px; }
/* Event status and guide windows. */
body[data-route="rankings"] #main-content .ranking-experience .ranking-world-panels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px; margin-top: 32px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-world-card { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 24px 20px 22px; text-align: center; }
.ranking-world-card .warfare-crest { display: grid; place-items: center; align-self: center; width: 56px; height: 56px; margin: 0 0 14px; border: 1px solid #98bfd9; border-radius: 50%; background: radial-gradient(circle at 35% 25%,#fff,#d2eafa 65%,#a7c9e0); box-shadow: 0 0 0 4px #edf8ffb3; color: #507f9e; font-size: 25px; }
body[data-route="rankings"] #main-content .ranking-experience .ranking-world-card h3 { margin: 0 0 12px; color: #58748a; font: 400 21px/1.3 Georgia,'Times New Roman',serif; letter-spacing: .04em; text-transform: uppercase; }
.ranking-world-card .warfare-badge { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: center; margin-bottom: 18px; padding: 5px 10px; border: 1px solid #c2d6e4; border-radius: 20px; background: #edf5fb; color: #587084; font: 600 11px/1.3 'Segoe UI',Arial,sans-serif; }
.ranking-world-card .warfare-badge[data-enabled="true"] { border-color: #99c8be; background: #eefaf5; color: #397065; }
.ranking-world-card .warfare-badge[data-enabled="false"] { border-color: #c7d0d7; background: #f1f4f6; color: #61717b; }
.ranking-world-card .warfare-badge::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.ranking-world-card .warfare-facts { margin: 0; font: 12px/1.5 'Segoe UI',Arial,sans-serif; }
.ranking-world-card .warfare-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #c5dceb; text-align: left; }
.ranking-world-card .warfare-facts dt { color: #587389; }
.ranking-world-card .warfare-facts dd { margin: 0; color: #365e7a; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.ranking-world-card .warfare-note { margin: auto 0 0; padding-top: 16px; color: #6a8192; font: 11px/1.55 'Segoe UI',Arial,sans-serif; }
.ranking-world-card .ranking-guide-copy { margin: 0 0 22px; color: #516e85; font: 14px/1.65 'Segoe UI',Arial,sans-serif; }
.ranking-world-card .ranking-guide-link { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: auto; min-height: 44px; padding: 12px; border: 1px solid #93bdd8; border-radius: 8px; background: linear-gradient(#f8fdff,#d3eaf9); color: #2b5d7e; font: 600 13px/1.3 'Segoe UI',Arial,sans-serif; text-decoration: none; }
.ranking-world-card .ranking-guide-link:hover { background: #cee9fc; border-color: #6da5ca; }
/* Hover, focus, and tap previews contain only published leaderboard fields. */
.ranking-peek { position: fixed; z-index: 10000; width: min(290px,calc(100vw - 24px)); padding: 16px; border: 1px solid #87b7d7; border-radius: 14px; background: linear-gradient(145deg,#fafdfff7,#d9eefcf7); box-shadow: 0 14px 36px #244c6a38,inset 0 0 0 3px #ffffffb0; color: #315974; font: 13px/1.45 'Segoe UI',Arial,sans-serif; backdrop-filter: blur(10px); }
.ranking-peek[hidden] { display: none !important; }
.ranking-peek header { display: flex; align-items: center; gap: 13px; }
.ranking-peek img { width: 70px; height: 70px; object-fit: contain; }
.ranking-peek small { display: block; margin-bottom: 3px; font-size: 10px; letter-spacing: .06em; color: #5b86a2; text-transform: uppercase; }
.ranking-peek strong { display: block; font: 600 19px/1.25 Georgia,serif; overflow-wrap: anywhere; }
.ranking-peek p { margin: 12px 0 0; font-size: 12px; color: #58778e; }
.ranking-peek dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 13px 0 0; }
.ranking-peek dl > div { padding: 8px; border: 1px solid #bed8e9; border-radius: 7px; background: #f6fbffd9; }
.ranking-peek dt { color: #65849b; font-size: 10px; }
.ranking-peek dd { margin: 3px 0 0; color: #244f70; font-weight: 700; }
@media (max-width: 1100px) {
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters { grid-template-columns: repeat(4,minmax(0,1fr)); }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-world-panels { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body[data-route="rankings"] #main-content .ranking-experience .leaderboard-card { padding: 20px 14px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters { gap: 7px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters button { min-height: 110px; padding: 9px 3px; gap: 6px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-filter-avatar { width: 52px; height: 52px; }
  .ranking-experience .ranking-class-filters button > span { font-size: 10px; }
  body[data-route="rankings"] #main-content .ranking-experience .ranking-search { align-items: stretch; gap: 10px; }
  body[data-route="rankings"] #main-content .ranking-experience .feature-card-head h3 { font-size: 19px; }
}
@media (max-width: 370px) {
  body[data-route="rankings"] #main-content .ranking-experience .ranking-class-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ranking-experience *, .ranking-peek { transition: none !important; scroll-behavior: auto !important; }
}

/* Four primary ranking choices. */
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary{display:grid;grid-template-columns:repeat(4,minmax(0,184px));justify-content:center;gap:14px;margin:18px auto 22px}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;width:100%;min-height:164px;padding:15px 8px;border:1px solid #82b4d3;border-radius:16px;background:linear-gradient(155deg,#fff,#e1f2fc);box-shadow:0 5px 17px #2f6b9126,inset 0 1px #fff;color:#285d80;font:800 15px/1.2 'Segoe UI',Arial,sans-serif;text-align:center;cursor:pointer;transition:transform .18s,border-color .18s,box-shadow .18s}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary>button[aria-pressed="true"]{border-color:#4c94bf;background:linear-gradient(155deg,#fff,#d1ecff);box-shadow:0 0 0 3px #91c9eb8c,0 7px 20px #2f6b9130,inset 0 1px #fff}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary>button:hover{transform:translateY(-3px);border-color:#397faa}
body[data-route="rankings"] #main-content .ranking-experience .ranking-primary>button:focus-visible{outline:3px solid #256f9d;outline-offset:3px}
.ranking-primary-emblem{display:grid;place-items:center;width:108px;height:108px;border:1px solid #a4cfe8;border-radius:50%;background:radial-gradient(circle,#f8fdff 18%,#cce8f9 77%,#8fc1df);box-shadow:inset 0 2px 8px #fff,0 4px 11px #397da53d;color:#24638e;font-size:43px}
.ranking-pve-rules{margin:8px 0 20px;padding:16px;border:1px solid #a6cce2;border-radius:12px;background:#eff9ff;color:#315d7a}
.ranking-pve-rules h5{margin:0 0 10px;font:800 16px/1.2 'Segoe UI',Arial,sans-serif}
.ranking-pve-rules>div{display:flex;flex-wrap:wrap;gap:8px}
.ranking-pve-rules>div span{padding:8px 10px;border:1px solid #b7d6e8;border-radius:7px;background:#fff;font-size:12px;font-weight:700}
.ranking-pve-rules strong{color:#165a83}
.ranking-pve-rules p{margin:12px 0 0;font-size:12px;font-weight:600;line-height:1.45}
@media(max-width:700px){body[data-route="rankings"] #main-content .ranking-experience .ranking-primary{grid-template-columns:repeat(2,minmax(0,184px));gap:10px}body[data-route="rankings"] #main-content .ranking-experience .ranking-primary>button{min-height:132px}.ranking-primary-emblem,.ranking-all-emblem{transform:scale(.78);margin:-11px}}
