/* ══════════════ Punks — Richlist Page ══════════════ */

body {
  background: var(--dark);
  color: var(--text);
  font-family: "Rajdhani", sans-serif;
  min-height: 100vh;
}

/* ── Nav ── */
.rl-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 20px;
  background: rgba(6,11,18,.92); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--blue-border);
}
.rl-nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.rl-nav-logo img {
  width: 36px; height: 36px; image-rendering: pixelated;
  border-radius: 5px; border: 2px solid var(--blue-border);
}
.rl-nav-text {
  font-family: "Press Start 2P", monospace;
  font-size: 14px; color: #ffffff;
  text-shadow: none;
}
.rl-nav-links {
  display: flex; align-items: center;
}
.rl-nav-links a {
  font-family: "Share Tech Mono", monospace;
  font-size: 14px; letter-spacing: 2px;
  color: rgba(200,216,232,.65); text-decoration: none;
  text-transform: uppercase; padding: 0 14px;
  position: relative; transition: color .2s;
}
.rl-nav-links a:hover { color: var(--blue-bright); }
.rl-nav-links a.active { color: var(--yellow); }
.rl-nav-links a::before {
  content: "|"; position: absolute; left: -1px; top: 50%;
  transform: translateY(-50%); color: var(--blue-border);
  font-size: 14px; pointer-events: none;
}
.rl-nav-links a:first-child::before { display: none; }
.rl-nav-back {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px; color: var(--blue-bright);
  text-decoration: none; letter-spacing: 1px;
}
.rl-nav-back:hover { text-decoration: underline; }

/* ── Page layout ── */
.rl-page { padding-top: 80px; }
.rl-page-header { text-align: center; padding: 30px 20px 0; }
.rl-page-header .sec-title { margin-bottom: 0; }
.sec-hd { text-align: center; margin-bottom: 48px; opacity: 1; }
.rl-content-header {
  padding: 0 20px;
}
.rl-breadcrumb {
  font-family: "Share Tech Mono", monospace;
  font-size: 13px; color: var(--text-dim);
  letter-spacing: 2px; margin-bottom: 24px;
}
.rl-breadcrumb a { color: var(--blue-bright); text-decoration: none; }
.rl-breadcrumb a:hover { text-decoration: underline; }
.sec-title {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(20px,3vw,36px); color: #fff; line-height: 1.6;
}
.sec-title .yl { color: var(--yellow); }
.sec-sub {
  font-family: "Share Tech Mono", monospace;
  font-size: 14px; color: var(--text-dim);
  letter-spacing: 3px; margin-top: 12px; text-transform: uppercase;
}
.rl-content { padding: 20px 20px 60px; }

/* ── Distribution bands ── */
.rl-dist {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; max-width: 900px; margin: 0 auto 40px;
}
.rl-dist-band {
  font-family: "Share Tech Mono", monospace;
  font-size: 12px; letter-spacing: 1px;
  padding: 8px 16px; border-radius: 4px;
  background: rgba(26,159,212,.04);
  border: 1px solid rgba(26,159,212,.1);
  color: var(--text-dim);
}
.rl-dist-band strong { color: var(--blue-bright); font-weight: normal; }

/* ══════════════ SHARED STYLES ══════════════
   These are identical to the index.css richlist block.
   Duplicated here because richlist.php does not load index.css. */

.fx-underline { position: relative; overflow: hidden; }
.fx-underline::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--blue-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.fx-underline:hover::after { transform: scaleX(1); }

.rl-overview { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; max-width: 900px; margin: 0 auto 40px; }
.rl-ov-block { text-align: center; padding: 24px 12px; background: rgba(26,159,212,.03); border: 1px solid rgba(26,159,212,.08); transition: border-color .2s, background .2s; }
.rl-ov-block:hover { border-color: rgba(64,196,255,.4); background: rgba(26,159,212,.08); }
.rl-ov-num { font-family: "Press Start 2P", monospace; font-size: clamp(18px,2.5vw,28px); color: var(--blue-bright); text-shadow: 0 0 20px var(--blue-glow); display: block; margin-bottom: 10px; }
.rl-ov-label { font-family: "Share Tech Mono", monospace; font-size: 13px; letter-spacing: 3px; color: var(--text-dim); text-transform: uppercase; }

.rl-wrap { max-width: 900px; margin: 0 auto; }
.rl-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.rl-table thead th { font-family: "Share Tech Mono", monospace; font-size: 12px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--blue-border); }
.rl-table thead th.r { text-align: right; }
.rl-table thead th.c { text-align: center; }
.rl-table tbody tr { transition: background .15s; cursor: pointer; }
.rl-table tbody tr:hover { background: rgba(26,159,212,.06); }
.rl-table tbody td { font-family: "Share Tech Mono", monospace; font-size: 14px; padding: 0 12px; height: 52px; vertical-align: middle; border-bottom: 1px solid rgba(26,159,212,.07); }
.rl-table tbody td.r { text-align: right; }
.rl-table tbody td.c { text-align: center; }

.rl-rank { font-family: "Press Start 2P", monospace; font-size: 14px; color: var(--text-dim); width: 50px; text-align: center; }
.rl-rank.gold   { color: #ffd700; text-shadow: 0 0 10px rgba(255,215,0,.4); }
.rl-rank.silver { color: #c0c0c0; text-shadow: 0 0 8px rgba(192,192,192,.3); }
.rl-rank.bronze { color: #cd7f32; text-shadow: 0 0 8px rgba(205,127,50,.3); }

.rl-avatar-thumb { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue-border); vertical-align: middle; object-fit: cover; }
.rl-avatar-thumb.rl-punk-pixelated { image-rendering: pixelated; border-radius: 4px; }

.rl-tier { display: inline-flex; align-items: center; gap: 4px; font-family: "Press Start 2P", monospace; font-size: 7px; letter-spacing: 1px; padding: 3px 7px 3px 5px; border-radius: 3px; white-space: nowrap; margin-left: 8px; vertical-align: middle; }
.rl-tier svg { width: 14px; height: 14px; flex-shrink: 0; }
.rl-tier.whale   { color: #40c4ff; background: rgba(64,196,255,.1);   border: 1px solid rgba(64,196,255,.3); }
.rl-tier.shark   { color: #8E44AD; background: rgba(142,68,173,.1);   border: 1px solid rgba(142,68,173,.3); }
.rl-tier.dolphin { color: #00ff88; background: rgba(0,255,136,.1);    border: 1px solid rgba(0,255,136,.3); }
.rl-tier.fish    { color: #95A5A6; background: rgba(149,165,166,.08); border: 1px solid rgba(149,165,166,.2); }

.rl-addr { color: var(--blue-bright); letter-spacing: .5px; }
.rl-count { font-family: "Press Start 2P", monospace; font-size: 16px; color: var(--yellow); text-shadow: 0 0 12px rgba(255,226,52,.25); }

.rl-pct-bar { display: flex; align-items: center; gap: 8px; }
.rl-pct-track { flex: 1; height: 4px; background: rgba(26,159,212,.1); border-radius: 2px; overflow: hidden; min-width: 40px; }
.rl-pct-fill { height: 100%; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--blue-bright)); transition: width .6s ease; }
.rl-pct-text { font-size: 12px; color: var(--text-dim); min-width: 45px; text-align: right; }

.rl-best { display: inline-block; font-size: 11px; padding: 2px 6px; border-radius: 2px; border: 1px solid; white-space: nowrap; }
.rl-best.tier-legendary { color: #E74C3C; background: rgba(231,76,60,.1);   border-color: rgba(231,76,60,.3); }
.rl-best.tier-epic      { color: #FFB026; background: rgba(255,176,38,.1);  border-color: rgba(255,176,38,.3); }
.rl-best.tier-rare      { color: #8E44AD; background: rgba(142,68,173,.1);  border-color: rgba(142,68,173,.3); }
.rl-best.tier-uncommon  { color: #3498DB; background: rgba(52,152,219,.1);  border-color: rgba(52,152,219,.3); }
.rl-best.tier-common    { color: #27AE60; background: rgba(39,174,96,.1);   border-color: rgba(39,174,96,.3); }
.rl-best.tier-standard  { color: #95A5A6; background: rgba(149,165,166,.08);border-color: rgba(149,165,166,.2); }

.rl-table tbody tr.rl-me { background: rgba(255,226,52,.04); }
.rl-table tbody tr.rl-me:hover { background: rgba(255,226,52,.08); }
.rl-table tbody tr.rl-me td:first-child { border-left: 2px solid var(--yellow); box-shadow: inset 4px 0 12px -4px rgba(255,226,52,.15); }
.rl-you { display: inline-block; font-family: "Press Start 2P", monospace; font-size: 6px; letter-spacing: 1px; padding: 2px 6px; border-radius: 2px; color: var(--yellow); background: rgba(255,226,52,.1); border: 1px solid rgba(255,226,52,.3); margin-left: 6px; vertical-align: middle; }

.rl-cta { text-align: center; margin-top: 32px; }
.btn-rl { display: inline-block; font-family: "Share Tech Mono", monospace; font-size: 14px; letter-spacing: 2px; color: var(--blue-bright); text-decoration: none; padding: 12px 28px; border: 1px solid rgba(26,159,212,.08); background: rgba(26,159,212,.03); transition: all .25s; cursor: pointer; }
.btn-rl:hover { border-color: rgba(64,196,255,.4); background: rgba(26,159,212,.08); text-shadow: 0 0 10px var(--blue-glow); }

@media(max-width:700px) {
  .rl-overview { grid-template-columns: repeat(2,1fr); }
  .rl-table thead th.hide-m, .rl-table tbody td.hide-m { display: none; }
  .rl-table tbody td { font-size: 12px; padding: 0 8px; }
  .rl-count { font-size: 13px; }
  .rl-rank { font-size: 12px; }
  .rl-tier { font-size: 6px; padding: 2px 5px 2px 3px; }
  .rl-tier svg { width: 11px; height: 11px; }
  .rl-nav-links { display: none; }
}
