﻿/* ============================================================
   舞萌排队系统 — 机场大屏 × maimai DX 设计语言
   深空蓝底 / 粉紫渐变 / 霓虹光效 / 大字号航显排版
   ============================================================ */

:root {
  --bg0: #FDF8FB;
  --bg1: #F7F1F9;
  --bg2: #EFE7F4;
  --pink: #F090C0;
  --pink-2: #F0A8D8;
  --mint: #60F0C0;
  --purple: #7C4DFF;
  --gold: #D9A400;
  --white: #2A2544;
  --text-2: #4A4468;
  --dim: #8B84A6;
  --line: rgba(42, 37, 68, 0.12);
  --line-pink: rgba(217, 85, 155, 0.35);
  --ok: #1FA87A;
  --danger: #E0526F;
  --r-lg: 20px;
  --r-md: 12px;
  --r-sm: 8px;
  --font-num: 'Varela Round', 'Noto Sans SC Variable', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-cjk: 'Noto Sans SC Variable', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-cjk);
  font-weight: 500;
  color: var(--white);
  background: linear-gradient(180deg, #FDF8FB 0%, #F7F1F9 55%, #EFE7F4 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; }

::selection { background: rgba(217, 85, 155, 0.45); }

/* ===== 滚动条 ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(42, 37, 68, 0.14); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(217, 85, 155, 0.4); }

/* ============ 共用组件 ============ */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-blue { color: #1FA87A; background: rgba(31, 168, 122, 0.12); border: 1px solid rgba(31, 168, 122, 0.35); }
.tag-purple { color: #7A5BD0; background: rgba(124, 77, 255, 0.16); border: 1px solid rgba(124, 77, 255, 0.4); }
.tag-pink { color: #D4559B; background: rgba(217, 85, 155, 0.14); border: 1px solid rgba(217, 85, 155, 0.4); }
.tag-gold { color: #C8920A; background: rgba(255, 215, 0, 0.1); border: 1px solid rgba(255, 215, 0, 0.35); }
.tag-ok { color: #15865E; background: rgba(61, 220, 151, 0.12); border: 1px solid rgba(61, 220, 151, 0.35); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  background: rgba(42, 37, 68, 0.07);
  border-color: var(--line);
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
  user-select: none;
}
[hidden] { display: none !important; }
.btn:hover { background: rgba(42, 37, 68, 0.12); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

.btn-pink {
  background: var(--pink);
  border-color: rgba(217, 85, 155, 0.35);
  box-shadow: 0 4px 18px rgba(217, 85, 155, 0.25);
}
.btn-pink:hover {
  background: #E87FB4;
  box-shadow: 0 6px 26px rgba(217, 85, 155, 0.35);
}
.btn-pink:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.btn-ghost-danger { color: var(--danger); border-color: rgba(255, 107, 138, 0.4); background: rgba(255, 107, 138, 0.08); }
.btn-ghost-danger:hover { background: rgba(255, 107, 138, 0.18); }

.btn-big { padding: 16px 30px; font-size: 18px; border-radius: 16px; }

.btn-icon {
  width: 34px; height: 34px; padding: 0;
  border-radius: 10px;
  font-size: 13px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--dim);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(42, 37, 68, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 90px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.18);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(110, 102, 140, 0.55); }

/* ===== 弹窗 ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 37, 68, 0.35);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden], .gate[hidden] { display: none; }
.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 86vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #FFFFFF 0%, #FBF7FC 100%);
  border: 1px solid rgba(217, 85, 155, 0.3);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 70px rgba(42, 37, 68, 0.22), 0 0 40px rgba(217, 85, 155, 0.1);
  padding: 24px;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-close {
  background: none; border: none; color: var(--dim);
  font-size: 22px; line-height: 1;
  padding: 4px 8px; border-radius: 8px;
}
.modal-close:hover { color: var(--white); background: rgba(42, 37, 68, 0.08); }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ===== 提示条 ===== */
.toast-wrap {
  position: fixed;
  left: 16px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
  pointer-events: none;
}
.toast {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-size: 14px;
  color: var(--white);
  box-shadow: 0 8px 30px rgba(42, 37, 68, 0.18);
  animation: toastIn 0.25s ease;
  max-width: 360px;
}
.toast.err { border-left-color: var(--danger); }
.toast.ok { border-left-color: var(--ok); }
.toast.leaving { opacity: 0; transform: translateY(8px); transition: all 0.3s ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================
   入口页 index.html
   ============================================================ */
.entry {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.entry-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--white);
}
.entry-sub {
  color: var(--dim);
  letter-spacing: 0.3em;
  font-size: 13px;
  margin-top: -24px;
  text-align: center;
}
.entry-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.entry-card {
  width: 300px;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.045);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.entry-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-pink);
  box-shadow: 0 12px 40px rgba(217, 85, 155, 0.15);
}
.entry-card .ec-name {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}
.entry-card .ec-desc {
  font-size: 14px;
  color: var(--dim);
  line-height: 1.7;
  margin-bottom: 18px;
}
.ec-num {
  font-family: var(--font-num);
  color: #B4530A;
  font-size: 13px;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}
.entry-card.ec-admin {
  border-color: rgba(139, 132, 166, 0.35);
  background: rgba(139, 132, 166, 0.06);
}
.entry-card.ec-admin:hover {
  border-color: rgba(139, 132, 166, 0.6);
  box-shadow: 0 12px 40px rgba(139, 132, 166, 0.18);
}
.entry-card.ec-admin .ec-num { color: #6B6578; }
.entry-card.ec-admin .ec-name { color: #4A4557; }
.entry-card.ec-admin .btn {
  background: rgba(139, 132, 166, 0.14);
  color: #6B6578;
}
.entry-card.ec-admin .btn:hover { background: rgba(139, 132, 166, 0.24); }

/* ============================================================
   观众屏 viewer.html
   ============================================================ */
.viewer { max-width: 1120px; margin: 0 auto; padding: 28px 28px 80px; width: 100%; flex: 1; }

.v-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.v-brand { display: flex; align-items: center; gap: 14px; }
.v-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(240, 144, 192, 0.65);
  box-shadow: 0 0 20px rgba(240, 144, 192, 0.45), 0 0 40px rgba(31, 168, 122, 0.18);
  flex-shrink: 0;
  display: block;
}
.v-title {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  letter-spacing: 0.04em;
}
.v-sub {
  font-size: 12px;
  color: var(--dim);
  letter-spacing: 0.25em;
  margin-top: 2px;
}
.v-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.v-clock {
  font-family: var(--font-num);
  font-size: 30px;
  color: #1FA87A;
  
  letter-spacing: 0.06em;
}
.v-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--dim); letter-spacing: 0.1em; }
.v-status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.v-status.off .dot { background: var(--danger); box-shadow: 0 0 10px var(--danger); }

/* 搜索 */
.v-search {
  margin-top: 26px;
  position: relative;
}
.v-search input {
  width: 100%;
  padding: 15px 48px;
  font-size: 17px;
  border-radius: 999px;
  background: rgba(42, 37, 68, 0.06);
  border: 1px solid var(--line);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.v-search input:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px rgba(31, 168, 122, 0.15); }
.v-search .search-icon {
  position: absolute;
  left: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--dim);
  pointer-events: none;
}
.v-search .clear-x {
  position: absolute;
  right: 16px; top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(42, 37, 68, 0.1);
  color: var(--white);
  font-size: 16px;
  display: none;
  align-items: center;
  justify-content: center;
}
.v-search.has-text .clear-x { display: flex; }

.v-result {
  margin-top: 14px;
  border-radius: var(--r-md);
  border: 1px solid rgba(217, 85, 155, 0.45);
  background: rgba(217, 85, 155, 0.1);
  padding: 12px 18px;
  font-size: 15px;
  line-height: 1.7;
  animation: toastIn 0.25s ease;
}
.v-result b { color: #D4559B; font-weight: 800; }
.v-result .notfound { color: var(--dim); }
.v-result .inplay { color: #1FA87A; font-weight: 800; }

/* 正在游玩 */
.now {
  margin-top: 30px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(217, 85, 155, 0.5);
  background:
    linear-gradient(135deg, rgba(217, 85, 155, 0.18) 0%, rgba(124, 77, 255, 0.12) 55%, rgba(31, 168, 122, 0.08) 100%),
    rgba(42, 37, 68, 0.03);
  box-shadow:
    0 0 60px rgba(217, 85, 155, 0.16),
    inset 0 0 80px rgba(217, 85, 155, 0.05);
  padding: 34px 40px 38px;
}
.now::before, .now::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.now::before {
  width: 340px; height: 340px;
  top: -200px; right: -100px;
  border: 2px solid rgba(217, 85, 155, 0.22);
  animation: ringSpin 40s linear infinite;
}
.now::after {
  width: 220px; height: 220px;
  bottom: -140px; right: -60px;
  border: 2px solid rgba(31, 168, 122, 0.16);
  animation: ringSpin 30s linear infinite reverse;
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

.now-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.now-play-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #D4559B;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(217, 85, 155, 0.5);
  background: rgba(217, 85, 155, 0.14);
  
  box-shadow: 0 0 22px rgba(217, 85, 155, 0.25);
}
.now-play-tag::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: pulse 1.6s ease infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }

.now-label {
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.3em;
  margin-bottom: 6px;
}
.now-players {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.now-plus {
  font-family: var(--font-num);
  font-size: clamp(30px, 4.5vw, 52px);
  color: rgba(42, 37, 68, 0.3);
}
.ppl-big { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ppl-big .ppl-num {
  font-family: var(--font-num);
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 400;
  color: #1FA87A;
  
  line-height: 1;
}
.ppl-big .ppl-name {
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  
}

/* 队列 */
.queue-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 34px 0 14px;
}
.queue-title h2 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.25em;
  color: var(--dim);
}
.queue-title .count {
  font-family: var(--font-num);
  font-size: 22px;
  color: #D4559B;
}

.qrow {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  margin-bottom: 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.qrow:hover { border-color: rgba(217, 85, 155, 0.35); }
.qrow.matched {
  border-color: var(--pink);
  background: rgba(217, 85, 155, 0.08);
  box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.28), 0 0 30px rgba(217, 85, 155, 0.14);
}
.qrow-next { border-color: rgba(31, 168, 122, 0.35); }

.qpos {
  font-family: var(--font-num);
  font-size: 34px;
  color: rgba(42, 37, 68, 0.85);
  
  line-height: 1;
}
.qrow-next .qpos { color: #1FA87A;  }

.q-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.q-players { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.q-players .ppl { display: flex; align-items: baseline; gap: 8px; }
.q-players .ppl-num {
  font-family: var(--font-num);
  font-size: 15px;
  color: #1FA87A;
}
.q-players .ppl-name { font-size: 21px; font-weight: 800; letter-spacing: 0.02em; }
.q-sub { font-size: 12px; color: var(--dim); }

.q-est {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.q-est .est-main {
  font-family: var(--font-num);
  font-size: 20px;
  color: #C8920A;
  
}
.q-est .est-sub { font-size: 12px; color: var(--dim); font-family: var(--font-num); letter-spacing: 0.08em; }
.q-est .est-next {
  font-family: var(--font-num);
  font-size: 17px;
  color: #1FA87A;
  
}

/* 空状态 */
.empty {
  margin-top: 26px;
  border: 1px dashed rgba(42, 37, 68, 0.18);
  border-radius: var(--r-lg);
  padding: 60px 24px;
  text-align: center;
}
.empty .empty-title { font-size: 24px; font-weight: 800; color: var(--text-2); margin-bottom: 8px; }
.empty .empty-sub { font-size: 14px; color: var(--dim); }

.v-footer {
  margin-top: 50px;
  text-align: center;
  font-size: 12px;
  color: rgba(155, 155, 201, 0.6);
  letter-spacing: 0.2em;
}

/* ============================================================
   后台 admin.html
   ============================================================ */
.a-top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 248, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.a-top-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.a-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.a-brand .v-logo { width: 36px; height: 36px; }
.a-brand .a-title {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.05em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.a-top-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.a-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 24px 90px;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 960px) {
  .a-wrap { grid-template-columns: 1fr; }
}

.panel {
  background: rgba(42, 37, 68, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 18px;
}
.panel h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--dim);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel h3::before {
  content: '';
  width: 3px; height: 14px;
  border-radius: 2px;
  background: var(--pink);
}

.a-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.a-stat {
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: center;
}
.a-stat .n { font-family: var(--font-num); font-size: 26px; color: #D4559B; line-height: 1.2; }
.a-stat .l { font-size: 11px; color: var(--dim); letter-spacing: 0.1em; margin-top: 2px; }

.import-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.import-actions .btn { flex: 1; padding: 9px 10px; font-size: 13px; white-space: nowrap; }

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 12px;
  user-select: none;
}
.check-row input { accent-color: var(--pink); width: 16px; height: 16px; }

details.help { margin-top: 14px; }
details.help summary {
  font-size: 12px;
  color: var(--dim);
  cursor: pointer;
  letter-spacing: 0.08em;
  user-select: none;
}
details.help summary:hover { color: var(--text-2); }
.help-body {
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  background: rgba(42, 37, 68, 0.05);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.help-body code {
  font-family: var(--font-num);
  color: #1FA87A;
  font-size: 11px;
}
.help-body .ok { color: var(--ok); }
.help-body .bad { color: var(--danger); }

/* 正在游玩区（后台） */
.a-playing {
  border-radius: 24px;
  border: 1px solid rgba(217, 85, 155, 0.45);
  background: linear-gradient(135deg, rgba(217, 85, 155, 0.14), rgba(124, 77, 255, 0.1));
  padding: 24px 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.a-playing::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  top: -120px; right: -80px;
  border: 2px solid rgba(217, 85, 155, 0.2);
  animation: ringSpin 35s linear infinite;
}
.a-playing .ap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.a-playing .ap-players { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; position: relative; z-index: 1; }
.a-playing .ppl-big .ppl-num { font-size: clamp(34px, 5vw, 56px); }
.a-playing .ppl-big .ppl-name { font-size: clamp(30px, 4.5vw, 50px); }
.ap-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* 后台队列列表 */
.a-queue-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.a-queue-head h3 { font-size: 13px; font-weight: 800; letter-spacing: 0.2em; color: var(--dim); }
.a-queue-head .count { font-family: var(--font-num); color: #D4559B; }

.a-row {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  margin-bottom: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.04);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.a-row:hover { border-color: rgba(217, 85, 155, 0.4); background: rgba(42, 37, 68, 0.06); }
.a-row.dragging { opacity: 0.35; transform: scale(0.98); }
.a-row.drop-before { box-shadow: 0 -3px 0 0 var(--pink); border-color: var(--line-pink); }

.drag-handle {
  width: 30px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
  color: var(--dim);
  border-radius: 8px;
  -webkit-user-select: none;
  user-select: none;
}
.drag-handle:hover { color: var(--white); background: rgba(42, 37, 68, 0.07); }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { display: block; }

.a-row-main { display: flex; align-items: center; gap: 14px; min-width: 0; flex-wrap: wrap; }
.a-row-main .ppl { display: flex; align-items: baseline; gap: 7px; }
.a-row-main .ppl-num { font-family: var(--font-num); font-size: 13px; color: #1FA87A; }
.a-row-main .ppl-name { font-size: 17px; font-weight: 800; }
.a-row-sub { width: 100%; font-size: 11.5px; color: var(--dim); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.a-row-actions { display: flex; gap: 6px; opacity: 0.45; transition: opacity 0.15s ease; flex-shrink: 0; }
.a-row:hover .a-row-actions { opacity: 1; }
.a-row-actions .btn { padding: 7px 12px; font-size: 12px; border-radius: 10px; }

/* 添加按钮 */
.fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 60px; height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--pink);
  color: var(--white);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 8px 30px rgba(217, 85, 155, 0.4);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fab:hover { transform: scale(1.06); background: #E87FB4; box-shadow: 0 10px 40px rgba(217, 85, 155, 0.5); }
.fab:active { transform: scale(0.95); }

/* 密码门 */
.gate {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: radial-gradient(1200px 800px at 50% 30%, #FFFFFF, #F0E9F5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gate-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  background: rgba(42, 37, 68, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 30px;
}
.gate-card .v-logo { width: 56px; height: 56px; margin: 0 auto 18px; }
.gate-card h1 { font-size: 22px; font-weight: 900; margin-bottom: 6px; }
.gate-card p { font-size: 13px; color: var(--dim); margin-bottom: 20px; }
.gate-card input {
  width: 100%;
  text-align: center;
  font-family: var(--font-num);
  font-size: 26px;
  letter-spacing: 0.4em;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.06);
  color: var(--white);
  margin-bottom: 14px;
}
.gate-card input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.2); }
.gate-card input.err { border-color: var(--danger); animation: shake 0.3s ease; }
@keyframes shake {
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* 加减步进器 */
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.stepper button {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.07);
  color: var(--white);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stepper button:hover { background: rgba(217, 85, 155, 0.25); border-color: var(--line-pink); }
.stepper .val {
  font-family: var(--font-num);
  font-size: 18px;
  min-width: 40px;
  text-align: center;
  color: #C8920A;
}

/* 设置面板小行 */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: none; }
.set-row .l { font-size: 14px; color: var(--text-2); }
.set-row .l small { display: block; font-size: 11.5px; color: var(--dim); margin-top: 2px; }

/* ===== 手机适配 ===== */
@media (max-width: 720px) {
  .viewer { padding: 18px 14px 60px; }
  .v-header { flex-direction: column; }
  .v-right { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .v-clock { font-size: 24px; }
  .v-tools { order: -1; width: 100%; }
  .now { padding: 24px 20px 26px; }
  .now-players { gap: 14px; }
  .now-plus { display: none; }
  .qrow { grid-template-columns: 52px 1fr; gap: 10px; padding: 13px 14px; }
  .q-est { grid-column: 2; align-items: flex-start; flex-direction: row; gap: 10px; flex-wrap: wrap; }
  .qpos { font-size: 26px; }
  .q-players .ppl-name { font-size: 18px; }
  .a-wrap { padding: 14px 12px 90px; }
  .a-top-in { padding: 10px 12px; }
  .a-row { grid-template-columns: 26px 1fr; }
  .a-row-right { grid-column: 2; }
  .a-row-actions { opacity: 1; }
  .fab { right: 18px; bottom: 18px; }
  .ap-actions .btn { flex: 1; }
}

/* ============================================================
   v3 世冒2.0 主题：入口 hero / 六系徽章 / 异系拼机提醒
   ============================================================ */

.entry-hero { text-align: center; }
.entry-logo {
  width: clamp(130px, 20vw, 200px);
  height: clamp(130px, 20vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(240, 144, 192, 0.7);
  box-shadow: 0 0 50px rgba(240, 144, 192, 0.4), 0 0 90px rgba(31, 168, 122, 0.18);
  margin-bottom: 26px;
}
.entry .entry-title {
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--white);
  background: none;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
  filter: none;
  
}
.entry .entry-sub {
  margin-top: 10px;
  color: #1FA87A;
  letter-spacing: 0.3em;
  font-size: 13px;
  
}

/* 六系徽章 */
.elem {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ec);
  background: var(--es);
  border: 1px solid var(--ec);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: 2px;
  white-space: nowrap;
  line-height: 1.5;
}
.elem::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ec);
  box-shadow: 0 0 6px var(--ec);
}
.ppl-big .elem { font-size: 14px; padding: 2px 12px; }
.q-players .ppl .elem { font-size: 10.5px; padding: 0 7px; }

/* 异系拼机提醒 */
.tag-mix {
  color: #B87313;
  background: rgba(255, 178, 64, 0.12);
  border: 1px solid rgba(255, 178, 64, 0.45);
}

/* ============================================================
   v4 BOSS 信息：视图切换 / BOSS 卡片 / 管理面板
   ============================================================ */

/* 页签 */
.v-tabs, .a-tabbar {
  display: flex;
  gap: 8px;
  margin: 18px 0 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.v-tab, .a-tab {
  border: none;
  background: none;
  color: var(--dim);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 8px 18px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.v-tab:hover, .a-tab:hover { color: var(--white); background: rgba(42, 37, 68, 0.05); }
.v-tab.on, .a-tab.on {
  color: #FFFFFF;
  background: var(--pink);
  box-shadow: 0 2px 12px rgba(217, 85, 155, 0.3);
}
.a-tabbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px 0;
  border-bottom: none;
}

/* 观众屏 BOSS 区 */
.boss-section { margin-top: 18px; }
.boss-group { margin-bottom: 22px; }
.boss-group-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.boss-group-title::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gc, var(--pink));
  box-shadow: 0 0 10px var(--gc, var(--pink));
}
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.boss-card {
  background: rgba(42, 37, 68, 0.04);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.boss-card:hover { border-color: rgba(217, 85, 155, 0.4); }
.boss-card.dead { opacity: 0.62; }
.boss-imgwrap {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: rgba(42, 37, 68, 0.06);
}
.boss-imgwrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boss-name {
  font-size: 14px;
  font-weight: 800;
  margin: 10px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.boss-hp {
  height: 10px;
  border-radius: 6px;
  background: rgba(42, 37, 68, 0.08);
  overflow: hidden;
}
.boss-hp-bar {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pink), var(--mint));
  transition: width 0.4s ease;
}
.boss-hp-bar.empty { background: var(--dim); }
.boss-hp-text {
  font-size: 12px;
  color: var(--dim);
  margin-top: 5px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.boss-hp-big {
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}
.boss-card.dead .boss-hp-big { color: var(--dim); text-decoration: line-through; }
.boss-res-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}
.boss-res {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ec);
  background: var(--es, rgba(42, 37, 68, 0.05));
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 1px 7px;
  opacity: 0.85;
}
.boss-state {
  margin-top: 9px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 4px 12px;
  display: inline-block;
}
.boss-state.ok { color: #1FA87A; background: rgba(31, 168, 122, 0.1); border: 1px solid rgba(31, 168, 122, 0.35); }
.boss-state.last { color: #C8920A; background: rgba(200, 146, 10, 0.1); border: 1px solid rgba(200, 146, 10, 0.4); }
.boss-state.dead { color: #8B84A6; background: rgba(139, 132, 166, 0.1); border: 1px solid rgba(139, 132, 166, 0.35); }

/* 后台 BOSS 管理 */
.boss-admin-panel { width: 100%; }
.boss-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.boss-admin-head h3 { margin-bottom: 0; }
.boss-admin-hint { font-size: 12px; color: var(--dim); margin: -6px 0 14px; }
.boss-admin-group { margin-bottom: 18px; }
.boss-admin-group-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: var(--dim);
  margin-bottom: 10px;
}
.boss-admin-card {
  display: flex;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(42, 37, 68, 0.03);
  padding: 12px;
  margin-bottom: 10px;
}
.boss-admin-img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: rgba(42, 37, 68, 0.06);
}
.boss-admin-body { flex: 1; min-width: 0; }
.boss-admin-name { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.boss-admin-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  flex-wrap: wrap;
  font-size: 12.5px;
}
.boss-admin-row > label {
  width: 74px;
  flex-shrink: 0;
  color: var(--dim);
  font-size: 12px;
}
.boss-admin-row input[type="number"] {
  width: 74px;
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--white);
  font-family: var(--font-num);
  font-size: 13px;
}
.boss-admin-row input[type="number"]:focus { outline: none; border-color: var(--pink); }
.boss-admin-max { color: var(--dim); font-size: 12px; }
.boss-admin-res { display: flex; gap: 6px; flex-wrap: wrap; }
.boss-admin-res .res-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--dim);
}
.boss-admin-res .res-item i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ec);
  display: inline-block;
}
.boss-admin-res .res-item input { width: 88px; padding: 5px 10px; font-size: 14px; }
.radio-group { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.radio {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.radio input { accent-color: var(--pink); width: 16px; height: 16px; }
.boss-admin-actions { margin-top: 8px; display: flex; align-items: center; gap: 10px; }
.boss-saved { color: var(--ok); font-size: 12px; font-weight: 700; }

@media (max-width: 720px) {
  .boss-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .boss-admin-card { flex-direction: column; }
  .boss-admin-img { width: 100%; height: 130px; }
  .boss-admin-row > label { width: 100%; }
}

/* ============================================================
   v5 BOSS 轮播 / 图片放大 / 抗性步进 / 达成率下拉 / 技能
   ============================================================ */

.boss-top {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 16px 0 18px;
  flex-wrap: wrap;
}
.boss-ele-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.boss-ele-tab {
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.04);
  color: var(--dim);
  font-weight: 800;
  font-size: 13.5px;
  padding: 7px 16px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.boss-ele-tab:hover { color: var(--white); border-color: rgba(217, 85, 155, 0.4); }
.boss-ele-tab.on {
  background: var(--pink);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(217, 85, 155, 0.3);
}
.boss-search {
  flex: 1;
  min-width: 220px;
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 999px;
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  color: var(--white);
}
.boss-search:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.15); }
.boss-search::placeholder { color: rgba(110, 102, 140, 0.6); }

.boss-stage { display: flex; align-items: center; gap: 16px; }
.boss-nav {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.05);
  color: var(--white);
  font-size: 19px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.boss-nav:hover { border-color: var(--pink); color: #D4559B; }
.boss-nav:disabled { opacity: 0.3; }
.boss-viewport { flex: 1; min-width: 0; }

.boss-big-card {
  display: flex;
  gap: 26px;
  align-items: stretch;
  background: rgba(42, 37, 68, 0.04);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
}
.boss-big-card.dead { opacity: 0.72; }
.boss-big-imgwrap {
  flex-shrink: 0;
  cursor: zoom-in;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(42, 37, 68, 0.06);
}
.boss-big-imgwrap img {
  height: min(46vh, 380px);
  display: block;
  object-fit: cover;
}
.boss-big-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 4px 0;
}
.boss-big-name { font-size: 24px; font-weight: 900; letter-spacing: 0.02em; }
.boss-big-hp {
  font-size: 15px;
  color: var(--dim);
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.boss-big-hp b {
  font-family: var(--font-num);
  font-size: 58px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
}
.boss-big-card.dead .boss-big-hp b { color: var(--dim); text-decoration: line-through; }
.boss-big-card .boss-hp { height: 14px; }
.boss-res.self { box-shadow: 0 0 0 2px var(--ec); }
.boss-skill {
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  margin-top: auto;
}
.boss-skill-name { display: block; font-size: 13px; font-weight: 800; color: #D4559B; margin-bottom: 4px; }
.boss-skill-desc { font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.boss-position {
  text-align: center;
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: 15px;
  color: var(--dim);
  letter-spacing: 0.1em;
}

/* 图片放大查看 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 18, 43, 0.8);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox-inner {
  display: flex;
  gap: 26px;
  align-items: center;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px;
  max-width: min(940px, 94vw);
  box-shadow: 0 24px 80px rgba(20, 18, 43, 0.5);
}
.lightbox-inner img {
  height: min(76vh, 640px);
  border-radius: 12px;
  display: block;
}
.lb-info { max-width: 340px; display: flex; flex-direction: column; gap: 8px; }
.lb-name { font-size: 22px; font-weight: 900; }
.lb-skill { font-size: 14px; font-weight: 800; color: #D4559B; }
.lb-desc { font-size: 13.5px; color: #4A4468; line-height: 1.8; }
.lb-state { font-size: 13px; font-weight: 800; color: #C8920A; }
.lb-info .btn { align-self: flex-start; }

/* 后台：抗性步进 / 达成率下拉 / 技能 */
.boss-admin-row select.sel-rate {
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  color: var(--white);
  font-family: var(--font-num);
  font-size: 13px;
}
.boss-admin-skill {
  background: rgba(42, 37, 68, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 6px;
}
.boss-admin-skill span { font-size: 12.5px; font-weight: 800; color: #D4559B; }
.boss-admin-skill p { font-size: 12px; color: var(--text-2); line-height: 1.7; margin-top: 3px; }

@media (max-width: 720px) {
  .boss-stage { gap: 8px; }
  .boss-nav { width: 40px; height: 40px; font-size: 15px; }
  .boss-big-card { flex-direction: column; gap: 14px; padding: 14px; }
  .boss-big-imgwrap img { height: auto; max-height: 40vh; width: 100%; object-fit: cover; }
  .boss-big-hp b { font-size: 44px; }
  .boss-big-name { font-size: 19px; }
  .lightbox-inner { flex-direction: column; padding: 16px; gap: 14px; }
  .lightbox-inner img { height: auto; max-height: 52vh; width: 100%; object-fit: cover; }
  .lb-info { max-width: 100%; }
}

/* ============================================================
   v6 讨伐中开关 / 休战锁定 / 灰色图标
   ============================================================ */

/* 讨伐中开关 */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  margin-left: 12px;
  vertical-align: 2px;
  user-select: none;
}
.toggle input { display: none; }
.toggle .toggle-slider {
  width: 38px; height: 20px;
  border-radius: 999px;
  background: rgba(42, 37, 68, 0.18);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}
.toggle .toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 4px rgba(42, 37, 68, 0.35);
  transition: transform 0.2s ease;
}
.toggle input:checked + .toggle-slider { background: var(--ok); }
.toggle input:checked + .toggle-slider::after { transform: translateX(18px); }
.toggle em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--dim);
}
.toggle input:checked ~ em { color: var(--ok); }

/* 休战锁定卡片 */
.boss-admin-card.locked {
  background: rgba(42, 37, 68, 0.02);
  opacity: 0.75;
}
.boss-admin-card.locked .boss-admin-img { filter: grayscale(1); }
.boss-locked-hint {
  font-size: 12px;
  color: var(--danger);
  font-weight: 700;
  margin: -4px 0 8px;
}
.boss-admin-card.locked input:disabled,
.boss-admin-card.locked select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* 观众端：休战灰色 */
.boss-big-card.idle .boss-big-imgwrap img { filter: grayscale(1); opacity: 0.85; }
.boss-big-card.idle { opacity: 0.85; }
.boss-big-card.idle .boss-big-hp b {
  color: var(--dim);
  text-decoration: line-through;
}
.boss-state.idle {
  color: #8B84A6;
  background: rgba(139, 132, 166, 0.1);
  border: 1px solid rgba(139, 132, 166, 0.35);
}
.boss-ele-tab.all-idle {
  color: rgba(139, 132, 166, 0.55);
  border-color: rgba(139, 132, 166, 0.3);
  background: rgba(139, 132, 166, 0.06);
}
.boss-ele-tab.all-idle.on { color: #FFFFFF; background: #8B84A6; border-color: transparent; box-shadow: none; }

/* ============================================================
   v7 进攻结算算分器
   ============================================================ */

.modal-calc-card { max-width: 560px; }
.calc-group {
  font-size: 13.5px;
  color: var(--text-2);
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 14px;
  margin-bottom: 14px;
}
.calc-group b { color: #D4559B; }
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.calc-grid .field select,
.calc-grid .field input {
  width: 100%;
  background: rgba(217, 85, 155, 0.06);
  border: 1px solid rgba(217, 85, 155, 0.5);
  border-radius: 9px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--white);
}
.calc-grid .field select:focus,
.calc-grid .field input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.2);
  background: rgba(217, 85, 155, 0.1);
}
.calc-grid .field .calc-disabled input,
.calc-grid .field.calc-disabled input {
  opacity: 0.4;
  background: rgba(42, 37, 68, 0.04);
  border-color: var(--line);
  color: var(--dim);
  cursor: not-allowed;
}
.calc-grid .field.calc-disabled { opacity: 0.75; }
.calc-grid .field.calc-disabled::after {
  content: '资源BOSS 无效';
  display: block;
  font-size: 10.5px;
  color: var(--dim);
  margin-top: 3px;
}
.calc-attr { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 34px; }
.calc-attr-now {
  font-family: var(--font-num);
  font-size: 17px;
  font-weight: 700;
  color: #1FA87A;
}
.calc-attr-old {
  font-family: var(--font-num);
  font-size: 14px;
  color: var(--dim);
  text-decoration: line-through;
}
.calc-attr-tip {
  font-size: 11px;
  color: #D4559B;
  font-weight: 700;
  background: rgba(217, 85, 155, 0.1);
  border: 1px solid rgba(217, 85, 155, 0.35);
  border-radius: 999px;
  padding: 1px 8px;
}
.calc-result {
  margin-top: 14px;
  background: rgba(42, 37, 68, 0.05);
  border: 1px solid rgba(217, 85, 155, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
}
.calc-big {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-2);
}
.calc-big b {
  font-family: var(--font-num);
  font-size: 30px;
  color: #D4559B;
  margin-left: 8px;
}
.calc-detail {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 4px;
}
.calc-tip {
  margin-top: 10px;
  font-size: 12px;
  color: var(--dim);
}

@media (max-width: 720px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-shared { margin-bottom: 4px; }
.calc-player {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 10px;
  background: rgba(42, 37, 68, 0.03);
}
.calc-player-head {
  font-size: 14px;
  font-weight: 800;
  color: #D4559B;
  margin-bottom: 10px;
}
.calc-player-attr {
  font-size: 13px;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.calc-player-dmg {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-2);
  text-align: right;
}
.calc-player-dmg b {
  font-family: var(--font-num);
  font-size: 22px;
  color: #D4559B;
  margin-left: 6px;
}

.calc-song-field { position: relative; }
.calc-song-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: #FFFFFF;
  border: 1px solid rgba(217, 85, 155, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(42, 37, 68, 0.2);
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px;
}
.calc-song-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  background: none;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: var(--white);
}
.calc-song-item:hover { background: rgba(217, 85, 155, 0.1); }
.calc-song-name { font-size: 13.5px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-song-lv { font-family: var(--font-num); font-size: 12px; color: #D4559B; flex-shrink: 0; }
.calc-song-elem { font-size: 11px; color: var(--dim); flex-shrink: 0; }
.calc-song-empty { padding: 10px; font-size: 12.5px; color: var(--dim); text-align: center; }

/* 最后一击模式 */
.calc-shared.locked,
#calc-players.locked { opacity: 0.55; pointer-events: none; }
.calc-lasthit {
  margin-top: 12px;
  border: 2px solid rgba(217, 85, 155, 0.6);
  border-radius: 14px;
  background: rgba(217, 85, 155, 0.08);
  padding: 14px 16px;
}
.calc-lasthit-banner {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #D4559B;
  margin-bottom: 12px;
}
.calc-lasthit-body {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.calc-lasthit-body img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(217, 85, 155, 0.4);
}
.calc-lasthit-info { display: flex; flex-direction: column; gap: 8px; }
.calc-lasthit-row { font-size: 14px; color: var(--text-2); }
.calc-lasthit-row b { font-family: var(--font-num); color: #D4559B; }
.calc-lasthit-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-lasthit-actions .btn { flex: 1; }

.boss-admin-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.reset-warn {
  font-size: 13.5px;
  line-height: 2;
  color: var(--text-2);
  background: rgba(224, 82, 111, 0.08);
  border: 1px solid rgba(224, 82, 111, 0.3);
  border-radius: 10px;
  padding: 12px 14px;
}
.reset-warn b { color: var(--danger); }


/* 会场切换 */
.venue-switch {
  display: inline-flex;
  gap: 8px;
  margin: 14px 0 0;
}
.venue-btn {
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.04);
  color: var(--dim);
  font-weight: 800;
  font-size: 13.5px;
  padding: 7px 18px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.venue-btn:hover { color: var(--white); border-color: rgba(217, 85, 155, 0.4); }
.venue-btn.on {
  background: var(--mint);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 12px rgba(31, 168, 122, 0.3);
}


/* 乐曲图鉴 */
.song-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0 10px;
}
.song-filter-group { display: flex; gap: 6px; flex-wrap: wrap; }
.song-filter-btn {
  border: 1px solid var(--line);
  background: rgba(42, 37, 68, 0.04);
  color: var(--dim);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.song-filter-btn:hover { color: var(--white); border-color: rgba(217, 85, 155, 0.4); }
.song-filter-btn.on {
  background: var(--pink);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(217, 85, 155, 0.3);
}
.song-count { font-size: 13px; color: var(--dim); margin: 4px 0 12px; }

.sb-group { margin-bottom: 18px; }
.sb-count { font-family: var(--font-num); font-size: 13px; color: var(--dim); margin-left: 8px; }
.sb-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(42, 37, 68, 0.02);
}
.sb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(42, 37, 68, 0.06);
  font-size: 14px;
}
.sb-row:last-child { border-bottom: none; }
.sb-row:hover { background: rgba(42, 37, 68, 0.04); }
.sb-row.used {
  opacity: 0.4;
  background: rgba(42, 37, 68, 0.03);
}
.sb-name { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row.used .sb-name { text-decoration: line-through; }
.sb-jacket {
  width: 44px; height: 44px; border-radius: 9px; flex-shrink: 0;
  object-fit: cover; cursor: zoom-in;
  border: 1px solid rgba(42, 37, 68, 0.12);
  background: rgba(42, 37, 68, 0.05);
}
.jacket-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 8, 22, 0.72);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.jacket-modal-box { position: relative; max-width: min(92vw, 640px); max-height: 90vh; }
.jacket-modal-box img {
  display: block; width: 100%; max-height: 90vh; object-fit: contain;
  border-radius: 14px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.jacket-close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
  color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.sb-levels { display: flex; gap: 10px; flex-shrink: 0; }
.sb-lv { font-family: var(--font-num); font-size: 13px; white-space: nowrap; }
.sb-lv-main { color: #7A5BD0; }
.sb-white { color: #B9B3C8; }
.sb-purple { color: #7A5BD0; }
.sb-red { color: #D4559B; }
.sb-tags { display: flex; gap: 6px; flex-shrink: 0; }
.sb-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.sb-tag.custom { color: #1FA87A; background: rgba(31, 168, 122, 0.1); border: 1px solid rgba(31, 168, 122, 0.35); }
.sb-tag.boss { color: #D4559B; background: rgba(217, 85, 155, 0.1); border: 1px solid rgba(217, 85, 155, 0.4); }
.sb-tag.used { color: #8B84A6; background: rgba(139, 132, 166, 0.1); border: 1px solid rgba(139, 132, 166, 0.3); }

@media (max-width: 720px) {
  .sb-row { flex-wrap: wrap; gap: 6px; }
  .sb-name { flex: 1 0 100%; }
  .sb-levels { order: 3; }
  .sb-tags { order: 2; }
}

/* ===== 动效偏好 ===== */


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

/* ============================================================
   v2 新增：滚动开关 / 二维码 / 拼机 / 成员拖出
   ============================================================ */

.v-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn-toggle { font-size: 12px; padding: 8px 12px; letter-spacing: 0.05em; }
.btn-toggle.on {
  color: #D4559B;
  border-color: rgba(217, 85, 155, 0.5);
  background: rgba(217, 85, 155, 0.12);
  box-shadow: 0 0 14px rgba(217, 85, 155, 0.2);
}

.qr-box {
  display: inline-flex;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 40px rgba(42, 37, 68, 0.14);
}
.qr-box svg { display: block; }

.now-elapsed {
  font-family: var(--font-num);
  color: #C8920A;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* 拼机区 */
.a-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.drop-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px dashed rgba(31, 168, 122, 0.4);
  color: rgba(138, 240, 255, 0.75);
  background: rgba(31, 168, 122, 0.05);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: all 0.15s ease;
  cursor: default;
}
.drop-pair:hover { background: rgba(31, 168, 122, 0.12); }
.drop-pair.is-duo {
  border-style: solid;
  border-color: rgba(124, 77, 255, 0.35);
  color: rgba(205, 184, 255, 0.8);
  background: rgba(124, 77, 255, 0.08);
  cursor: default;
}
.a-row.pair-target .drop-pair {
  background: rgba(217, 85, 155, 0.2);
  border-color: var(--pink);
  color: #D4559B;
  box-shadow: 0 0 16px rgba(217, 85, 155, 0.35);
}
.a-row.pair-target {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(217, 85, 155, 0.25), 0 0 24px rgba(217, 85, 155, 0.15);
}
.a-row.pair-target .a-row-main { opacity: 0.55; }

/* 成员拖出（取消拼机） */
.ppl-drag { position: relative; }
.grip {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 2px solid var(--dim);
  border-radius: 50%;
  margin-right: 2px;
  vertical-align: 2px;
  cursor: grab;
  touch-action: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  -webkit-user-select: none;
  user-select: none;
}
.grip:hover {
  border-color: var(--pink);
  box-shadow: 0 0 10px rgba(217, 85, 155, 0.6);
  cursor: grabbing;
}
.ppl-drag:hover .ppl-name { color: #D4559B; }

@media (max-width: 720px) {
  .a-row-right { flex-direction: row; align-items: center; gap: 6px; }
  .drop-pair { min-width: 0; padding: 5px 10px; font-size: 11px; }
}

/* ============ 潮汐迷踪模拟器 ============ */
.mz-setup { display: flex; justify-content: center; padding: 30px 0; }
.mz-setup-card {
  width: 100%; max-width: 560px; padding: 26px; border-radius: 16px;
  border: 1px solid rgba(42, 37, 68, 0.1); background: #fff;
  box-shadow: 0 12px 40px rgba(42, 37, 68, 0.07);
}
.mz-setup-title { font-size: 17px; font-weight: 800; margin-bottom: 18px; }
.mz-setup-rows { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.mz-setup-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mz-setup-label { font-size: 13px; font-weight: 700; width: 96px; }
.mz-setup-hint { font-size: 11.5px; color: var(--dim); }
.mz-seg { display: inline-flex; border: 1px solid rgba(42, 37, 68, 0.16); border-radius: 10px; overflow: hidden; }
.mz-seg-btn { padding: 7px 18px; font-size: 13px; font-weight: 700; border: none; background: #fff; cursor: pointer; color: var(--text-2); }
.mz-seg-btn.on { background: var(--pink); color: #fff; }
.mz-start { width: 100%; }
.mz-phasebar {
  display: flex; gap: 8px; margin: 18px 0 22px;
}
.mz-phase {
  flex: 1; text-align: center; padding: 9px 0; border-radius: 10px;
  font-size: 12.5px; font-weight: 700; color: var(--dim);
  background: rgba(42, 37, 68, 0.05);
}
.mz-phase.on { background: var(--pink); color: #fff; }
.mz-step-title { font-size: 16px; font-weight: 800; margin-bottom: 16px; }
.mz-step-sub { font-size: 12px; color: var(--dim); font-weight: 400; margin-left: 8px; }
.mz-choose3 { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.mz-choose2 { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.mz-card {
  flex: 1; min-width: 200px; max-width: 260px; padding: 14px;
  border: 1.5px solid rgba(42, 37, 68, 0.12); border-radius: 14px;
  background: #fff; cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s;
}
.mz-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(42, 37, 68, 0.12); border-color: var(--pink); }
.mz-card-img { position: relative; margin-bottom: 10px; }
.mz-card-img img { width: 100%; border-radius: 10px; display: block; }
.mz-card-img.mz-back img { filter: brightness(0.55); }
.mz-card-name { font-size: 13.5px; font-weight: 800; margin-bottom: 4px; }
.mz-card-rarity { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.mz-card-rarity.r-n { color: #8B84A6; }
.mz-card-rarity.r-r { color: #3B82D6; }
.mz-card-rarity.r-e { color: #C8920A; }
.mz-card-effect { font-size: 12px; color: var(--text-2); line-height: 1.7; }
.mz-secret { color: var(--dim); font-style: italic; }
.mz-owned-title { font-size: 13px; font-weight: 700; margin: 4px 0 10px; color: var(--text-2); }
.mz-owned { display: flex; gap: 10px; flex-wrap: wrap; min-height: 40px; }
.mz-owned-item {
  display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px;
  border-radius: 999px; border: 1px solid rgba(42, 37, 68, 0.12); background: #fff;
  font-size: 12px; font-weight: 700;
}
.mz-owned-item img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.mz-owned-item[data-rarity="e"] { border-color: rgba(200, 146, 10, 0.5); }
.mz-owned-item[data-rarity="r"] { border-color: rgba(59, 130, 214, 0.5); }
.mz-owned-lg .mz-owned-item img { width: 46px; height: 46px; border-radius: 10px; }
.mz-diff { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mz-diff-btn {
  flex: 1; min-width: 150px; text-align: left; padding: 12px 14px;
  border: 1.5px solid rgba(42, 37, 68, 0.12); border-radius: 12px; background: #fff; cursor: pointer;
}
.mz-diff-btn b { display: block; font-size: 14px; margin-bottom: 3px; }
.mz-diff-btn span { font-size: 11px; color: var(--dim); line-height: 1.6; }
.mz-diff-btn.on { border-color: var(--pink); background: rgba(217, 85, 155, 0.05); }
.mz-summary { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.mz-sum-card {
  padding: 18px; border-radius: 14px; border: 1px solid rgba(42, 37, 68, 0.1);
  background: #fff;
}
.mz-sum-title { font-size: 13px; font-weight: 800; margin-bottom: 12px; color: var(--pink); }
.mz-sum-row { display: flex; gap: 12px; padding: 6px 0; font-size: 13px; }
.mz-sum-row span { width: 84px; flex-shrink: 0; color: var(--dim); font-size: 12px; padding-top: 1px; }
.mz-sum-row b { font-weight: 700; }
.mz-event-card .mz-card-name { letter-spacing: 1px; }
.mz-custom-wrap {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px 5px 14px;
  border: 1.5px solid var(--pink); border-radius: 10px;
  background: rgba(217, 85, 155, 0.05);
}
.mz-custom-wrap input[type="number"] {
  width: 52px; padding: 4px 2px; text-align: center;
  font-family: var(--font-num); font-size: 14px; font-weight: 700;
  border: none; outline: none; background: transparent; color: var(--pink);
  -moz-appearance: textfield; appearance: textfield;
}
.mz-custom-wrap input[type="number"]::-webkit-inner-spin-button,
.mz-custom-wrap input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.mz-custom-unit { font-size: 12px; font-weight: 700; color: var(--pink); }
.mz-custom-limit { font-size: 11px; color: var(--dim); }
.mz-setup-row-rounds { flex-wrap: nowrap; }
.mz-setup-row-rounds .mz-seg { flex-shrink: 0; }
.mz-custom-wrap { border-color: rgba(139, 132, 166, 0.35); background: rgba(139, 132, 166, 0.05); }
.mz-custom-wrap input[type="number"]:disabled { color: var(--dim); cursor: not-allowed; }
.mz-custom-wrap .mz-custom-unit { color: var(--dim); }
.mz-custom-wrap.active { border-color: var(--pink); background: rgba(217, 85, 155, 0.05); }
.mz-custom-wrap.active input[type="number"] { color: var(--pink); }
.mz-custom-wrap.active .mz-custom-unit { color: var(--pink); }
.mz-owned-lg .mz-owned-item { cursor: zoom-in; }
.mz-modal {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 8, 22, 0.72);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out;
}
.mz-modal-box {
  position: relative; width: min(92vw, 380px);
  background: #fff; border-radius: 16px; padding: 22px; text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.mz-modal-box img {
  width: auto; height: auto;
  max-width: min(72vw, 420px); max-height: 56vh;
  object-fit: contain;
  border-radius: 14px; margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(42, 37, 68, 0.2);
}
.mz-modal-name { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.mz-modal-rarity { font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.mz-modal-rarity.r-n { color: #8B84A6; }
.mz-modal-rarity.r-r { color: #3B82D6; }
.mz-modal-rarity.r-e { color: #C8920A; }
.mz-modal-desc { font-size: 12.5px; color: var(--dim); line-height: 1.8; margin-bottom: 8px; }
.mz-modal-effect {
  display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1.8;
  color: #7A5BD0; background: rgba(122, 91, 208, 0.08);
  border: 1px solid rgba(122, 91, 208, 0.25);
  border-radius: 10px; padding: 8px 12px;
}
.mz-modal-close {
  position: absolute; top: -14px; right: -14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: #fff; color: #4A4557;
  font-size: 17px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
/* ============ 萌将大乱斗模拟器 ============ */
.mj-levels { display: flex; gap: 8px; flex-wrap: wrap; }
.mj-level-btn {
  padding: 8px 18px; border-radius: 10px; border: 1.5px solid rgba(42, 37, 68, 0.16);
  background: #fff; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--text-2);
}
.mj-level-btn.on { border-color: var(--pink); background: rgba(217, 85, 155, 0.06); color: var(--pink); }
.mj-song-box {
  padding: 30px 20px; border-radius: 16px; text-align: center;
  border: 1.5px dashed rgba(42, 37, 68, 0.25); background: rgba(42, 37, 68, 0.03);
  margin-bottom: 18px;
}
.mj-song-name { font-size: 21px; font-weight: 800; margin-bottom: 22px; min-height: 30px; word-break: break-all; }
.mj-song-opts { display: flex; gap: 12px; justify-content: center; }
.mj-song-btn-no { background: rgba(42, 37, 68, 0.08); }
.mj-score-box { text-align: center; padding: 30px 20px; }
.mj-score-display {
  font-family: var(--font-num); font-size: 46px; font-weight: 800; letter-spacing: 0.03em;
  color: var(--pink); margin-bottom: 24px; font-variant-numeric: tabular-nums;
}
.mj-score-stop { min-width: 140px; }
.mj-hand { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; min-height: 60px; }
.mj-tile {
  width: 44px; height: 56px; border-radius: 8px; border: 1.5px solid rgba(42, 37, 68, 0.2);
  background: linear-gradient(180deg, #fff 0%, #F2EFE6 100%);
  font-family: var(--font-num); font-size: 16px; font-weight: 800; cursor: pointer;
  box-shadow: 0 2px 4px rgba(42, 37, 68, 0.1);
}
.mj-tile.sel {
  border-color: var(--pink); background: rgba(217, 85, 155, 0.12);
  transform: translateY(-5px); box-shadow: 0 4px 10px rgba(217, 85, 155, 0.3);
}
.mj-hand-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mj-hand-actions .btn { flex: 1; min-width: 120px; }
.mj-result { margin-top: 6px; }
.mj-result-title { font-size: 14px; font-weight: 800; margin-bottom: 10px; }
.mj-result-line {
  font-size: 13px; line-height: 1.9; padding: 6px 12px; border-radius: 8px;
  background: rgba(42, 37, 68, 0.04); margin-bottom: 6px;
}
.mj-result-total {
  font-size: 15px; font-weight: 800; color: var(--pink);
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: rgba(217, 85, 155, 0.07);
}
.mj-warn { color: var(--dim); font-style: italic; }
.mj-picks {
  display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center;
  padding: 10px 14px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(42, 37, 68, 0.05); font-size: 12.5px;
}
.mj-pick { display: inline-flex; align-items: center; gap: 5px; color: var(--text-2); }
.mj-pick b { color: var(--pink); font-size: 13px; }
.mj-tile-man { color: #D4553B; border-color: rgba(212, 85, 59, 0.35); }
.mj-tile-pin { color: #3B6ED6; border-color: rgba(59, 110, 214, 0.35); }
.mj-tile-sou { color: #1FA87A; border-color: rgba(31, 168, 122, 0.35); }
.mj-tile-honor { color: #4A4557; border-color: rgba(74, 69, 87, 0.35); }
.mj-dora {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px; margin-bottom: 14px;
  background: linear-gradient(90deg, rgba(200, 146, 10, 0.12), rgba(200, 146, 10, 0.04));
  border: 1px solid rgba(200, 146, 10, 0.35);
}
.mj-dora-label { font-size: 13px; font-weight: 800; color: #C8920A; }
.mj-dora-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 52px; border-radius: 8px;
  background: linear-gradient(180deg, #fff 0%, #F2EFE6 100%);
  border: 1.5px solid rgba(42, 37, 68, 0.2);
  font-family: var(--font-num); font-size: 15px; font-weight: 800;
  box-shadow: 0 2px 6px rgba(200, 146, 10, 0.35);
}
.mj-dora-info { font-size: 13px; color: var(--text-2); }
.mj-yaku { color: var(--pink); }
.mj-dora-inline { color: #C8920A; font-size: 14px; }
@media (max-width: 720px) {
  .mz-setup-row-rounds { flex-wrap: wrap; }
  .mz-setup-row-rounds .mz-setup-label { width: 100%; }
}
/* ============ 概率公示 odds.html ============ */
.odds-section {
  margin-bottom: 22px; padding: 20px 22px;
  border-radius: 16px; border: 1px solid rgba(42, 37, 68, 0.1);
  background: #fff;
}
.odds-title {
  font-size: 15px; font-weight: 800; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.odds-tag {
  font-size: 11.5px; font-weight: 500; color: var(--dim);
  background: rgba(42, 37, 68, 0.05); padding: 3px 10px; border-radius: 999px;
}
.odds-list { display: flex; flex-direction: column; }
.odds-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 4px; border-bottom: 1px dashed rgba(42, 37, 68, 0.08);
  font-size: 13.5px;
}
.odds-row:last-child { border-bottom: none; }
.odds-row i { font-style: normal; color: var(--dim); font-size: 12px; margin-left: 6px; }
.odds-row b {
  font-family: var(--font-num); font-size: 14px; color: var(--pink);
  white-space: nowrap;
}
/* 概率公示颜色 */
.odds-row .el-w { color: #3D66B8; }
.odds-row .el-f { color: #C1481A; }
.odds-row .el-a { color: #1F9A57; }
.odds-row .el-e { color: #96582F; }
.odds-row .el-l { color: #757575; }
.odds-row .el-d { color: #4A3570; }
.odds-row .sup-normal { color: #1F9A57; }
.odds-row .sup-rare { color: #7A5BD0; }
.odds-row .tr-normal { color: #4A4557; }
.odds-row .tr-rare { color: #3B82D6; }
.odds-row .tr-epic { color: #C8920A; }
.odds-row .star-1 { color: #F3A6A6; }
.odds-row .star-2 { color: #E57B7B; }
.odds-row .star-3 { color: #D45555; }
.odds-row .star-4 { color: #B33232; }
.odds-row .star-5 { color: #8E1F1F; }
.odds-row i { opacity: 0.85; }
.viewer-narrow { max-width: 560px; }
/* ============ 武器图鉴 weapons.html ============ */
.wf-group { margin-bottom: 26px; }
.wf-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 16px; border-bottom: 1px solid rgba(42, 37, 68, 0.08);
}
.wf-row:last-child { border-bottom: none; }
.wf-img {
  width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(42, 37, 68, 0.12); background: rgba(42, 37, 68, 0.05);
}
.wf-body { flex: 1; min-width: 0; }
.wf-name { font-size: 15px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-lvs { display: flex; flex-direction: column; gap: 5px; }
.wf-lv { display: flex; gap: 8px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.wf-lv-tag {
  flex-shrink: 0; min-width: 30px; text-align: center;
  font-family: var(--font-num); font-size: 11px; font-weight: 800;
  color: var(--pink); background: rgba(217, 85, 155, 0.08);
  border-radius: 6px; padding: 1px 6px; height: fit-content;
}
.wf-lv-tag.nolv { visibility: hidden; }
