/* ==========================================================================
   网易联大Tier排行榜 · 暗黑霓虹像素风 设计系统
   © 2026 网易联大Tier排行榜 · 制作 By SR_沫逸
   ========================================================================== */

:root {
  --bg: #07080f;
  --bg2: #0b0e1c;
  --panel: rgba(17, 21, 40, 0.62);
  --panel-solid: #111528;
  --line: rgba(122, 142, 255, 0.14);
  --line-strong: rgba(122, 142, 255, 0.34);
  --txt: #e9edff;
  --dim: #8b93b8;
  --cyan: #2ee6ff;
  --purple: #b06bff;
  --pink: #ff5fa8;
  --green: #3df5a6;
  --gold: #ffd257;
  --g-s: #ff3d5e;
  --g-a: #ff9f2e;
  --g-b: #ffd93d;
  --g-c: #41e08b;
  --g-d: #3aa8ff;
  --g-e: #b06bff;
  --g-l: #9aa2c0;
  --r: 14px;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  --mono: Consolas, "JetBrains Mono", "Courier New", monospace;
  --shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(46, 230, 255, 0.32); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0c16; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2f3f78, #26325c);
  border-radius: 8px;
  border: 2px solid #0a0c16;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3c54a8, #32427a); }

a { color: inherit; text-decoration: none; }
img { display: block; }
button, input, select { font-family: inherit; }

/* ---------------------------------------------------------------- 背景层 */

#bg-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(90px);
  opacity: .5; z-index: 0; pointer-events: none;
  animation: orb-float 16s ease-in-out infinite alternate;
}
.bg-orb.o1 { width: 520px; height: 520px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(46,230,255,.34), transparent 65%); }
.bg-orb.o2 { width: 620px; height: 620px; right: -220px; top: 120px; background: radial-gradient(circle, rgba(176,107,255,.30), transparent 65%); animation-delay: -5s; }
.bg-orb.o3 { width: 480px; height: 480px; left: 30%; bottom: -220px; background: radial-gradient(circle, rgba(61,245,166,.20), transparent 65%); animation-delay: -9s; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(90, 120, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 120, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

.bg-mouse {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 40%), rgba(46, 230, 255, 0.07), transparent 62%);
}

.scanline {
  position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: .14;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* ---------------------------------------------------------------- 布局 */

.wrap { position: relative; z-index: 2; max-width: 1220px; margin: 0 auto; padding: 0 22px; }

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: linear-gradient(180deg, rgba(9, 11, 22, 0.92), rgba(9, 11, 22, 0.72));
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(46,230,255,.55), rgba(176,107,255,.55), transparent);
  background-size: 200% 100%;
  animation: gradient-move 6s linear infinite;
}
.topbar-in {
  max-width: 1220px; margin: 0 auto; padding: 12px 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}

.logo { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; flex: none; }
.logo-block {
  width: 34px; height: 34px; display: grid; place-items: center;
  background: linear-gradient(145deg, #2ee6ff, #b06bff);
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(46, 230, 255, .5), inset 0 -3px 0 rgba(0,0,0,.35);
  font-size: 16px; line-height: 1;
  animation: logo-pulse 3.2s ease-in-out infinite;
}
.logo-text { line-height: 1.05; }
.logo-text b {
  font-family: var(--mono); font-size: 17px; letter-spacing: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-move 5s linear infinite;
}
.logo-text span { display: block; font-size: 10px; color: var(--dim); letter-spacing: 4px; }

/* Tabs */
.tabs {
  position: relative; display: flex; align-items: center; gap: 4px;
  padding: 5px; border-radius: 13px;
  background: rgba(12, 16, 32, 0.8);
  border: 1px solid var(--line);
  flex: none;
}
.tab {
  position: relative; z-index: 2;
  border: 0; background: transparent; color: var(--dim);
  font-size: 14px; padding: 8px 14px; border-radius: 9px; cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  transition: color .22s, transform .22s;
  white-space: nowrap;
}
.tab img { width: 19px; height: 19px; filter: grayscale(.55) brightness(.85); transition: filter .25s, transform .25s; }
.tab:hover { color: var(--txt); transform: translateY(-1px); }
.tab:hover img { filter: none; transform: scale(1.12) rotate(-4deg); }
.tab.active { color: #fff; }
.tab.active img { filter: none; transform: scale(1.16); }
.tab.active::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 9px;
  background: linear-gradient(120deg, rgba(46,230,255,.24), rgba(176,107,255,.26));
  border: 1px solid rgba(120, 160, 255, .45);
  box-shadow: 0 0 18px rgba(46, 230, 255, .28), inset 0 0 14px rgba(120, 160, 255, .14);
  animation: tab-in .28s ease;
}

/* 搜索 */
.search { position: relative; margin-left: auto; flex: none; width: 236px; }
.search input {
  width: 100%; padding: 9px 14px 9px 36px;
  background: rgba(12, 16, 32, 0.85); color: var(--txt);
  border: 1px solid var(--line); border-radius: 11px; font-size: 13px;
  outline: none; transition: border-color .25s, box-shadow .25s;
}
.search input::placeholder { color: #5c6486; }
.search input:focus {
  border-color: rgba(46, 230, 255, .6);
  box-shadow: 0 0 0 3px rgba(46, 230, 255, .12), 0 0 24px rgba(46, 230, 255, .18);
}
.search .ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: #5c6486; font-size: 13px; pointer-events: none;
}
.suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: rgba(13, 17, 34, 0.97); border: 1px solid var(--line-strong);
  border-radius: 12px; z-index: 60;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
  max-height: 320px; overflow-y: auto;
  display: none;
}
.suggest.show { display: block; animation: drop-in .22s ease; }
.suggest-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  cursor: pointer; transition: background .15s; border-bottom: 1px solid rgba(255,255,255,.03);
}
.suggest-item:hover { background: rgba(46, 230, 255, .1); }
.suggest-item .avatar { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }
.suggest-item b { font-size: 13px; font-weight: 600; }
.suggest-item small { color: var(--dim); font-size: 11px; font-family: var(--mono); }
.suggest-empty { padding: 12px; color: var(--dim); font-size: 12px; text-align: center; }

/* 登录区 */
.auth-area { display: flex; align-items: center; gap: 10px; flex: none; }
.user-chip {
  display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px;
  background: rgba(12, 16, 32, 0.8); border: 1px solid var(--line); border-radius: 11px;
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.user-chip:hover { border-color: var(--line-strong); box-shadow: 0 0 16px rgba(46,230,255,.14); }
.user-chip .avatar { width: 26px; height: 26px; border-radius: 7px; box-shadow: none; }
.user-chip .avatar .fallback { font-size: 13px; }
.user-chip b { font-size: 13px; }
.user-chip .role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.user-chip .role-dot.owner { background: var(--gold); box-shadow: 0 0 9px var(--gold); }
.user-chip .role-dot.admin { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: rgba(18, 24, 48, 0.9); color: var(--txt);
  font-size: 13px; cursor: pointer;
  transition: transform .18s, box-shadow .25s, border-color .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(46,230,255,.6); box-shadow: 0 8px 22px rgba(0,0,0,.45), 0 0 20px rgba(46,230,255,.22); }
.btn:active { transform: translateY(0) scale(.98); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 44%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.btn:hover::after { left: 130%; }
.btn.primary {
  background: linear-gradient(120deg, #1fb8d8, #8a4de8);
  border-color: rgba(140, 190, 255, .55);
  box-shadow: 0 8px 24px rgba(70, 120, 255, .35), inset 0 -3px 0 rgba(0,0,0,.28);
  font-weight: 600;
}
.btn.primary:hover { box-shadow: 0 10px 30px rgba(70, 120, 255, .5), 0 0 26px rgba(46,230,255,.35), inset 0 -3px 0 rgba(0,0,0,.28); }
.btn.danger { border-color: rgba(255, 80, 110, .5); }
.btn.danger:hover { border-color: rgba(255, 80, 110, .9); box-shadow: 0 0 20px rgba(255, 60, 100, .3); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------------------------------------------------------------- 英雄区 */

.hero { padding: 52px 0 30px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px; font-size: 12px; letter-spacing: 1px;
  color: var(--cyan); background: rgba(46, 230, 255, .08);
  border: 1px solid rgba(46, 230, 255, .3);
  box-shadow: 0 0 18px rgba(46,230,255,.12);
  animation: float-y 4s ease-in-out infinite;
}
.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(34px, 6vw, 60px);
  font-family: var(--mono); letter-spacing: 6px; font-weight: 800;
  background: linear-gradient(92deg, #fff, var(--cyan) 22%, var(--purple) 48%, var(--pink) 70%, #fff);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-move 7s linear infinite;
  filter: drop-shadow(0 0 26px rgba(120, 140, 255, .35));
}
.hero p.sub { color: var(--dim); font-size: 14px; letter-spacing: 2px; }
.hero p.sub b { color: var(--cyan); }

.stats { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.stat {
  min-width: 132px; padding: 14px 20px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  position: relative; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.stat:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 14px 30px rgba(0,0,0,.4), 0 0 22px rgba(46,230,255,.12); }
.stat::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.06), transparent 70%);
  transform: translateX(-100%); animation: sweep 5s ease infinite;
}
.stat b { display: block; font-size: 26px; font-family: var(--mono); color: #fff; text-shadow: 0 0 18px rgba(46,230,255,.55); }
.stat span { font-size: 12px; color: var(--dim); letter-spacing: 1px; }

/* ---------------------------------------------------------------- 榜单 */

.board {
  margin: 26px 0 60px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board-head {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 38, 76, .35), transparent);
}
.board-head .bh-icon { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.board-head h2 { font-size: 17px; letter-spacing: 2px; display: flex; align-items: center; gap: 9px; }
.board-head .bh-desc { color: var(--dim); font-size: 12px; margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.legend { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--dim); }
.legend .lg { display: flex; align-items: center; gap: 5px; }
.legend .dot { width: 9px; height: 9px; border-radius: 3px; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* 行 */
.row-head, .row {
  display: grid;
  grid-template-columns: 74px minmax(200px, 1.1fr) 86px minmax(300px, 1.5fr) 92px;
  align-items: center; gap: 10px;
  padding: 13px 22px;
}
.row-head {
  color: var(--dim); font-size: 11px; letter-spacing: 2px;
  border-bottom: 1px solid var(--line);
  background: rgba(12, 16, 32, .5);
}

.row {
  position: relative; cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
  transition: transform .22s ease, background .22s;
  opacity: 0;
  animation: row-in .5s cubic-bezier(.22,.8,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}
.row::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(46,230,255,.10), transparent 55%);
  transition: opacity .25s;
}
.row::after {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--cyan), var(--purple));
  opacity: 0; transition: opacity .25s; box-shadow: 0 0 12px rgba(46,230,255,.7);
}
.row:hover { background: rgba(48, 60, 120, .16); transform: translateX(3px); }
.row:hover::before { opacity: 1; }
.row:hover::after { opacity: 1; }
.row:last-child { border-bottom: 0; }

/* 前三名 */
.row.top1 { background: linear-gradient(90deg, rgba(255, 210, 87, .15), rgba(255, 160, 40, .04) 55%, transparent); }
.row.top2 { background: linear-gradient(90deg, rgba(200, 214, 255, .11), transparent 62%); }
.row.top3 { background: linear-gradient(90deg, rgba(255, 150, 90, .11), transparent 62%); }
.row.top1::after { background: linear-gradient(180deg, #ffe08a, #ff9f2e); }
.row.top2::after { background: linear-gradient(180deg, #e8efff, #93a5cc); }
.row.top3::after { background: linear-gradient(180deg, #ffb27a, #c8743a); }
.row.top1::after, .row.top2::after, .row.top3::after { opacity: 1; }
.row .shine { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.row.top1 .shine::after, .row.top2 .shine::after, .row.top3 .shine::after {
  content: ""; position: absolute; top: 0; left: -60%; width: 34%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-16deg);
  animation: sweep-run 3.6s ease-in-out infinite;
}
.row.top2 .shine::after { animation-delay: .4s; }
.row.top3 .shine::after { animation-delay: .8s; }

/* 排名 */
.rank-cell { display: flex; align-items: center; justify-content: center; position: relative; }
.rank-num {
  font-family: var(--mono); font-size: 19px; font-weight: 700; color: var(--dim);
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid transparent;
}
.row.top1 .rank-num { color: #ffd257; background: rgba(255, 210, 87, .1); border-color: currentColor; box-shadow: 0 0 22px rgba(255, 210, 87, .4), inset 0 0 14px rgba(255,210,87,.14); animation: medal-pulse 2.6s ease-in-out infinite; }
.row.top2 .rank-num { color: #dfe8ff; background: rgba(223, 232, 255, .09); border-color: currentColor; box-shadow: 0 0 18px rgba(210, 224, 255, .3); }
.row.top3 .rank-num { color: #ffab6e; background: rgba(255, 171, 110, .1); border-color: currentColor; box-shadow: 0 0 18px rgba(255, 150, 90, .3); }
.rank-crown {
  position: absolute; top: -11px; right: 0; font-size: 15px; line-height: 1;
  filter: drop-shadow(0 0 8px rgba(255, 210, 87, .9));
  animation: crown-bob 2.8s ease-in-out infinite;
}

/* 玩家 */
.p-cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden; flex: none;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 14px rgba(46, 230, 255, .16);
  background: #131a33; position: relative;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.avatar .fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 17px; color: #fff;
  background: linear-gradient(145deg, #25325e, #3b2a66);
}
.p-meta { min-width: 0; }
.p-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-name b { font-size: 15px; letter-spacing: .5px; white-space: nowrap; }
.p-id { font-family: var(--mono); font-size: 11px; color: var(--dim); margin-top: 3px; display: block; }

.title-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; letter-spacing: 1px; padding: 3px 9px; border-radius: 999px;
  color: #2b1c00; font-weight: 800; white-space: nowrap;
  background: linear-gradient(100deg, #ffe9a8, #ffc93c, #fff3c4, #ffc93c);
  background-size: 220% 100%;
  box-shadow: 0 0 16px rgba(255, 201, 60, .5), inset 0 -2px 0 rgba(120, 70, 0, .28);
  animation: gradient-move 3.2s linear infinite;
  position: relative; overflow: hidden;
}
.title-chip.purple {
  color: #fff; background: linear-gradient(100deg, #b06bff, #2ee6ff, #b06bff);
  background-size: 220% 100%;
  box-shadow: 0 0 14px rgba(176, 107, 255, .45), inset 0 -2px 0 rgba(0,0,0,.25);
}
.title-chip::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent);
  transform: skewX(-16deg); animation: sweep-run 2.8s ease-in-out infinite;
}

/* 地区 */
.region-tag {
  justify-self: start;
  font-size: 11.5px; padding: 4px 11px; border-radius: 8px; letter-spacing: 1px;
  border: 1px solid; position: relative; overflow: hidden;
  background: rgba(255, 255, 255, .03);
}
.region-华南 { color: #3df5a6; border-color: rgba(61, 245, 166, .45); }
.region-华西 { color: #b06bff; border-color: rgba(176, 107, 255, .45); }
.region-华东 { color: #2ee6ff; border-color: rgba(46, 230, 255, .45); }
.region-华北 { color: #ffd257; border-color: rgba(255, 210, 87, .45); }
.region-华中 { color: #ff5fa8; border-color: rgba(255, 95, 168, .45); }

/* TIER 图标行 */
.tiers-cell { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tier-tile {
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 6px 9px 6px 6px; border-radius: 11px;
  background: rgba(10, 13, 27, 0.75); border: 1px solid var(--line);
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.tier-tile:hover { transform: translateY(-3px) scale(1.03); border-color: var(--line-strong); box-shadow: 0 8px 20px rgba(0,0,0,.45); z-index: 3; }
.tier-tile .t-icon { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.5)); transition: transform .25s; }
.tier-tile:hover .t-icon { transform: scale(1.14) rotate(-5deg); }
.tier-tile.none .t-icon { filter: grayscale(.9) brightness(.55); }
.tier-tile .t-info { display: flex; flex-direction: column; line-height: 1.15; }
.tier-tile .t-mode { font-size: 9px; color: var(--dim); letter-spacing: .5px; white-space: nowrap; }
/* 分榜通栏段位条：图标 + 项目名 …… 大号段位 */
.tier-tile.lg { gap: 14px; padding: 9px 16px 9px 10px; min-width: 236px; max-width: 100%; }
.tier-tile.lg .t-icon { width: 40px; height: 40px; }
.tier-tile.lg .t-info { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.tier-tile.lg .t-mode { font-size: 12px; }
.tier-tile.lg .tier-badge { order: 2; font-size: 22px; }
.tier-tile.lg .tier-badge sup { font-size: 14px; }
.tier-badge {
  font-family: var(--mono); font-weight: 800; font-size: 14px; line-height: 1;
  display: inline-flex; align-items: baseline; gap: 1px;
  color: var(--gc, #fff);
  text-shadow: 0 0 10px var(--gc), 0 0 22px rgba(255,255,255,.14);
}
.tier-badge sup { font-size: 10px; font-weight: 900; }
.tier-badge.pulse { animation: badge-pulse 2.4s ease-in-out infinite; }
.tier-tile.none .tier-badge { color: #5c6486; text-shadow: none; }

/* 积分 */
.score-cell { text-align: right; }
.score-cell b { font-family: var(--mono); font-size: 18px; color: #fff; text-shadow: 0 0 14px rgba(46,230,255,.4); }
.score-cell span { display: block; font-size: 10px; color: var(--dim); letter-spacing: 1px; }
.score-bar { height: 4px; border-radius: 4px; margin-top: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.score-bar i {
  display: block; height: 100%; border-radius: 4px; width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 10px rgba(46,230,255,.6);
  transition: width 1s cubic-bezier(.22,.8,.3,1);
}

/* 空态 / 加载 */
.empty { padding: 70px 20px; text-align: center; color: var(--dim); }
.empty .big { font-size: 40px; margin-bottom: 10px; animation: float-y 3.4s ease-in-out infinite; }
.skeleton { padding: 18px 22px; }
.sk-row { height: 56px; border-radius: 12px; margin-bottom: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 37%, rgba(255,255,255,.04) 63%); background-size: 400% 100%; animation: shimmer 1.3s linear infinite; }

/* ---------------------------------------------------------------- 页脚 */

.footer {
  position: relative; z-index: 2; text-align: center; padding: 34px 20px 46px;
  color: #5c6486; font-size: 12px; letter-spacing: 1px; line-height: 1.9;
}
.footer .ft-name {
  font-family: var(--mono); font-size: 15px; letter-spacing: 3px; margin-bottom: 7px;
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink), var(--cyan));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-move 5s linear infinite;
}
.footer .ft-copy { color: var(--dim); }
.footer .ft-author {
  color: var(--gold); font-weight: 700; letter-spacing: 1px;
  text-shadow: 0 0 14px rgba(255, 210, 87, .55);
}
.footer .ft-note { color: #4c5474; font-size: 11.5px; margin-top: 7px; }

/* ---------------------------------------------------------------- 个人主页 */

.page-head { display: flex; align-items: center; gap: 14px; padding: 26px 0 4px; flex-wrap: wrap; }
.back-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(12,16,32,.75);
  color: var(--dim); font-size: 13px; transition: all .22s;
}
.back-link:hover { color: var(--cyan); border-color: rgba(46,230,255,.5); box-shadow: 0 0 18px rgba(46,230,255,.15); transform: translateX(-3px); }

.profile-hero {
  margin: 20px 0 22px; padding: 30px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.profile-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px circle at 12% 0%, rgba(46,230,255,.14), transparent 60%),
              radial-gradient(500px circle at 88% 100%, rgba(176,107,255,.14), transparent 60%);
}
.avatar.pf-avatar {
  width: 106px; height: 106px; border-radius: 18px; flex: none;
  border: 2px solid var(--line-strong);
  box-shadow: 0 0 34px rgba(46, 230, 255, .3), 0 14px 30px rgba(0,0,0,.5);
  animation: avatar-glow 3.4s ease-in-out infinite;
}
.avatar.pf-avatar .fallback { font-size: 40px; }
.avatar.xs { width: 28px; height: 28px; border-radius: 7px; box-shadow: none; }
.pf-main { min-width: 0; flex: 1; position: relative; }
.pf-main h1 { font-size: clamp(24px, 4vw, 34px); letter-spacing: 2px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pf-main .pf-id { font-family: var(--mono); color: var(--dim); font-size: 13px; margin-top: 10px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-rank {
  text-align: center; padding: 16px 26px; border-radius: 16px; flex: none;
  background: rgba(10, 13, 27, .8); border: 1px solid var(--line-strong);
  box-shadow: 0 0 26px rgba(46,230,255,.14);
}
.pf-rank b { display: block; font-family: var(--mono); font-size: 34px; color: #fff; text-shadow: 0 0 20px rgba(46,230,255,.6); }
.pf-rank span { font-size: 11px; color: var(--dim); letter-spacing: 2px; }

.mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 16px; margin: 20px 0 60px; }
.mode-card {
  position: relative; overflow: hidden;
  padding: 20px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  opacity: 0; animation: row-in .55s cubic-bezier(.22,.8,.3,1) forwards; animation-delay: var(--d, 0ms);
}
.mode-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.mode-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(120, 180, 255, .12), transparent 65%);
  opacity: 0; transition: opacity .3s;
}
.mode-card:hover::before { opacity: 1; }
.mode-card .mc-head { display: flex; align-items: center; gap: 12px; }
.mode-card .mc-head img { width: 46px; height: 46px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.mode-card h3 { font-size: 15px; letter-spacing: 1px; }
.mode-card .mc-grade { margin-left: auto; text-align: right; }
.mode-card .mc-grade b {
  font-family: var(--mono); font-size: 32px; font-weight: 800; color: var(--mc, #fff);
  text-shadow: 0 0 18px var(--mc), 0 0 44px rgba(255,255,255,.2);
}
.mode-card .mc-grade span { display: block; font-size: 11px; color: var(--dim); letter-spacing: 2px; }
.mode-card .mc-bar { margin-top: 16px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.mode-card .mc-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.55), var(--mc)); box-shadow: 0 0 12px var(--mc); width: 0; transition: width 1.1s cubic-bezier(.22,.8,.3,1); }
.mode-card .mc-pts { margin-top: 8px; font-size: 11px; color: var(--dim); display: flex; justify-content: space-between; }

/* ---------------------------------------------------------------- 登录页 */

.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 18px; }
.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 434px;
  padding: 34px 32px 30px; border-radius: 22px;
  background: rgba(14, 18, 36, 0.88); border: 1px solid var(--line-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.65), 0 0 60px rgba(46,230,255,.08);
  animation: card-in .5s cubic-bezier(.22,.8,.3,1);
}
.auth-tabs { display: flex; gap: 6px; padding: 5px; background: rgba(9, 12, 24, .8); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 24px; }
.auth-tab {
  flex: 1; padding: 10px; border: 0; border-radius: 9px; cursor: pointer;
  background: transparent; color: var(--dim); font-size: 14px; letter-spacing: 2px;
  transition: all .25s;
}
.auth-tab.active { color: #fff; background: linear-gradient(120deg, rgba(46,230,255,.22), rgba(176,107,255,.24)); box-shadow: 0 0 18px rgba(46,230,255,.18); }
.auth-form { display: none; }
.auth-form.show { display: block; animation: drop-in .32s ease; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 7px; letter-spacing: 1px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border-radius: 11px; font-size: 14px;
  background: rgba(9, 12, 24, 0.85); border: 1px solid var(--line); color: var(--txt);
  outline: none; transition: border-color .22s, box-shadow .22s;
}
.field input:focus, .field select:focus { border-color: rgba(46,230,255,.6); box-shadow: 0 0 0 3px rgba(46,230,255,.1), 0 0 22px rgba(46,230,255,.14); }
.field .hint { font-size: 11px; color: #5c6486; margin-top: 6px; }
.region-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.region-pick label {
  flex: 1; min-width: 60px; text-align: center; padding: 9px 0; border-radius: 10px; cursor: pointer;
  background: rgba(9,12,24,.85); border: 1px solid var(--line); color: var(--dim); font-size: 13px;
  transition: all .2s;
}
.region-pick input { display: none; }
.region-pick input:checked + label {
  color: #fff; border-color: rgba(46,230,255,.65);
  background: linear-gradient(120deg, rgba(46,230,255,.2), rgba(176,107,255,.2));
  box-shadow: 0 0 16px rgba(46,230,255,.25);
}
.auth-msg { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; display: none; }
.auth-msg.show { display: block; }
.auth-msg.error { color: #ff8ba6; background: rgba(255, 60, 100, .1); border: 1px solid rgba(255, 60, 100, .35); animation: shake-in .4s ease; }
.auth-msg.ok { color: #7cf5c4; background: rgba(61, 245, 166, .1); border: 1px solid rgba(61, 245, 166, .35); }
.auth-title { text-align: center; margin-bottom: 20px; }
.auth-title .logo-block { margin: 0 auto 12px; width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.auth-title h1 { font-size: 21px; letter-spacing: 3px; }
.auth-title p { color: var(--dim); font-size: 12px; margin-top: 7px; letter-spacing: 1px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 12.5px; color: var(--dim); }
.auth-switch a { color: var(--cyan); cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }
.auth-copy { text-align: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: #5c6486; letter-spacing: 1px; }
.auth-copy b { color: var(--gold); text-shadow: 0 0 12px rgba(255, 210, 87, .5); }

/* ---------------------------------------------------------------- 管理后台 */

.admin-tabs { display: flex; gap: 8px; margin: 22px 0 18px; flex-wrap: wrap; }
.admin-tab {
  padding: 10px 20px; border-radius: 11px; cursor: pointer; font-size: 13.5px;
  background: rgba(12, 16, 32, .8); border: 1px solid var(--line); color: var(--dim);
  transition: all .22s;
}
.admin-tab:hover { color: var(--txt); border-color: var(--line-strong); }
.admin-tab.active { color: #fff; background: linear-gradient(120deg, rgba(46,230,255,.2), rgba(176,107,255,.22)); border-color: rgba(120,160,255,.45); box-shadow: 0 0 18px rgba(46,230,255,.2); }

.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 26px;
}
.panel-head { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(30,38,76,.35), transparent); flex-wrap: wrap; }
.panel-head h2 { font-size: 16px; letter-spacing: 2px; }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 20px 22px; }

.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th {
  text-align: left; padding: 11px 14px; color: var(--dim); font-size: 11px; letter-spacing: 2px;
  border-bottom: 1px solid var(--line); background: rgba(12,16,32,.5); white-space: nowrap;
}
.table td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.035); vertical-align: middle; }
.table tr { transition: background .18s; }
.table tbody tr:hover { background: rgba(48, 60, 120, .14); }
.table .mono { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.table .num { font-family: var(--mono); }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 7px; font-size: 11px; border: 1px solid; white-space: nowrap; }
.tag.owner { color: #2b1c00; font-weight: 800; border-color: rgba(255,210,87,.85); background: linear-gradient(100deg, #ffe9a8, #ffc93c); box-shadow: 0 0 12px rgba(255,201,60,.4); }
.tag.admin { color: var(--cyan); border-color: rgba(46,230,255,.5); background: rgba(46,230,255,.08); }
.tag.user { color: var(--dim); border-color: var(--line-strong); }

.adm-tiers { display: flex; gap: 12px; flex-wrap: wrap; }
.adm-tiers .at { display: inline-flex; align-items: center; gap: 4px; }
.adm-tiers .at em { font-style: normal; font-size: 10px; color: var(--dim); }

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4, 6, 14, .72); backdrop-filter: blur(6px);
  padding: 30px 16px; overflow-y: auto;
}
.modal-mask.show { display: flex; align-items: flex-start; justify-content: center; animation: fade-in .22s ease; }
.modal {
  width: 100%; max-width: 620px; margin: auto;
  background: #0e1224; border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: 0 40px 90px rgba(0,0,0,.7), 0 0 60px rgba(46,230,255,.06);
  animation: card-in .36s cubic-bezier(.22,.8,.3,1);
  overflow: hidden;
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16px; letter-spacing: 2px; }
.modal-head .close { margin-left: auto; cursor: pointer; color: var(--dim); font-size: 18px; border: 0; background: transparent; transition: color .2s, transform .2s; }
.modal-head .close:hover { color: #ff6b8b; transform: rotate(90deg); }
.modal-body { padding: 22px 24px; max-height: 66vh; overflow-y: auto; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; background: rgba(9,12,24,.5); }

.tier-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.te-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  background: rgba(9, 12, 24, .7); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s;
}
.te-item:hover { border-color: var(--line-strong); }
.te-item img { width: 34px; height: 34px; flex: none; }
.te-item .te-name { font-size: 13px; flex: 1; min-width: 0; }
.te-item select {
  padding: 7px 8px; border-radius: 8px; font-size: 13px;
  background: rgba(18, 24, 48, .95); color: var(--txt);
  border: 1px solid var(--line); outline: none; cursor: pointer;
  font-family: var(--mono); font-weight: 700;
}
.te-item select:focus { border-color: rgba(46,230,255,.6); }
.te-item select.grade { width: 62px; }
.te-item select.sub { width: 74px; font-size: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* Toast */
.toast-box { position: fixed; top: 74px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  min-width: 220px; max-width: 330px; padding: 13px 18px; border-radius: 13px; font-size: 13px;
  background: rgba(14, 20, 40, .96); border: 1px solid var(--line-strong);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  animation: toast-in .34s cubic-bezier(.22,.8,.3,1);
  display: flex; align-items: center; gap: 10px;
}
.toast.ok { border-color: rgba(61,245,166,.55); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 22px rgba(61,245,166,.2); }
.toast.err { border-color: rgba(255,80,110,.55); box-shadow: 0 16px 40px rgba(0,0,0,.55), 0 0 22px rgba(255,60,100,.2); }
.toast.hide { animation: toast-out .3s ease forwards; }

/* 下拉菜单 */
.menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 70;
  min-width: 178px; padding: 7px; border-radius: 13px;
  background: rgba(13, 17, 34, .98); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  display: none;
}
.menu.show { display: block; animation: drop-in .22s ease; }
.menu-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
  font-size: 13px; color: var(--txt); cursor: pointer; transition: background .16s;
  border: 0; background: transparent; width: 100%; text-align: left;
}
.menu-item:hover { background: rgba(46, 230, 255, .1); }
.menu-item.danger:hover { background: rgba(255, 60, 100, .12); color: #ff8ba6; }
.user-wrap { position: relative; }

/* ---------------------------------------------------------------- 动画 */

@keyframes gradient-move { to { background-position: 300% 0; } }
@keyframes orb-float { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.14); } }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes logo-pulse { 0%,100% { box-shadow: 0 0 14px rgba(46,230,255,.4), inset 0 -3px 0 rgba(0,0,0,.35); } 50% { box-shadow: 0 0 26px rgba(176,107,255,.65), inset 0 -3px 0 rgba(0,0,0,.35); } }
@keyframes sweep { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(120%); } }
@keyframes sweep-run { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
@keyframes row-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tab-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes medal-pulse { 0%,100% { box-shadow: 0 0 18px rgba(255,210,87,.35); } 50% { box-shadow: 0 0 34px rgba(255,210,87,.7); } }
@keyframes crown-bob { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }
@keyframes badge-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.45); } }
@keyframes avatar-glow { 0%,100% { box-shadow: 0 0 26px rgba(46,230,255,.25), 0 14px 30px rgba(0,0,0,.5); } 50% { box-shadow: 0 0 48px rgba(176,107,255,.5), 0 14px 30px rgba(0,0,0,.5); } }
@keyframes shake-in {
  0% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } 100% { transform: translateX(0); }
}
@keyframes toast-in { from { opacity: 0; transform: translateX(30px) scale(.95); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) scale(.95); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1080px) {
  .row-head, .row { grid-template-columns: 64px minmax(170px, 1fr) minmax(280px, 1.4fr) 86px; }
  .row-head .c-region, .row .region-cell { display: none; }
}
@media (max-width: 900px) {
  .search { order: 5; width: 100%; margin-left: 0; }
  .topbar-in { gap: 10px; }
  .hero h1 { letter-spacing: 3px; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: 25px; letter-spacing: 2px; }
  .row-head { display: none; }
  .row {
    grid-template-columns: 52px 1fr auto;
    grid-template-areas: "rank player score" "rank tiers tiers";
    row-gap: 12px; padding: 16px 16px;
  }
  .rank-cell { grid-area: rank; }
  .p-cell { grid-area: player; }
  .score-cell { grid-area: score; }
  .tiers-cell { grid-area: tiers; }
  .region-cell { display: none; }
  .tabs { order: 6; width: 100%; overflow-x: auto; }
  .profile-hero { gap: 18px; padding: 22px; }
  .pf-rank { width: 100%; }
}