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

:root {
  --bg: #12141a;
  --card: #1c1f28;
  --card2: #232733;
  --border: #2f3546;
  --border-soft: rgba(255, 255, 255, .06);
  --text: #e8ebf2;
  --muted: #98a0b3;
  --accent: #6ee76e;
  --accent2: #45c07f;
  --blue: #5db8ff;
  --orange: #ffb454;
  --red: #ff6b6b;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --ring: 0 0 0 3px rgba(110, 231, 110, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

::selection { background: rgba(110, 231, 110, .28); }

body {
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 12% -8%, rgba(110, 231, 110, .075), transparent 62%),
    radial-gradient(900px 480px at 88% -4%, rgba(93, 184, 255, .06), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

/* 背景网格纹理 */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
}

/* 顶部加载条（查询中显示） */
body::after {
  content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 100;
  background: linear-gradient(90deg, var(--accent2), var(--accent), var(--blue));
  box-shadow: 0 0 12px rgba(110, 231, 110, .55);
  transform: scaleX(0); transform-origin: left center; opacity: 0;
  transition: opacity .2s; pointer-events: none;
}
body.loading::after { opacity: 1; animation: loadbar 1.25s ease-in-out infinite; }
@keyframes loadbar {
  0%   { transform: scaleX(0);  transform-origin: left center; }
  45%  { transform: scaleX(.7); transform-origin: left center; }
  50%  { transform: scaleX(.7); transform-origin: right center; }
  100% { transform: scaleX(0);  transform-origin: right center; }
}

header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 28px;
  background: rgba(18, 20, 26, .78);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
header::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 110, .32), rgba(93, 184, 255, .22), transparent);
}

.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.cube {
  position: relative; width: 38px; height: 38px; flex: none;
  filter: drop-shadow(0 6px 14px rgba(110, 231, 110, .22));
}
.cube::before {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(50% 4%, 96% 27%, 50% 50%, 4% 27%);
  background: linear-gradient(135deg, #b7f294, #74cc4d);
}
.cube::after {
  content: ''; position: absolute; inset: 0;
  clip-path: polygon(4% 27%, 50% 50%, 96% 27%, 96% 73%, 50% 96%, 4% 73%);
  background: linear-gradient(90deg, #55a038 0 50%, #37701f 50% 100%);
}
.brand h1 {
  font-size: 19px; letter-spacing: .4px;
  background: linear-gradient(120deg, #fff, #cfe8d0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand p { color: var(--muted); font-size: 12px; margin-top: 3px; }

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 22px 28px 72px; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(38, 42, 54, .72), rgba(26, 29, 38, .92));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.card::before {
  content: ''; position: absolute; top: -1px; left: 18px; right: 18px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent);
}
.card h3.sec {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .4px; margin-bottom: 14px;
}
.card h3.sec::before {
  content: ''; flex: none; width: 4px; height: 15px; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(110, 231, 110, .45);
}
.card h3.sec .tag {
  font-size: 11px; font-weight: 400; color: var(--muted); margin-left: auto;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border-soft);
  padding: 2px 9px; border-radius: 999px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }

#results { margin-top: 18px; }
#results > .card, #results .grid2 > .card { animation: cardIn .32s var(--ease) both; }
#results .grid2 > .card:nth-child(1) { animation-delay: .03s; }
#results .grid2 > .card:nth-child(2) { animation-delay: .06s; }
#results > #card-mcpvp { animation-delay: .1s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#results > .card + .card, #results .grid2 + .card { margin-top: 16px; }

#card-error { border-color: rgba(255, 107, 107, .5); background: linear-gradient(180deg, rgba(50, 27, 31, .7), rgba(26, 29, 38, .92)); }
#card-error h3.sec { color: var(--red); margin-bottom: 6px; }
#card-error h3.sec::before { background: linear-gradient(180deg, #ff8a8a, var(--red)); box-shadow: 0 0 10px rgba(255, 107, 107, .45); }

/* ---------- 搜索区 ---------- */
.search { display: flex; gap: 12px; align-items: center; padding: 18px; }
.search-fields { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.search-fields input {
  width: 100%; background: rgba(10, 12, 17, .6); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; outline: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.search-fields input::placeholder { color: #6d7588; }
.search-fields input:hover { border-color: #3b4257; }
.search-fields input:focus { border-color: var(--accent); box-shadow: var(--ring); background: rgba(10, 12, 17, .85); }
.auto {
  color: var(--muted); display: flex; gap: 8px; align-items: center; white-space: nowrap;
  user-select: none; cursor: pointer; font-size: 13px; padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color .18s, background .18s;
}
.auto:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.auto input { accent-color: var(--accent2); width: 15px; height: 15px; cursor: pointer; }

button.primary {
  border: none; border-radius: var(--radius-sm); padding: 12px 26px; min-width: 118px;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; cursor: pointer; color: #06130a;
  background: linear-gradient(135deg, #7bf07b, var(--accent2));
  box-shadow: 0 6px 18px rgba(76, 195, 138, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .16s var(--ease), box-shadow .2s, filter .2s;
}
button.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 24px rgba(76, 195, 138, .36), inset 0 1px 0 rgba(255, 255, 255, .4); }
button.primary:active:not(:disabled) { transform: translateY(0); box-shadow: 0 4px 12px rgba(76, 195, 138, .25); }
button.primary:disabled { opacity: .55; cursor: progress; filter: saturate(.7); }

button.ghost {
  background: rgba(255, 255, 255, .03); color: var(--muted); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 16px; cursor: pointer; font-size: 13px;
  transition: color .18s, border-color .18s, background .18s, transform .16s var(--ease);
}
button.ghost:hover { color: var(--text); border-color: #4a5268; background: rgba(255, 255, 255, .06); transform: translateY(-1px); }
button.ghost:active { transform: none; }

.status {
  display: flex; align-items: center; gap: 9px; width: fit-content; max-width: 100%;
  margin-top: 16px; padding: 9px 14px; border-radius: 999px; font-size: 13px; color: var(--muted);
  background: rgba(255, 255, 255, .025); border: 1px solid var(--border-soft);
}
.status::before {
  content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 9px rgba(110, 231, 110, .8);
}
body.loading .status::before { background: var(--blue); box-shadow: 0 0 9px rgba(93, 184, 255, .9); animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.status.error { color: #ffb3b3; background: rgba(255, 107, 107, .07); border-color: rgba(255, 107, 107, .35); }
.status.error::before { background: var(--red); box-shadow: 0 0 9px rgba(255, 107, 107, .8); animation: none; }

/* ---------- 账号卡 ---------- */
.acc { display: flex; gap: 22px; align-items: center; }
.acc img.head, .acc canvas.head {
  width: 72px; height: 72px; border-radius: 14px; image-rendering: pixelated;
  border: 1px solid var(--border); background: var(--card2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .05);
}
.acc .info { flex: 1; min-width: 0; }
.acc h2 { font-size: 22px; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc img.body, .acc canvas.body {
  height: 170px; image-rendering: pixelated;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
  transition: transform .25s var(--ease);
}
.acc img.body:hover, .acc canvas.body:hover { transform: translateY(-4px); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 11px; border-radius: 999px; font-weight: 700; letter-spacing: .3px; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.premium { background: rgba(110, 231, 110, .13); color: var(--accent); border: 1px solid rgba(110, 231, 110, .4); }
.badge.offline { background: rgba(255, 180, 84, .12); color: var(--orange); border: 1px solid rgba(255, 180, 84, .4); }

.uuid-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 9px; color: var(--muted); font-size: 13px; }
.uuid-row > span:first-child { color: #7d8496; min-width: 44px; }
.uuid-row code {
  font-family: Consolas, "Cascadia Mono", monospace; font-size: 12.5px; letter-spacing: .3px;
  color: #cfe3d4; background: rgba(10, 12, 17, .55); border: 1px solid var(--border-soft);
  padding: 4px 10px; border-radius: 7px;
}
.mini-btn {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted);
  border-radius: 7px; padding: 4px 11px; cursor: pointer; font-size: 12px; white-space: nowrap;
  transition: color .16s, border-color .16s, background .16s, transform .16s var(--ease);
}
.mini-btn:hover { color: var(--text); border-color: #4a5268; background: rgba(255, 255, 255, .08); transform: translateY(-1px); }
.mini-btn:active { transform: none; }

.skin-texture { margin-top: 12px; }
.skin-raw {
  display: block; margin-top: 10px; width: 132px; height: 132px; image-rendering: pixelated;
  border: 1px solid var(--border); border-radius: 12px; background-color: #20242e;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, .045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .045) 75%),
    linear-gradient(45deg, rgba(255, 255, 255, .045) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, .045) 75%);
  background-position: 0 0, 8px 8px; background-size: 16px 16px;
  box-shadow: var(--shadow); transition: transform .2s var(--ease);
}
.skin-raw:hover { transform: scale(1.03); }

/* ---------- 统计数据网格 ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 12px; }
.stat {
  position: relative; overflow: hidden; border-radius: 10px; padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  border: 1px solid var(--border-soft);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.stat:hover {
  border-color: rgba(110, 231, 110, .28); transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(110, 231, 110, .07), rgba(255, 255, 255, .02));
}
.stat .k { color: var(--muted); font-size: 11.5px; letter-spacing: .3px; }
.stat .v { font-size: 19px; font-weight: 700; margin-top: 4px; letter-spacing: .2px; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 11px; color: var(--muted); font-weight: 400; margin-left: 3px; }

.star { font-size: 26px; font-weight: 700; filter: drop-shadow(0 0 14px currentColor); }
.prestige-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.prestige-line .name { font-weight: 700; font-size: 15px; letter-spacing: .3px; }

.xpbar {
  position: relative; height: 8px; margin: 8px 0 14px; border-radius: 999px; overflow: hidden;
  background: rgba(0, 0, 0, .38); border: 1px solid var(--border-soft);
}
.xpbar > div {
  position: relative; height: 100%; border-radius: 999px; overflow: hidden;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 0 14px rgba(110, 231, 110, .5);
  transition: width .5s var(--ease);
}
.xpbar > div::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-100%); animation: sheen 2.6s ease-in-out infinite;
}
@keyframes sheen { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- 徽章 / 标签 ---------- */
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); color: var(--muted);
  transition: color .16s, border-color .16s, background .16s, transform .16s var(--ease);
}
.chip.on { color: var(--accent); border-color: rgba(110, 231, 110, .42); background: rgba(110, 231, 110, .08); box-shadow: 0 0 12px rgba(110, 231, 110, .08); }
.chip.off { color: var(--red); border-color: rgba(255, 107, 107, .38); background: rgba(255, 107, 107, .07); }
.player-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.player-chips .chip { cursor: pointer; }
.player-chips .chip:hover { color: var(--text); border-color: var(--accent); background: rgba(110, 231, 110, .12); transform: translateY(-1px); }

/* ---------- 服务器卡 ---------- */
.srv { display: flex; gap: 18px; align-items: flex-start; }
.srv img.favicon {
  width: 60px; height: 60px; image-rendering: pixelated; border-radius: 12px;
  border: 1px solid var(--border); background: var(--card2); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.srv .srv-info { flex: 1; min-width: 0; }
.srv h2 { font-size: 18px; letter-spacing: .3px; }
.srv .motd { color: var(--text); margin-top: 7px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; }
.srv .meta { color: var(--muted); font-size: 12px; margin-top: 7px; font-variant-numeric: tabular-nums; }
.srv-note { margin-top: 12px; }

/* ---------- 关注服务器（常驻实时状态） ---------- */
#card-watched { margin-top: 16px; animation: cardIn .34s var(--ease) both; }
.watched-row {
  display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012));
  border: 1px solid var(--border-soft);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.watched-row + .watched-row { margin-top: 10px; }
.watched-row:hover { border-color: rgba(110, 231, 110, .26); transform: translateY(-1px); }
.watched-row.stale { border-color: rgba(255, 180, 84, .28); }
.watched-row.offline { border-color: rgba(255, 107, 107, .32); }
.watched-favicon {
  width: 58px; height: 58px; flex: none; border-radius: 12px; image-rendering: pixelated;
  border: 1px solid var(--border); background: var(--card2); box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}
.watched-row.stale .watched-favicon, .watched-row.offline .watched-favicon { filter: grayscale(.75) brightness(.8); }
.watched-favicon.placeholder { background: linear-gradient(135deg, #272c37, #1b1f28); }
.watched-info { flex: 1; min-width: 0; }
.watched-info h2 { font-size: 17px; letter-spacing: .3px; }
.watched-info .motd { color: var(--text); margin-top: 6px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }
.watched-badges { margin: 8px 0 0; gap: 7px; }
.watched-actions { margin-top: 9px; }
.watched-side { flex: none; width: 170px; text-align: right; }
.watched-count { font-size: 26px; font-weight: 700; line-height: 1.15; letter-spacing: .4px; font-variant-numeric: tabular-nums; }
.watched-count b { color: var(--accent); text-shadow: 0 0 18px rgba(110, 231, 110, .35); }
.watched-count small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 2px; }
.watched-cap { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.watched-side .xpbar { margin: 8px 0 0; }
.watched-row.stale .watched-count b { color: var(--orange); text-shadow: none; }
.watched-row.offline .watched-count b { color: var(--muted); text-shadow: none; }
.watched-bar.hot > div { background: linear-gradient(90deg, var(--orange), #ff8a5c); box-shadow: 0 0 14px rgba(255, 180, 84, .5); }

/* ---------- 关注玩家（在线状态 + 上线通知） ---------- */
#card-players { margin-top: 16px; animation: cardIn .34s var(--ease) both; }
.player-row {
  display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .038), rgba(255, 255, 255, .012));
  border: 1px solid var(--border-soft);
  transition: border-color .18s, background .18s, transform .18s var(--ease);
}
.player-row + .player-row { margin-top: 10px; }
.player-row:hover { transform: translateY(-1px); }
.player-row.online {
  border-color: rgba(110, 231, 110, .34);
  background: linear-gradient(180deg, rgba(110, 231, 110, .075), rgba(255, 255, 255, .012));
}
.player-row.unknown { border-color: rgba(255, 180, 84, .3); }
.player-row.offline { border-color: var(--border-soft); }
.player-head {
  width: 46px; height: 46px; flex: none; border-radius: 10px; image-rendering: pixelated;
  border: 1px solid var(--border); background: var(--card2);
}
.player-row.offline .player-head, .player-row.unknown .player-head { filter: grayscale(.7) brightness(.85); }
.player-info { flex: 1; min-width: 0; }
.player-info h2 { font-size: 16px; letter-spacing: .3px; }
.player-badges { margin: 7px 0 0; gap: 7px; }
.player-side { flex: none; text-align: right; }
.player-cap { color: var(--muted); font-size: 11.5px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.player-note {
  color: var(--muted); font-size: 12px; line-height: 1.65;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft);
}
.chip.unknown { color: var(--orange); border-color: rgba(255, 180, 84, .38); background: rgba(255, 180, 84, .08); }
.players-notify { margin-left: 10px; }
.players-notify:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- 记分板表格 ---------- */
table.score { width: 100%; border-collapse: collapse; font-size: 13px; }
table.score td { padding: 8px 10px; border-top: 1px solid var(--border-soft); font-variant-numeric: tabular-nums; }
table.score tr:first-child td { border-top: none; }
table.score tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
table.score tr:hover td { background: rgba(255, 255, 255, .035); }
table.score td:last-child { text-align: right; font-weight: 700; color: #d7f0d9; }

.mode-title {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin: 16px 0 8px; padding-left: 11px; font-size: 13px; letter-spacing: .8px; color: var(--blue);
}
.mode-title::before {
  content: ''; position: absolute; left: 0; top: 2px; bottom: 2px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--blue), rgba(93, 184, 255, .25));
}
.mode-title .subtle { margin-left: 0; letter-spacing: 0; }

.subtle { color: var(--muted); font-size: 12.5px; line-height: 1.65; }
ul.warnings { list-style: none; margin-top: 12px; color: var(--muted); font-size: 12.5px; }
ul.warnings li { position: relative; margin: 4px 0; padding-left: 16px; line-height: 1.6; }
ul.warnings li::before { content: '!'; position: absolute; left: 2px; color: var(--orange); font-weight: 700; }
.top-list { margin-top: 10px; font-size: 12.5px; color: var(--muted); line-height: 1.8; }
.top-list b { color: var(--text); }

/* ---------- 使用提示 ---------- */
.hints { margin-top: 16px; color: var(--muted); background: linear-gradient(180deg, rgba(30, 34, 45, .6), rgba(24, 27, 35, .85)); }
.hints h3 { font-size: 14px; letter-spacing: .4px; margin-bottom: 10px; color: var(--text); }
.hints ul { list-style: none; }
.hints li { position: relative; margin: 9px 0; padding-left: 20px; font-size: 12.5px; line-height: 1.7; }
.hints li::before {
  content: ''; position: absolute; left: 3px; top: 8px; width: 7px; height: 7px; border-radius: 2px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); opacity: .85; transform: rotate(45deg);
}
.hints b { color: var(--text); }

/* ---------- 弹窗 ---------- */
#modal-mask {
  position: fixed; inset: 0; z-index: 50; padding: 24px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 10, 14, .66);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}
.modal { width: 560px; max-width: 100%; max-height: 86vh; overflow: auto; animation: modalIn .24s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal > h2 { font-size: 18px; letter-spacing: .4px; margin-bottom: 16px; }
.modal > h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .5px; margin: 20px 0 10px; color: var(--blue); }
.modal > h3::before { content: ''; width: 3px; height: 13px; border-radius: 3px; background: linear-gradient(180deg, var(--blue), rgba(93, 184, 255, .25)); }
.field { margin-bottom: 12px; }
.field label { display: block; color: var(--muted); font-size: 12px; letter-spacing: .2px; margin-bottom: 6px; }
.field label a { color: var(--blue); text-decoration: none; border-bottom: 1px dashed rgba(93, 184, 255, .4); }
.field label a:hover { color: #8fcbff; }
.field input {
  width: 100%; background: rgba(10, 12, 17, .55); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 10px 13px; font-size: 13px; outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input:hover { border-color: #3b4257; }
.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(93, 184, 255, .16); }
.field textarea {
  width: 100%; background: rgba(10, 12, 17, .55); border: 1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 10px 13px; font-size: 12.5px; outline: none; resize: vertical;
  font-family: Consolas, "Cascadia Mono", monospace; line-height: 1.7;
  transition: border-color .18s, box-shadow .18s;
}
.field textarea::placeholder { color: #6d7588; }
.field textarea:hover { border-color: #3b4257; }
.field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(93, 184, 255, .16); }
.row2 { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }
.note { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 12px; }
.note code { background: rgba(10, 12, 17, .6); border: 1px solid var(--border-soft); padding: 1px 6px; border-radius: 5px; font-size: 11px; color: #c9d4e4; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }

#toast {
  position: fixed; bottom: 30px; left: 50%; z-index: 99;
  transform: translateX(-50%);
  background: rgba(28, 32, 42, .95); border: 1px solid var(--border); color: var(--text);
  padding: 11px 20px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: toastIn .26s var(--ease);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- 游戏足迹 ---------- */
.footprint { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--border); }
.fp-summary { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.fp-summary b { color: var(--text); }
.fp-row {
  display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; font-size: 13px;
  padding: 9px 12px; margin-bottom: 7px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  border: 1px solid var(--border-soft);
  transition: border-color .18s, background .18s;
}
.fp-row:hover { border-color: rgba(110, 231, 110, .22); }
.fp-row b { min-width: 90px; }
.fp-row span { color: var(--muted); }
.fp-title { margin-top: 12px; }
.fp-sessions { list-style: none; }
.fp-sessions li { position: relative; padding: 5px 0 5px 16px; color: var(--muted); font-size: 12.5px; }
.fp-sessions li::before {
  content: ''; position: absolute; left: 3px; top: 11px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 8px rgba(93, 184, 255, .6);
}

/* ---------- 设置：多服务器条目 ---------- */
.server-entry {
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; margin-bottom: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .008));
  transition: border-color .18s;
}
.server-entry:hover { border-color: #3b4257; }
.server-entry .se-remove { margin-top: 6px; }
#btn-add-server { margin: 2px 0 6px; }

/* ---------- 服务器详情弹窗 ---------- */
.srv-modal { width: 660px; }
.dt-sec { margin: 16px 0 2px; }
.dt-sec h3 { font-size: 13px; letter-spacing: .5px; margin: 0 0 6px; color: var(--blue); }
.dt-row { display: flex; gap: 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--border-soft); font-size: 13px; }
.dt-row b { min-width: 92px; flex-shrink: 0; font-weight: 600; color: #aab2c6; }
.dt-row span { color: var(--muted); white-space: pre-wrap; word-break: break-all; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 6px 0; }
.dt-tip { color: var(--muted); font-size: 12px; margin-top: 6px; }
.dt-warns { list-style: none; }
.dt-warns li { position: relative; padding: 4px 0 4px 16px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
.dt-warns li::before { content: '!'; position: absolute; left: 2px; color: var(--orange); font-weight: 700; }

/* ---------- MCPVP 竞技段位与赛区 ---------- */
.mcpvp-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.region-pill {
  background: rgba(65, 176, 0, .15); border: 1px solid rgba(65, 176, 0, .45); color: #8fd66a;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  box-shadow: 0 0 14px rgba(65, 176, 0, .12); transition: transform .16s var(--ease), box-shadow .18s;
}
.region-pill:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(65, 176, 0, .22); }
.rank-chip {
  background: rgba(247, 208, 70, .12); border: 1px solid rgba(247, 208, 70, .4); color: #f7d046;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  box-shadow: 0 0 14px rgba(247, 208, 70, .1); transition: transform .16s var(--ease), box-shadow .18s;
}
.rank-chip:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(247, 208, 70, .2); }
.title-chip {
  background: rgba(122, 162, 247, .12); border: 1px solid rgba(122, 162, 247, .4); color: #7aa2f7;
  padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  box-shadow: 0 0 14px rgba(122, 162, 247, .1); transition: transform .16s var(--ease), box-shadow .18s;
}
.title-chip:hover { transform: translateY(-1px); box-shadow: 0 0 18px rgba(122, 162, 247, .2); }
.mcpvp-points { color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 8px 0 14px; }
.tier-chip {
  font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 4px 11px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .14); color: var(--muted); background: rgba(255, 255, 255, .04);
  transition: transform .16s var(--ease), box-shadow .18s;
}
.tier-chip:hover { transform: translateY(-2px); }
.tier-chip.ht1 { color: #ff5f5f; border-color: rgba(255, 95, 95, .5); background: rgba(255, 95, 95, .08); box-shadow: 0 0 12px rgba(255, 95, 95, .1); }
.tier-chip.ht2 { color: #ff9f43; border-color: rgba(255, 159, 67, .45); background: rgba(255, 159, 67, .08); box-shadow: 0 0 12px rgba(255, 159, 67, .1); }
.tier-chip.ht3 { color: #f7d046; border-color: rgba(247, 208, 70, .4); background: rgba(247, 208, 70, .07); box-shadow: 0 0 12px rgba(247, 208, 70, .08); }
.tier-chip.lt1 { color: #7aa2f7; border-color: rgba(122, 162, 247, .4); background: rgba(122, 162, 247, .07); box-shadow: 0 0 12px rgba(122, 162, 247, .08); }
.tier-chip.lt2 { color: #54d1a5; border-color: rgba(84, 209, 165, .35); background: rgba(84, 209, 165, .06); box-shadow: 0 0 12px rgba(84, 209, 165, .08); }

/* ---------- 通用 ---------- */
.hidden { display: none !important; }

:focus-visible { outline: 2px solid rgba(110, 231, 110, .7); outline-offset: 2px; }
input:focus-visible { outline: none; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .2); border: 3px solid transparent; background-clip: content-box; }

@media (max-width: 920px) {
  .grid2 { grid-template-columns: 1fr; }
  .search { flex-wrap: wrap; }
  .search-fields { flex-basis: 100%; }
}
@media (max-width: 560px) {
  header { padding: 14px 16px; }
  .brand p { display: none; }
  main { padding: 16px 14px 48px; }
  .card { padding: 16px; }
  .acc { gap: 14px; }
  .acc img.body, .acc canvas.body { height: 130px; }
  .row2 { grid-template-columns: 1fr; }
  .watched-row { flex-wrap: wrap; }
  .watched-side { width: 100%; text-align: left; }
  .player-row { flex-wrap: wrap; }
  .player-side { width: 100%; text-align: left; }
}

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

/* 站点页脚（备案信息，合规要求）：分两行——ICP 备案一行、网站（公安）备案一行 */
.site-footer {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 18px 26px 26px;
  color: var(--muted); font-size: 12.5px; line-height: 1.6;
}
.site-footer .sf-line {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 6px;
}
.site-footer a {
  color: var(--muted); text-decoration: none;
  border-bottom: 1px dotted var(--border); padding-bottom: 1px;
}
.site-footer a:hover { color: var(--text); }
.site-footer .sep { opacity: .5; }
/* 备案编号图标（公安备案盾形图标）：图标在前、编号在右 */
.site-footer .beian-ico { height: 15px; width: auto; vertical-align: -3px; margin-right: 4px; }

/* 公网只读模式提示条 + 禁用态 */
.ro-banner {
  margin: 0 0 14px; padding: 10px 12px; border-radius: 10px;
  background: rgba(93, 184, 255, .12); border: 1px solid rgba(93, 184, 255, .35);
  color: var(--text); font-size: 13px; line-height: 1.6;
}
.field input:disabled, .field textarea:disabled, button:disabled {
  opacity: .55; cursor: not-allowed;
}
