/* styles.css — Crystal Tiers · dark esports */
@import url('https://fonts.googleapis.com/css2?family=Saira:wght@400;500;600;700&family=Saira+Condensed:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0a0c11;
  --bg2: #0d1017;
  --panel: #12151d;
  --panel2: #161a23;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.11);
  --txt: #e9ecf1;
  --muted: #9aa6b8;
  --faint: #5f6b7e;
  --accent: #f5c518;
  --accent-glow: 245,197,24;
  --radius: 12px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(var(--accent-glow), .07), transparent 60%),
    radial-gradient(900px 480px at 10% 0%, rgba(91,141,239,.05), transparent 55%),
    var(--bg);
  color: var(--txt);
  font-family: 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
.app { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 64px; position: relative; z-index: 1; }

/* ---------- ambient layer ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(4,6,10,.55) 100%);
}
button { font-family: inherit; cursor: pointer; color: inherit; }
::selection { background: rgba(var(--accent-glow), .3); }

/* ---------- header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 0 14px;
  background: linear-gradient(180deg, var(--bg) 62%, rgba(10,12,17,0));
  backdrop-filter: blur(2px);
}
.hdr-l { display: flex; align-items: center; gap: 30px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo-mark {
  color: var(--accent); font-size: 18px; line-height: 1;
  filter: drop-shadow(0 0 10px rgba(var(--accent-glow), .55));
}
.logo-mark.sm { font-size: 12px; }
.logo-text {
  font-family: 'Saira Condensed', sans-serif; font-weight: 700;
  font-size: 22px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.nav { display: flex; gap: 4px; }
.nav-tab {
  position: relative; background: none; border: 0; padding: 8px 14px;
  font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 8px;
  transition: .15s; letter-spacing: .01em;
}
.nav-tab:hover { color: var(--txt); background: var(--panel); }
.nav-tab.active { color: var(--txt); background: var(--panel2); }
.nav-tab.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--accent); border-radius: 2px; box-shadow: 0 0 8px rgba(var(--accent-glow), .6);
}
.nav-dot {
  display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: middle;
  background: #ff5d5d; border-radius: 50%; box-shadow: 0 0 7px #ff5d5d;
}
.hdr-r { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; justify-content: flex-end; min-width: 0; flex-wrap: wrap; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 8px 11px; transition: .15s; min-width: 150px; flex: 1 1 150px; max-width: 240px;
}
.search:focus-within { border-color: rgba(var(--accent-glow), .5); background: var(--panel2); }
.search-i { color: var(--faint); font-size: 16px; }
.search input { background: none; border: 0; outline: 0; color: var(--txt); font-size: 14px; width: 100%; font-family: inherit; }
.search input::placeholder { color: var(--faint); }
.search-x { background: none; border: 0; color: var(--faint); font-size: 11px; padding: 2px; }
.search-x:hover { color: var(--txt); }
.sync {
  display: flex; align-items: center; gap: 7px; position: relative;
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px 7px 10px;
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.sync-txt b { color: var(--txt); font-weight: 700; }
.sync-pulse {
  width: 7px; height: 7px; border-radius: 50%; background: #46d17e; box-shadow: 0 0 0 0 rgba(70,209,126,.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(70,209,126,.5); } 70% { box-shadow: 0 0 0 7px rgba(70,209,126,0); } 100% { box-shadow: 0 0 0 0 rgba(70,209,126,0); } }
.sync.demo { border-color: rgba(224,162,60,.4); }
.sync.demo .sync-pulse { background: #e0a23c; animation: pulseAmber 2.4s infinite; }
@keyframes pulseAmber { 0% { box-shadow: 0 0 0 0 rgba(224,162,60,.5); } 70% { box-shadow: 0 0 0 7px rgba(224,162,60,0); } 100% { box-shadow: 0 0 0 0 rgba(224,162,60,0); } }

/* server IP click-to-copy */
.serverip {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel));
  border: 1px solid color-mix(in srgb, var(--accent) 38%, var(--line)); border-radius: 9px;
  padding: 6px 11px; transition: .15s; white-space: nowrap;
}
.serverip:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 0 16px -4px rgba(var(--accent-glow), .55); transform: translateY(-1px); }
.serverip:active { transform: translateY(0); }
.serverip-l { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: var(--faint); }
.serverip-v { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: .02em; color: var(--accent); }
.serverip.copied .serverip-v { color: #46d17e; }
.serverip-ico { display: inline-flex; color: var(--faint); }
.serverip:hover .serverip-ico { color: var(--accent); }
@media (max-width: 1040px) { .sync-txt { display: none; } .sync { padding: 7px 9px; } }
@media (max-width: 860px) { .serverip-l { display: none; } }
@media (max-width: 720px) { .serverip { display: none; } }

/* ---------- filters ---------- */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 20px; flex-wrap: wrap; }
.region-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 11px; font-size: 13px; font-weight: 600; color: var(--muted); transition: .14s;
}
.chip:hover { border-color: var(--line2); color: var(--txt); }
.chip.active { background: var(--panel2); color: var(--txt); border-color: rgba(var(--accent-glow), .45); }
.chip-n { font-size: 11px; color: var(--faint); font-weight: 700; }
.chip.active .chip-n { color: var(--accent); }
.result-count { font-size: 13px; color: var(--faint); font-weight: 600; }

/* ---------- podium ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: end; margin-bottom: 26px; }
.podium-col {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 14px 0; position: relative; transition: .18s; overflow: hidden;
}
.podium-col:hover { border-color: var(--line2); transform: translateY(-2px); }
.podium-col[style*="--gc"] {
  border-color: color-mix(in srgb, var(--gc) 40%, var(--line));
  overflow: visible; position: relative;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 20%, transparent), 0 14px 40px -18px var(--gc);
}
.podium-col[style*="--gc"]:hover {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 38%, transparent), 0 20px 52px -10px var(--gc), 0 0 46px -6px var(--gc);
}
/* spinning glow ring that hugs the card outline */
@property --pang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.podium-col[style*="--gc"]::before {
  content: ''; position: absolute; inset: -4px; border-radius: 19px; z-index: 3; pointer-events: none;
  padding: 11px;
  background: conic-gradient(from var(--pang),
    transparent 0deg, var(--gc) 50deg, transparent 125deg,
    transparent 235deg, var(--gc) 310deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  filter: blur(6px);
  opacity: .95;
  animation: podSpin 4.4s linear infinite;
}
.podium-1::before { animation-duration: 3.4s; }
.podium-2::before { animation-duration: 5.2s; animation-direction: reverse; }
.podium-3::before { animation-duration: 4.4s; animation-delay: -1.4s; }
@keyframes podSpin { to { --pang: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .podium-col[style*="--gc"]::before { animation: none; }
}
.podium-medal {
  position: absolute; top: 12px; left: 12px; width: 24px; height: 24px; border-radius: 7px;
  display: grid; place-items: center; font-family: 'Saira Condensed'; font-weight: 700; font-size: 15px;
}
.podium-trophy {
  display: inline-flex; margin: 4px 0 10px;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--tc) 70%, transparent)) drop-shadow(0 2px 5px rgba(0,0,0,.5));
  animation: trophyFloat 3.2s ease-in-out infinite;
}
.podium-trophy svg { display: block; }
@keyframes trophyFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 9px color-mix(in srgb, var(--tc) 60%, transparent)); }
  50% { transform: translateY(-3px); filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tc) 85%, transparent)); }
}
@media (prefers-reduced-motion: reduce) { .podium-trophy { animation: none; } }
.podium-name { font-weight: 800; font-size: 16px; margin-top: 4px; }
.podium-sub { display: flex; gap: 6px; align-items: center; }
.podium-title { font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.podium-bar {
  width: 100%; margin-top: 10px; border: 1px solid; border-bottom: 0; border-radius: 10px 10px 0 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 14px;
}
.podium-pts { font-family: 'Saira Condensed'; font-weight: 700; font-size: 30px; line-height: 1; }
.podium-pts-l { font-size: 10px; letter-spacing: .18em; color: var(--faint); font-weight: 700; }

/* ---------- rank list ---------- */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-head {
  display: grid; grid-template-columns: 46px 44px 1fr 76px 78px; align-items: center; gap: 14px;
  padding: 4px 16px 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--faint); font-weight: 700;
}
.rank-row {
  display: grid; grid-template-columns: 46px 44px 1fr 76px 78px; align-items: center; gap: 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 16px;
  text-align: left; transition: .14s; width: 100%;
}
.rank-row:hover { background: var(--panel2); border-color: var(--line2); transform: translateX(2px); }
.rank-row.top { background: linear-gradient(90deg, rgba(var(--accent-glow), .06), var(--panel) 40%); }
.rank-row.top {
  border-color: color-mix(in srgb, var(--gc) 45%, var(--line));
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 14%, var(--panel)), var(--panel) 46%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 22%, transparent), 0 6px 26px -10px var(--gc);
}
.rank-row.top::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 11px 0 0 11px;
  background: var(--gc); box-shadow: 0 0 14px 1px var(--gc);
}
.rank-row.top { position: relative; overflow: hidden; }
.rank-row.top:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 34%, transparent), 0 8px 32px -8px var(--gc); }
.rank-list.compact .rank-row, .rank-list.compact .rank-head { grid-template-columns: 38px 32px 1fr 64px 66px; gap: 10px; padding-top: 7px; padding-bottom: 7px; }
.rank-num { font-family: 'Saira Condensed'; font-weight: 700; font-size: 22px; color: var(--muted); text-align: center; }
.rank-num.sm { font-size: 15px; }
.rank-name { display: flex; flex-direction: column; gap: 1px; font-weight: 700; font-size: 15px; min-width: 0; }
.rank-name > :first-child, .rank-card-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-title { font-size: 11.5px; font-weight: 600; letter-spacing: .01em; }
.rank-region, .rank-tier { display: flex; }
.rank-pts { font-family: 'Saira Condensed'; display: flex; align-items: baseline; gap: 4px; justify-content: flex-end; }
.rank-pts b { font-size: 20px; font-weight: 700; }
.rank-pts i { font-style: normal; font-size: 11px; color: var(--faint); }

/* ---------- rank cards ---------- */
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.rank-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px 14px; transition: .16s;
}
.rank-card:hover { background: var(--panel2); border-color: var(--line2); transform: translateY(-3px); }
.rank-card.top { background: linear-gradient(180deg, rgba(var(--accent-glow), .07), var(--panel)); }
.rank-card.top {
  border-color: color-mix(in srgb, var(--gc) 45%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--gc) 16%, var(--panel)), var(--panel) 70%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 22%, transparent), 0 10px 30px -12px var(--gc);
}
.rank-card.top:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--gc) 34%, transparent), 0 14px 38px -10px var(--gc); }
.rank-card-top { width: 100%; display: flex; justify-content: space-between; align-items: center; }
.rank-card-name { font-weight: 800; font-size: 15px; max-width: 100%; }
.rank-card-title { font-size: 11.5px; font-weight: 700; margin-top: -3px; }
.rank-card-foot { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; }

/* ---------- tier list ---------- */
.tl-columns { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; align-items: start; }
.tl-stacked { display: flex; flex-direction: column; gap: 12px; }
.tl-col { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tl-head {
  display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-top: 2px solid;
}
.tl-head-label { font-family: 'Saira Condensed', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: .02em; }
.tl-head-count { margin-left: auto; font-family: 'Saira Condensed'; font-size: 13px; font-weight: 700; color: var(--faint); }
.tl-body { display: flex; flex-direction: column; gap: 5px; padding: 9px; }
.tl-empty { color: var(--faint); font-size: 12px; padding: 8px 4px; }
.tl-player {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--rc);
  border-radius: 7px; padding: 6px 9px; transition: .13s;
}
.tl-player:hover { background: var(--panel2); border-color: var(--line2); border-left-color: var(--rc); transform: translateX(2px); }
.tl-player-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-chev { flex: none; display: flex; color: var(--faint); }
.tl-chev.lt { opacity: .55; }
/* stacked = horizontal bands */
.tl-stacked .tl-col { display: grid; grid-template-columns: 130px 1fr; }
.tl-stacked .tl-head { border-top: 0; border-left: 3px solid; flex-direction: column; align-items: flex-start; gap: 5px; justify-content: center; }
.tl-stacked .tl-head-count { margin-left: 0; }
.tl-stacked .tl-body { flex-direction: row; flex-wrap: wrap; }
.tl-stacked .tl-player { width: auto; }

/* ---------- recent ---------- */
.recent { max-width: 760px; margin: 0 auto; }
.recent-list { display: flex; flex-direction: column; gap: 6px; }
.recent-row {
  display: grid; grid-template-columns: 20px 32px 1fr auto auto 70px; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px; text-align: left; transition: .14s;
}
.recent-row:hover { background: var(--panel2); border-color: var(--line2); }
.recent-arrow { font-size: 12px; text-align: center; }
.recent-arrow.up { color: #46d17e; } .recent-arrow.down { color: #ff5d5d; }
.recent-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.recent-move { display: flex; align-items: center; gap: 7px; }
.recent-to { color: var(--faint); }
.recent-verb { font-size: 12px; font-weight: 700; }
.recent-verb.up { color: #46d17e; } .recent-verb.down { color: #ff9a4d; }
.recent-time { font-size: 12px; color: var(--faint); text-align: right; font-weight: 600; }

/* ---------- profile panel ---------- */
.profile-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(6,8,12,.6); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.profile {
  width: 380px; max-width: 92vw; height: 100%; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel2), var(--bg2)); border-left: 1px solid var(--line2);
  padding: 26px 24px 30px; position: relative; animation: slide .26s cubic-bezier(.2,.8,.2,1);
}
@keyframes slide { from { transform: translateX(30px); opacity: .4; } }
.profile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 130px; background: linear-gradient(180deg, rgba(var(--tg), .14), transparent); pointer-events: none; }
.profile-close { position: absolute; top: 16px; right: 16px; background: var(--panel); border: 1px solid var(--line); width: 30px; height: 30px; border-radius: 8px; color: var(--muted); font-size: 13px; }
.profile-close:hover { color: var(--txt); border-color: var(--line2); }
.profile-hero { position: relative; display: inline-flex; }
.profile-rankbadge { position: absolute; bottom: -6px; right: -10px; background: var(--tc); color: #10131a; font-family: 'Saira Condensed'; font-weight: 700; font-size: 14px; padding: 2px 8px; border-radius: 7px; border: 2px solid var(--bg2); }
.profile-name { font-size: 24px; font-weight: 800; margin: 14px 0 2px; }
.profile-title { font-size: 14px; font-weight: 700; }
.profile-meta { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.profile-dot { color: var(--faint); }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 22px 0; }
.pstat { background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 13px 12px; display: flex; flex-direction: column; gap: 8px; }
.pstat-l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.pstat-v { font-family: 'Saira Condensed'; font-size: 26px; font-weight: 700; }
.profile-section-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 700; margin-bottom: 10px; }
.profile-history { display: flex; flex-direction: column; gap: 4px; }
.phist-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; font-size: 13px; }
.phist-row.current { border-color: rgba(var(--tg), .4); }
.phist-txt { color: var(--muted); font-weight: 600; }
.phist-time { font-size: 12px; color: var(--faint); }
.profile-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.profile-foot-l { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.profile-discord { font-size: 13px; color: #8aa0e8; font-weight: 700; }

/* cooldown / can-test-now badge */
.profile-cd {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  margin-top: 16px; padding: 11px 14px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel);
}
.profile-cd-dot { width: 9px; height: 9px; border-radius: 50%; }
.profile-cd-main { font-size: 14px; font-weight: 800; }
.profile-cd-sub { font-size: 12px; color: var(--faint); font-weight: 600; }
.profile-cd.ready {
  border-color: rgba(70,209,126,.45);
  background: linear-gradient(180deg, rgba(70,209,126,.12), var(--panel));
}
.profile-cd.ready .profile-cd-dot { background: #46d17e; box-shadow: 0 0 10px #46d17e; animation: pulse 2.4s infinite; }
.profile-cd.ready .profile-cd-main { color: #5fe39a; }
.profile-cd.wait {
  border-color: rgba(224,162,60,.4);
  background: linear-gradient(180deg, rgba(224,162,60,.1), var(--panel));
}
.profile-cd.wait .profile-cd-dot { background: #e0a23c; box-shadow: 0 0 8px rgba(224,162,60,.7); }
.profile-cd.wait .profile-cd-main { color: #eab456; }

/* NameMC button */
.namemc-btn {
  display: flex; align-items: center; gap: 9px; margin-top: 20px;
  padding: 12px 14px; border-radius: 11px; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel));
  color: var(--txt); font-weight: 700; font-size: 14px; transition: .15s;
}
.namemc-btn svg { color: var(--accent); flex: none; }
.namemc-btn .namemc-ext { margin-left: auto; color: var(--faint); }
.namemc-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--line));
  box-shadow: 0 0 18px -5px rgba(var(--accent-glow), .55); transform: translateY(-1px);
}
.namemc-btn:hover .namemc-ext { color: var(--accent); }

/* ---------- footer / empty ---------- */
.ftr { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.ftr-note { color: var(--faint); }
.empty { text-align: center; color: var(--faint); padding: 60px 0; font-size: 15px; }

/* ---------- boot / loading screen ---------- */
#boot {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(820px 520px at 50% 36%, rgba(245,197,24,.09), transparent 60%), var(--bg);
  transition: opacity .55s ease, visibility .55s;
}
#boot.hide { opacity: 0; visibility: hidden; }
.boot-stage { display: flex; flex-direction: column; align-items: center; }
.boot-crystal { position: relative; width: 78px; height: 78px; display: grid; place-items: center; margin-bottom: 30px; }
.boot-crystal::before {
  content: ''; width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(145deg, #ffe892, #f5c518 46%, #c08e07);
  box-shadow: 0 0 0 1px rgba(245,197,24,.45), inset 0 2px 9px rgba(255,255,255,.55);
  animation: bootSpin 2.6s cubic-bezier(.6,.1,.4,.9) infinite, bootGlow 1.7s ease-in-out infinite;
}
.boot-crystal span {
  position: absolute; width: 46px; height: 46px; border: 1.5px solid rgba(245,197,24,.55);
  border-radius: 14px; transform: rotate(45deg); animation: bootRing 1.9s ease-out infinite;
}
.boot-crystal span:nth-child(2) { animation-delay: .95s; }
@keyframes bootSpin { 0% { transform: rotate(45deg); } 100% { transform: rotate(405deg); } }
@keyframes bootGlow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(245,197,24,.45), 0 0 22px 2px rgba(245,197,24,.4), inset 0 2px 9px rgba(255,255,255,.55); }
  50% { box-shadow: 0 0 0 1px rgba(245,197,24,.6), 0 0 44px 9px rgba(245,197,24,.72), inset 0 2px 9px rgba(255,255,255,.6); }
}
@keyframes bootRing { 0% { opacity: .7; transform: rotate(45deg) scale(1); } 100% { opacity: 0; transform: rotate(45deg) scale(2.5); } }
.boot-word {
  font-family: Arial, Helvetica, sans-serif; font-weight: 700; font-size: 30px;
  letter-spacing: .12em; text-indent: .12em; text-transform: uppercase; color: var(--txt);
  animation: bootRise .7s .05s both;
}
.boot-track { width: 210px; height: 4px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 24px; }
.boot-fill {
  width: 38%; height: 100%; border-radius: 3px; box-shadow: 0 0 12px rgba(245,197,24,.6);
  background: linear-gradient(90deg, rgba(245,197,24,0), #ffe892, #f5c518, rgba(245,197,24,0));
  animation: bootFill 1.25s ease-in-out infinite;
}
@keyframes bootFill { 0% { transform: translateX(-130%); } 100% { transform: translateX(375%); } }
.boot-cap { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--muted); animation: bootRise .7s .15s both; }
.boot-dots::after { content: ''; animation: bootDots 1.4s steps(4, end) infinite; }
@keyframes bootDots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes bootRise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .boot-crystal::before, .boot-crystal span, .boot-fill, .boot-word, .boot-cap { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- entrance + tab transitions (transform-only: never strands content invisible) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .main { animation: viewIn .42s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes viewIn { from { transform: translateY(10px); } to { transform: none; } }
  .rank-row, .rank-card, .tl-col, .recent-row { animation: rowIn .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rowIn { from { transform: translateY(9px); } to { transform: none; } }
  .rank-list .rank-row:nth-child(2) { animation-delay: .02s; }
  .rank-list .rank-row:nth-child(3) { animation-delay: .04s; }
  .rank-list .rank-row:nth-child(4) { animation-delay: .06s; }
  .rank-list .rank-row:nth-child(5) { animation-delay: .08s; }
  .rank-list .rank-row:nth-child(6) { animation-delay: .10s; }
  .rank-list .rank-row:nth-child(7) { animation-delay: .12s; }
  .rank-list .rank-row:nth-child(n+8) { animation-delay: .14s; }
  .podium-col { animation: podIn .6s cubic-bezier(.2,.8,.2,1) both; }
  .podium-col:nth-child(1) { animation-delay: .12s; }
  .podium-col:nth-child(2) { animation-delay: 0s; }
  .podium-col:nth-child(3) { animation-delay: .2s; }
  @keyframes podIn { from { transform: translateY(22px) scale(.96); } to { transform: none; } }
  .tl-col:nth-child(2) { animation-delay: .05s; }
  .tl-col:nth-child(3) { animation-delay: .1s; }
  .tl-col:nth-child(4) { animation-delay: .15s; }
  .tl-col:nth-child(5) { animation-delay: .2s; }
}

/* interactive sheen on podium */
.podium-col { will-change: transform; }
.podium-col::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px 160px at var(--mx, 50%) var(--my, 0%), rgba(255,255,255,.10), transparent 60%);
}
.podium-col:hover::after { opacity: 1; }

/* ---------- live activity toasts ---------- */
.live-wrap { position: fixed; left: 22px; bottom: 22px; z-index: 90; pointer-events: none; }
.live-toast {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px 11px 11px;
  background: linear-gradient(180deg, rgba(22,26,35,.96), rgba(15,18,25,.96));
  border: 1px solid var(--line2); border-radius: 13px; min-width: 250px;
  box-shadow: 0 18px 44px -16px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
  animation: toastIn .5s cubic-bezier(.2,.9,.2,1) both, toastOut .5s 4.5s both;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(-26px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-26px) scale(.96); } }
.live-led { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.live-led.up { background: #46d17e; box-shadow: 0 0 10px #46d17e; }
.live-led.down { background: #ff7a4d; box-shadow: 0 0 10px #ff7a4d; }
.live-body { display: flex; flex-direction: column; gap: 4px; }
.live-name { font-size: 13.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; }
.live-sub { display: flex; align-items: center; gap: 7px; }
.live-verb { font-size: 12px; font-weight: 600; }
.live-verb.up { color: #46d17e; } .live-verb.down { color: #ff9a4d; }
.live-tag { margin-left: auto; align-self: flex-start; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #ff5d5d; }
@media (max-width: 720px) { .live-wrap { left: 12px; right: 12px; bottom: 12px; } .live-toast { min-width: 0; } }

@media (max-width: 980px) {
  .tl-columns { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .hdr { flex-wrap: wrap; gap: 12px; }
  .hdr-l { gap: 18px; }
  .sync { display: none; }
  .tl-columns { grid-template-columns: repeat(2, 1fr); }
  .podium { gap: 8px; }
  .rank-head, .rank-row { grid-template-columns: 34px 30px 1fr 58px 62px; gap: 8px; padding-left: 11px; padding-right: 11px; }
  .rank-title { display: none; }
}
