/* ============ 我的超级大厅 ============ */
* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
/* 禁用双击缩放 + 消除 300ms 点击延迟（修复连续点击招募/再抽一次时页面缩放） */
html, body { touch-action: manipulation; }
button, .btn, [onclick] { touch-action: manipulation; }
html,body { height:100%; overflow:hidden; background:#1a1030; }
body { font-family:"PingFang SC","Microsoft YaHei",sans-serif; color:#fff; }
#app {
  max-width:480px; height:100vh; height:100dvh; margin:0 auto; position:relative;
  display:flex; flex-direction:column; overflow:hidden;
  background:#1a1030;
  padding-bottom:0;
}
.hidden { display:none !important; }

/* 顶栏 */
#topbar {
  display:flex; align-items:center; gap:5px; padding:7px 8px;
  background:rgba(30,10,60,.85); backdrop-filter:blur(6px);
  font-size:11px; z-index:20; flex-shrink:0;
}
.tb-item { white-space:nowrap; flex-shrink:1; min-width:0; font-size:11px; }
.tb-item b { color:#ffd76a; font-size:10.5px; }
.tb-icon { height:14px; width:auto; vertical-align:-3px; margin-right:1px; }
.slot-btn {
  background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); color:#fff;
  border-radius:10px; padding:2px 8px; font-size:11px; cursor:pointer; white-space:nowrap;
}
.slot-btn span { margin-left:3px; }
.hall-info { flex:1; min-width:0; }
.hall-name { font-weight:bold; font-size:13px; margin-right:6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:110px; display:inline-block; vertical-align:middle; }
.hall-level { color:#ff9ad5; font-size:11px; white-space:nowrap; }

/* 主页：允许纵向滚动兜底（内容撑爆时可滑，正常一屏不出现滚动条） */
#page-home {
  flex:1; position:relative;
  display:flex; flex-direction:column;
  overflow-x:hidden; overflow-y:auto;
  -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
  background:url('../assets/bg.png') center/cover no-repeat;
}
#stage { position:relative; display:flex; flex-direction:column; flex:1 0 auto; }

/* 9 排档位：1 顶居中 + 4 + 4 金字塔，9 格等大
   格子尺寸跟屏幕高度联动（--slot）：矮屏自动缩小，保证一屏放得下 */
#slots {
  --slot: clamp(42px, 8.6vh, 72px);   /* 兜底：不支持 dvh 的老浏览器 */
  --slot: clamp(42px, 8.6dvh, 72px);
  flex:0 0 auto; display:flex; flex-direction:column;
  gap:5px; padding:6px 10px; min-height:0;
}
.slot-row { display:flex; gap:6px; justify-content:center; }
.slot-row:first-child { justify-content:center; }
.slot {
  flex:0 0 auto; width:var(--slot, 72px); max-width:72px; max-height:72px; aspect-ratio:1; border-radius:10px; position:relative;
  display:flex; align-items:center; justify-content:center;
  background:rgba(40,15,80,.5); border:1px dashed rgba(255,255,255,.3);
  font-size:20px; color:rgba(255,255,255,.45); cursor:pointer;
  min-width:0; min-height:0; overflow:visible;
}
.slot-row:first-child .slot { flex:0 0 auto; width:var(--slot, 72px); max-width:72px; max-height:72px; }
.slot.filled { border:none; background:rgba(30,8,60,.4); }
.slot.filled img:not(.fr-ov) { width:74%; height:74%; max-width:56px; max-height:56px; border-radius:50%; border:2px solid var(--qc,#888); object-fit:cover; }
.slot .qname {
  position:absolute; bottom:-6px; left:0; right:0; text-align:center;
  font-size:11px; font-weight:bold; color:#fff; line-height:1.15;
  padding:1px 2px; background:rgba(20,6,42,.55); border-radius:6px;
  text-shadow:0 1px 2px #000; z-index:3;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.slot .lv {
  position:absolute; top:-5px; right:-2px; background:#ff5252; color:#fff;
  border-radius:8px; padding:0 5px; font-size:9px; z-index:2;
}

/* 下部：左厅管 / 右属性
   不收缩（flex-shrink:0）：空间不足时整页滚动，而不是把属性/聊天面板压扁裁掉 */
#bottom-area {
  flex:1 0 auto; display:flex; align-items:stretch; min-height:0;
  padding:0 8px 8px; min-width:0; overflow:hidden;
}
#perf-area {
  flex:0 0 44%; position:relative; display:flex;
  align-items:flex-end; justify-content:center;
  min-height:0; overflow:hidden;
}
/* 防闪屏关键：固定高度占位（不再是 height:auto）。
   图片加载前/切换形象时容器高度恒定，布局不会从 0 撑开跳动；
   object-fit:contain + bottom 保证任何比例的立绘都贴底显示，视觉与限高一致 */
#manager-img {
  width:100%; max-width:100%;
  height:min(44vh, 340px);
  height:min(44dvh, 340px);
  max-height:100%;
  object-fit:contain; object-position:bottom;
  cursor:pointer; filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));
  transition:transform .08s;
  user-select:none; -webkit-user-drag:none;
}
#manager-img:active { transform:scale(.97) translateY(2px); }
#manager-img.bounce { animation:bounce .35s; }
@keyframes bounce { 0%{transform:scale(1)} 40%{transform:scale(1.04) rotate(-1.5deg)} 100%{transform:scale(1)} }

/* 厅管形象选择网格 */
#skin-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:8px;
  margin:10px 0 12px; max-height:52vh; max-height:52dvh;
  overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.skin-cell {
  background:rgba(255,255,255,.06); border:1.5px solid rgba(255,255,255,.15);
  border-radius:10px; padding:6px 4px; text-align:center; cursor:pointer;
}
.skin-cell.cur { border-color:#ffd76a; background:rgba(255,215,106,.12); }
.skin-cell.locked { opacity:.55; }
.skin-thumb {
  height:100px; display:flex; align-items:flex-end; justify-content:center; overflow:hidden;
}
.skin-thumb img { max-height:100%; max-width:100%; object-fit:contain; object-position:bottom; }
.skin-thumb img.dim { filter:grayscale(.55) brightness(.55); }
.skin-name { font-size:12px; font-weight:bold; margin-top:4px; }
.skin-cond { font-size:10px; color:#c9b6ff; margin-top:2px; min-height:12px; }
.skin-lock-prog { font-size:10px; color:#9fd0ff; text-align:center; padding:2px 4px 4px; }
.skin-unlock-btn {
  display:block; width:calc(100% - 8px); margin:4px 4px 2px;
  padding:5px 0; font-size:10px; cursor:pointer;
  background:linear-gradient(180deg,#ffd76a,#e0a53a); color:#3a2400;
  border:none; border-radius:8px; font-weight:700;
}
#say-title {
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  background:linear-gradient(90deg,#ff6ad5,#b57bff); color:#fff;
  padding:3px 10px; border-radius:14px; font-size:11px; white-space:nowrap;
  box-shadow:0 2px 8px rgba(255,106,213,.4);
  animation:pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:.9} 50%{opacity:1; transform:translateX(-50%) scale(1.04)} }
#bubble {
  position:absolute; left:0; bottom:55%; max-width:100%; z-index:5;
  background:rgba(255,255,255,.92); color:#5a2a7a;
  padding:7px 10px; border-radius:12px; font-size:11px; line-height:1.5;
  box-shadow:0 3px 10px rgba(0,0,0,.3);
}
#bubble:after {
  content:''; position:absolute; left:22px; bottom:-8px;
  border:8px solid transparent; border-top-color:rgba(255,255,255,.92); border-bottom:0;
}
#float-layer { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.float-diamond {
  position:absolute; color:#ffd76a; font-weight:bold; font-size:15px;
  text-shadow:0 1px 4px #000; animation:floatUp 1s forwards;
}
.float-diamond.crit { color:#ff5252; font-size:18px; animation:floatUp 1.4s forwards; }
@keyframes floatUp { 0%{opacity:1; transform:translateY(0)} 100%{opacity:0; transform:translateY(-70px)} }

/* 属性面板（整体折叠框） */
#right-stack {
  flex:1; min-width:0; margin-left:6px;
  display:flex; flex-direction:column; gap:6px;
  min-height:0; align-self:flex-end;
}
.fold-box {
  background:rgba(30,10,60,.82); border-radius:14px; backdrop-filter:blur(4px);
  overflow:hidden;
}
#info-panel {
  font-size:12px; display:flex; flex-direction:column;
  min-height:0;
}
.ip-title { font-weight:bold; font-size:13px; color:#ffd76a; text-align:center; }
.ip-row { display:flex; align-items:center; gap:6px; min-width:0; white-space:nowrap; }
.bar { flex:1; min-width:0; height:8px; background:rgba(255,255,255,.15); border-radius:4px; overflow:hidden; }
.bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#ffd76a,#ff6ad5); transition:width .3s; }
.mini-btn {
  background:linear-gradient(90deg,#7b4dff,#b44dff); border:none; color:#fff;
  border-radius:10px; padding:4px 10px; font-size:12px; cursor:pointer;
}
.mini-btn:disabled { opacity:.45; }
.mini-btn.danger { background:linear-gradient(90deg,#e53935,#ff7043); }
.mini-btn.wide { width:100%; padding:7px; }
/* 领取收益 + 赞助打赏 同行 */
.checkin-row { display:flex; gap:6px; align-items:stretch; }
.checkin-row #checkin-btn { flex:1; min-width:0; padding:7px; }
.sponsor-btn {
  background:linear-gradient(90deg,#ff9a3d,#ff5e8a) !important;
  white-space:nowrap; padding:7px 10px; flex-shrink:0;
}
/* 赞助弹窗 */
.sponsor-qr { width:180px; height:180px; display:block; margin:6px auto; border-radius:10px; background:#fff; }
.sponsor-sec {
  background:rgba(255,255,255,.06); border-radius:10px; padding:8px 10px;
  margin-top:8px; font-size:12px; line-height:1.7; text-align:left;
}
.sponsor-wx {
  color:#7cf29b; font-weight:bold; user-select:text; -webkit-user-select:text;
  letter-spacing:.5px; font-size:13px;
}
.sponsor-claim { margin-top:8px; }
.sponsor-claim:disabled { opacity:.5; }
/* 赞助返利提示：无外框，小字提示 */
.sponsor-rebate {
  display:block; margin:6px auto 4px; padding:0 4px;
  font-size:12px; line-height:1.5; font-weight:normal; color:#ffd76a;
  text-align:center; background:none; border:none; box-shadow:none;
}
/* 2.8元赞助说明：用框框起来，醒目颜色 */
.sponsor-pay-hint {
  display:block; margin:8px 0 4px; padding:10px 12px;
  font-size:15px; line-height:1.7; color:#ff8a5c; font-weight:bold;
  text-align:left; background:rgba(255,138,92,.09);
  border:1px solid rgba(255,138,92,.55); border-radius:10px;
}
.sponsor-pay-hint b { color:#ff5c5c; }
.checkin-hint {
  text-align:center; font-size:11px; color:#ffe0a3; margin-top:-2px;
}

/* 折叠框通用 */
.fold-body { padding:8px 10px; display:flex; flex-direction:column; gap:6px; }
.fold-body.hidden { display:none; }

/* 大厅属性下拉展开 */
.ip-title.ip-toggle { display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; padding:8px 10px; }
.ip-arrow { font-size:12px; transition:transform .2s; }
.ip-title.collapsed .ip-arrow { transform:rotate(-90deg); }
.noble-val { color:#ffd76a; cursor:pointer; text-decoration:underline; text-underline-offset:2px; }

/* 语音厅虚拟聊天场景 */
#virtual-chat {
  display:flex; flex-direction:column;
  border:1px solid rgba(255,215,106,.3);
  min-height:0;
}
.vc-title { font-weight:bold; font-size:12px; color:#ffd76a; }
.vc-title.vc-toggle { display:flex; align-items:center; justify-content:space-between; cursor:pointer; user-select:none; padding:8px 10px; }
.vc-title.collapsed .ip-arrow { transform:rotate(-90deg); }
.vc-list { display:flex; flex-direction:column; gap:4px; max-height:140px; overflow-y:auto; font-size:12px; }
.vc-list.hidden { display:none; }
.vc-msg { line-height:1.4; }
.vc-nick { font-weight:bold; }
.vc-nick.anchor { color:#ff6ad5; }
.vc-nick.user { color:#9fe8ff; }
.vc-text { color:#eee; }

/* 爵位体系 */
.noble-cur {
  display:flex; align-items:center; gap:10px; padding:10px;
  background:rgba(255,255,255,.05); border-radius:10px; margin-bottom:10px;
}
.noble-cur-badge { font-size:30px; display:flex; align-items:center; }
.noble-badge-img { height:1em; vertical-align:-0.15em; }
.noble-cur-badge .noble-badge-img { height:44px; }
.noble-cur-name { font-weight:bold; font-size:16px; }
.noble-upgrade-hint { font-size:11px; color:#ffe0a3; margin-top:3px; }
.noble-list { display:flex; flex-direction:column; gap:6px; max-height:50vh; overflow-y:auto; }
.noble-item {
  display:flex; align-items:center; gap:8px; padding:8px 10px;
  background:rgba(255,255,255,.04); border-radius:8px;
  border:1px solid transparent;
}
.noble-item.mine { border-color:#ffd76a; background:rgba(255,215,106,.10); }
.noble-item.next { border-color:#ff6ad5; background:rgba(255,106,213,.08); }
.noble-item-badge { font-size:22px; width:34px; text-align:center; display:flex; align-items:center; justify-content:center; }
.noble-item-badge .noble-badge-img { height:30px; }
.noble-item-name { font-weight:bold; font-size:13px; }
.noble-item-sub { font-size:11px; color:rgba(255,255,255,.6); }
.noble-item-right { margin-left:auto; text-align:right; }
.noble-upgrade-btn { margin-left:8px; }

/* 录入标记 + 身份牌 */
.entered-tag { font-size:10px; color:#9fe8ff; }
.locked-tag { font-size:10px; color:#ffd76a; background:rgba(255,215,106,.15); border:1px solid rgba(255,215,106,.5); border-radius:6px; padding:1px 5px; }
.noble-tag { height:22px; vertical-align:-4px; margin-right:3px; display:inline-block; }
.noble-val .noble-badge-img { height:18px; vertical-align:-4px; }

/* 底部导航：单行 7 项（大厅/赛季/魔法/招募/主播/包裹/更多），固定显示
   派遣/搜打撤/收藏/设置收进「更多」抽屉 */
#navbar {
  flex-shrink:0; display:flex; flex-direction:row; gap:4px; padding:5px 6px 2px;
  background:rgba(25,8,50,.97); z-index:20; position:relative;
  /* 底部安全区：为 iOS 底部手势条 / 部分安卓底部工具栏让位，避免被浏览器 UI 盖住 */
  padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 4px);
}
/* 「更多」抽屉：贴在「更多」按钮上方弹出的窄竖排菜单（右对齐） */
.more-menu {
  position:absolute; right:6px; bottom:100%;
  width:168px; max-width:72vw;
  margin:0 0 8px; z-index:30;
  background:rgba(25,8,50,.98); border:1px solid rgba(255,215,106,.55);
  border-radius:14px; padding:6px; display:flex; flex-direction:column; gap:2px;
  box-shadow:0 -6px 20px rgba(0,0,0,.5);
}
.more-menu.hidden { display:none; }
.more-item {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 12px; border-radius:10px; color:#ffe9b8;
  font-size:14px; font-weight:bold; cursor:pointer;
  background:linear-gradient(160deg,rgba(90,40,160,.85),rgba(50,18,95,.85));
  border:1px solid rgba(255,255,255,.12);
}
.more-item:active { background:linear-gradient(160deg,rgba(180,77,255,.9),rgba(255,106,213,.75)); }
.nav-btn {
  flex:1; min-width:0;
  background:linear-gradient(160deg,rgba(90,40,160,.85),rgba(50,18,95,.85));
  border:1px solid rgba(255,215,106,.55); color:#ffe9b8;
  font-size:12px; font-weight:bold; padding:7px 0; line-height:1.25;
  border-radius:10px; cursor:pointer; white-space:nowrap;
  text-shadow:0 1px 2px rgba(0,0,0,.6);
}
.nav-btn.active {
  color:#ffd76a; border-color:#ffd76a;
  background:linear-gradient(160deg,rgba(180,77,255,.9),rgba(255,106,213,.75));
  box-shadow:0 0 8px rgba(255,215,106,.45);
}
/* 赛季入口：金色突出 */
.nav-btn.nav-gold {
  background:linear-gradient(160deg,rgba(160,110,20,.9),rgba(110,70,10,.9));
  border-color:rgba(255,215,106,.85); color:#ffe9b8;
}
.nav-btn.nav-gold.active {
  background:linear-gradient(160deg,rgba(255,190,60,.95),rgba(230,150,20,.9));
  color:#3a1a00; text-shadow:none; border-color:#fff0c0;
  box-shadow:0 0 10px rgba(255,215,106,.6);
}

/* 覆盖页面
   底部预留安全区：导航栏固定显示，为单行导航让位，内容滚得出、不遮挡 */
.page.overlay {
  position:absolute; inset:0; z-index:15; display:none;
  background:rgba(15,5,35,.6); backdrop-filter:blur(3px);
}
.page.overlay.active {
  display:block; overflow-y:auto; padding:12px;
  padding-bottom:calc(env(safe-area-inset-bottom, 0px) + 60px);
}
.panel {
  background:linear-gradient(160deg,rgba(50,18,95,.96),rgba(28,10,60,.96));
  border:1px solid rgba(255,255,255,.12); border-radius:16px;
  padding:14px; margin-bottom:12px;
}
.panel.transparent { background:rgba(30,10,65,.72); }
.panel h2 { font-size:16px; margin-bottom:10px; display:flex; justify-content:space-between; align-items:center; }
.close-btn { background:none; border:none; color:#fff; font-size:16px; cursor:pointer; }
.hint { font-size:11px; color:rgba(255,255,255,.65); margin-bottom:8px; line-height:1.6; }
.btn-row { display:flex; gap:8px; margin:8px 0; align-items:center; }
.big-btn {
  flex:1; background:linear-gradient(90deg,#ff6ad5,#b44dff); border:none; color:#fff;
  border-radius:12px; padding:11px; font-size:14px; font-weight:bold; cursor:pointer;
  box-shadow:0 3px 10px rgba(180,77,255,.35);
}
.big-btn:active { transform:scale(.97); }
.big-btn:disabled { opacity:.4; }
.big-btn.wide { width:100%; margin-top:8px; }
.custom-draw { display:flex; gap:6px; flex:1; }
.custom-draw input {
  width:64px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25);
  border-radius:10px; color:#fff; text-align:center; font-size:13px;
}

/* 品质概率 */
.qual-odds { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:8px; }
.qchip { font-size:10px; padding:3px 8px; border-radius:10px; background:rgba(255,255,255,.1); }
.recruit-card {
  display:flex; align-items:center; gap:10px; padding:8px;
  background:rgba(255,255,255,.07); border-radius:12px; margin:5px 0;
  border:1px solid var(--qc,#888);
}
.recruit-card img:not(.fr-ov) { width:52px; height:52px; border-radius:50%; border:2px solid var(--qc); }
.recruit-card .rc-name { font-weight:bold; font-size:14px; }
.recruit-card .rc-sub { font-size:11px; color:rgba(255,255,255,.7); }

/* 爱情魔法 */
#page-magic { background:radial-gradient(ellipse at 50% 20%, #3a1a6e 0%, #180a35 70%); }
.stars { position:absolute; inset:0; pointer-events:none; }
.stars i {
  position:absolute; background:#fff; border-radius:50%; opacity:.7;
  animation:twinkle 2.4s infinite;
}
@keyframes twinkle { 0%,100%{opacity:.15} 50%{opacity:.95} }
#book-wrap { display:flex; justify-content:center; margin:6px 0 12px; }
#magic-book {
  width:min(60vw,230px); border-radius:18px;
  box-shadow:0 10px 40px rgba(180,77,255,.45);
  animation:floaty 3s ease-in-out infinite;
}
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-16px)} }
.stats-row {
  display:flex; gap:10px; align-items:center; font-size:12px;
  background:rgba(255,255,255,.08); border-radius:10px; padding:7px 10px; margin-top:6px;
}
.stats-row b { color:#ffd76a; }
/* 屏蔽礼物放大开关 */
.stats-row .switch { margin-left:auto; }
.switch { position:relative; display:inline-block; width:44px; height:24px; flex-shrink:0; }
.switch input { opacity:0; width:0; height:0; }
.switch .slider {
  position:absolute; cursor:pointer; top:0; left:0; right:0; bottom:0;
  background:rgba(255,255,255,.2); border-radius:24px; transition:.3s;
}
.switch .slider:before {
  content:''; position:absolute; height:18px; width:18px; left:3px; top:3px;
  background:#fff; border-radius:50%; transition:.3s;
}
.switch input:checked + .slider { background:linear-gradient(90deg,#ff6ad5,#b44dff); }
.switch input:checked + .slider:before { transform:translateX(20px); }
#history-box { margin-top:8px; font-size:12px; }
#history-box summary { cursor:pointer; color:#ff9ad5; }
#history-list { max-height:180px; overflow-y:auto; margin-top:6px; }
.hline { display:flex; justify-content:space-between; padding:4px 8px; background:rgba(255,255,255,.05); border-radius:8px; margin:3px 0; }
.hline .g-name { flex:1; }

/* 主播列表 */
.filter-row { display:flex; gap:6px; margin-bottom:8px; align-items:center; }
.filter-row select {
  flex:1; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25);
  border-radius:8px; padding:6px; font-size:12px; min-width:0;
}
.filter-row select option { color:#333; }
.filter-row.fire-by-charm input {
  flex:1; background:rgba(255,255,255,.12); color:#fff; border:1px solid rgba(255,255,255,.25);
  border-radius:8px; padding:6px; font-size:12px; min-width:0;
}
.filter-row.fire-by-charm input::placeholder { color:rgba(255,255,255,.45); }
.filter-row.fire-by-charm .mini-btn { flex-shrink:0; }
.anchor-item {
  display:flex; align-items:center; gap:10px; padding:8px;
  background:rgba(255,255,255,.06); border-radius:12px; margin:6px 0;
  border-left:4px solid var(--qc,#888);
}
.anchor-item img:not(.fr-ov) { width:50px; height:50px; border-radius:50%; border:2px solid var(--qc); }
/* 收礼 24h 头像框覆盖层（花环环绕头像外围） */
.fr-wrap { position:relative; display:inline-flex; flex-shrink:0; }
.fr-wrap .fr-ov {
  position:absolute; inset:-15%; width:130%; height:130%;
  object-fit:contain; pointer-events:none; z-index:3;
}
.slot.filled .fr-wrap { width:74%; height:74%; }
.slot.filled .fr-wrap > img:not(.fr-ov) { width:100%; height:100%; }
.anchor-item .ai-info { flex:1; min-width:0; }
.anchor-item .ai-name { font-size:14px; font-weight:bold; }
.anchor-item .ai-sub { font-size:11px; color:rgba(255,255,255,.65); }
.anchor-item .ai-actions { display:flex; flex-direction:column; gap:4px; align-items:stretch; }
.anchor-item.locked { opacity:.92; }
.anchor-item.locked .lock-tag {
  font-size:11px; color:#ffd76a; background:rgba(255,215,106,.15);
  border:1px solid rgba(255,215,106,.5); border-radius:8px; padding:4px 6px;
  white-space:nowrap; text-align:center;
}
.anchor-load-more {
  text-align:center; font-size:12px; color:#ffd76a; padding:12px 0;
  cursor:pointer; user-select:none;
}
.anchor-load-more:active { opacity:.7; }

/* 招募保留条件 */
.keep-row {
  display:flex; align-items:center; gap:5px; margin:4px 0 8px;
  background:rgba(255,255,255,.06); border-radius:10px; padding:7px 8px;
}
.keep-label { font-size:12px; color:#ffe9b8; white-space:nowrap; }
.keep-row select {
  flex:1; min-width:0; background:rgba(255,255,255,.12); color:#fff;
  border:1px solid rgba(255,255,255,.25); border-radius:8px; padding:5px; font-size:12px;
}
.keep-row select option { color:#333; }
.hint.sub { color:#ffb0b0; }

/* 包裹 */
#bag-list { min-height:60px; }
.bag-item {
  display:flex; align-items:center; gap:10px; padding:7px;
  background:rgba(255,255,255,.06); border-radius:12px; margin:5px 0;
}
.bag-item img { width:44px; height:44px; border-radius:8px; }
.bag-item.big-gift img { box-shadow:0 0 10px #ffd76a; border:1px solid #ffd76a; }
.bag-item .bi-name { flex:1; font-size:13px; min-width:0; }
.bag-item .bi-val { font-size:11px; color:rgba(255,255,255,.65); }
.bag-item .bi-val .bi-sub { font-size:9px; color:#ffd76a; }
.bag-item .bi-count { color:#ffd76a; font-weight:bold; }
.bag-item .mini-btn { flex-shrink:0; }
.bag-item.locked { background:rgba(255,215,106,.08); border:1px solid rgba(255,215,106,.3); }
.lock-btn {
  flex-shrink:0; width:30px; height:30px; border-radius:8px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08); cursor:pointer; font-size:14px; line-height:1;
}
.lock-btn:active { transform:scale(.9); }
.sell-result { text-align:center; font-size:14px; line-height:2; }
.sell-result .sr-tease { font-size:12px; color:#9fe8ff; margin-top:6px; }
/* 单种礼物回收数量选择 */
.sell-count-row { display:flex; align-items:center; justify-content:center; gap:12px; margin:14px 0 6px; }
.sell-count-row .mini-btn { width:42px; height:42px; font-size:20px; padding:0; }
.sell-count-row input {
  width:100px; padding:10px; text-align:center; font-size:18px; font-weight:bold;
  border-radius:10px; border:1px solid rgba(255,215,106,.5); background:rgba(0,0,0,.28); color:#fff;
}
/* 搜打撤收藏品出售：全部卖出（金色胶囊按钮，不套用 .mini-btn 方块尺寸） */
.sjz-sell-all-row { text-align:center; margin:2px 0 10px; }
.sjz-sell-all {
  display:inline-flex; align-items:center; justify-content:center;
  padding:7px 22px; border-radius:999px;
  border:1px solid rgba(255,215,106,.55);
  background:rgba(255,215,106,.10);
  color:#ffd76a; font-size:13px; font-weight:600; letter-spacing:1px;
  line-height:1.2; cursor:pointer; transition:transform .15s ease, background .15s ease;
  -webkit-tap-highlight-color:transparent;
}
.sjz-sell-all:active { transform:scale(.95); background:rgba(255,215,106,.22); }
/* 礼包码专属主播展示 */
.sr-anchor { display:flex; align-items:center; gap:10px; margin:10px auto 2px; padding:8px 10px;
  background:rgba(255,215,106,.08); border:1px solid rgba(255,215,106,.35); border-radius:12px;
  max-width:280px; text-align:left; }
.sr-anchor img { width:56px; height:56px; border-radius:50%; object-fit:cover; flex-shrink:0;
  border:2px solid #ffd76a; }
.sra-info { min-width:0; }
.sra-name { font-size:15px; font-weight:bold; color:#fff; }
.sra-qual { font-size:12px; margin-top:2px; }
.sell-box { margin-top:10px; background:rgba(255,255,255,.07); border-radius:14px; padding:10px; }
.sell-title { font-size:13px; font-weight:bold; margin-bottom:8px; }
.price-row { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:6px; }
.price-opt {
  flex:0 0 calc(20% - 5px); padding:7px 0; text-align:center; border-radius:10px; font-size:12px;
  background:rgba(255,255,255,.1); border:1px solid transparent; cursor:pointer;
}
.price-opt.sel { background:linear-gradient(90deg,#ff6ad5,#b44dff); border-color:#fff; }
.custom-price { font-size:12px; display:flex; align-items:center; gap:6px; margin:6px 0; }
.custom-price input { width:56px; text-align:center; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); border-radius:8px; color:#fff; padding:4px; }
.tease { font-size:11px; color:#ffe9a8; line-height:1.6; min-height:18px; }
.tease.after { color:#9fe8ff; margin-top:6px; }

/* 弹窗 */
.modal {
  position:fixed; inset:0; z-index:60; background:rgba(0,0,0,.72);
  display:flex; align-items:center; justify-content:center; padding:16px;
}
.modal-inner {
  background:linear-gradient(160deg,#3a1a6e,#1c0a3c); border:1px solid rgba(255,255,255,.18);
  border-radius:18px; padding:16px; width:100%; max-width:420px; max-height:82vh; overflow-y:auto;
}
.modal-inner h3 { text-align:center; margin-bottom:10px; }
.modal-inner.small { max-width:340px; }

/* 全屏对方大厅视图 */
#visit-hall {
  flex-direction:column; align-items:stretch; justify-content:flex-start;
  background:linear-gradient(160deg,#2a1045,#150830); padding:0;
  overflow:hidden;
}
.vh-header {
  display:flex; align-items:center; gap:10px; padding:14px 16px 10px;
  border-bottom:1px solid rgba(255,255,255,.12); flex:0 0 auto;
}
.vh-back {
  background:rgba(255,255,255,.12); color:#fff; border:none; border-radius:10px;
  padding:7px 14px; font-size:14px; cursor:pointer; flex-shrink:0;
}
.vh-title { flex:1; min-width:0; font-size:16px; font-weight:bold; color:#ffd76a;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-align:center; }
.vh-level { font-size:13px; color:#fff; flex-shrink:0; }
.vh-level b { color:#9fe8ff; }
/* 排档位：复刻自己大厅 #slots 的金字塔布局 */
.vh-slots {
  flex:0 0 auto; display:flex; flex-direction:column;
  gap:6px; padding:8px 10px; align-items:center; min-height:0;
}
.vh-slots .slot-row { width:100%; max-width:420px; }
.vh-slots .slot { cursor:pointer; }
/* 下部：左厅管立绘 / 右大厅信息（复刻自己大厅 #bottom-area） */
.vh-bottom {
  flex:1; display:flex; align-items:stretch; min-height:0;
  padding:0 8px 8px; min-width:0; overflow:hidden;
}
.vh-perf {
  flex:0 0 44%; position:relative; display:flex;
  align-items:flex-end; justify-content:center;
  min-height:0; overflow:hidden;
}
.vh-perf img {
  width:100%; max-width:100%; height:auto; max-height:100%;
  object-fit:contain; object-position:bottom;
  filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));
  user-select:none; -webkit-user-drag:none;
}
.vh-panel {
  flex:1; min-width:0; margin-left:6px; padding:8px 10px;
  background:rgba(30,10,60,.82); border-radius:14px; backdrop-filter:blur(4px);
  font-size:12px; display:flex; flex-direction:column; gap:6px;
  align-self:flex-end; justify-content:center; max-height:100%; min-height:0;
  overflow:hidden;
}
.vh-owner b { color:#ffd76a; }
.vh-charm b { color:#ffb6f0; }
.vh-close { width:100%; margin-top:2px; padding:6px; font-size:12px; }
#visit-hall .hint { text-align:center; }

/* 设置弹窗：纵向排列按钮，统一间距，避免重叠 */
#settings-modal .modal-inner {
  display:flex; flex-direction:column; gap:9px;
}
#settings-modal .modal-inner h3 { margin-bottom:2px; }
#settings-modal .mini-btn.wide { margin:0; }
#settings-modal .code-box { margin:0; }
#settings-modal .big-btn.wide { margin-top:0; }

/* 设置弹窗：uid 展示与查询 */
#settings-modal .uid-box {
  display:flex; flex-direction:column; gap:6px;
  padding:10px; border:1px solid rgba(255,255,255,.14); border-radius:10px;
  background:rgba(255,255,255,.04);
}
#settings-modal .uid-label { font-size:11px; color:rgba(255,255,255,.55); }
#settings-modal .uid-row { display:flex; align-items:center; gap:8px; }
#settings-modal .uid-val {
  flex:1; font-size:13px; color:#ffd76a; word-break:break-all;
  background:rgba(0,0,0,.25); padding:6px 8px; border-radius:8px;
}
#settings-modal .uid-box input {
  width:100%; padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,.18);
  background:rgba(0,0,0,.3); color:#fff; font-size:13px;
}
#settings-modal .uid-box input::placeholder { color:rgba(255,255,255,.35); }

/* 玩家查询结果弹窗 */
.ps-body { min-height:60px; }
.ps-card {
  display:flex; flex-direction:column; gap:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,215,106,.25);
  border-radius:12px; padding:14px; margin-bottom:12px;
}
.ps-row { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.ps-k { font-size:12px; color:rgba(255,255,255,.6); }
.ps-v { font-size:14px; color:#ffd76a; font-weight:bold; text-align:right; word-break:break-all; }

/* 参观对方大厅主播列表 */
.ps-anchor-sec { margin-top:12px; }
.ps-sec-title { font-size:13px; color:#ffd76a; font-weight:bold; margin-bottom:8px; }
.ps-anchor-list { display:flex; flex-direction:column; gap:8px; max-height:300px; overflow-y:auto; }
.ps-anchor-item {
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.14);
  border-radius:10px; padding:8px 10px;
}
.ps-anchor-item img:not(.fr-ov) { width:44px; height:44px; border-radius:50%; border:2px solid var(--qc,#fff); }
.pa-info { flex:1; min-width:0; }
.pa-name { font-size:13px; font-weight:bold; }
.pa-sub { font-size:11px; color:rgba(255,255,255,.6); margin-top:2px; }

/* 送礼弹窗 */
.gift-to-body { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; }
.gift-to-item {
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,215,106,.25);
  border-radius:10px; padding:8px 10px;
}
.gift-to-item img { width:44px; height:44px; border-radius:8px; }
.gt-info { flex:1; min-width:0; }
.gt-name { font-size:13px; color:#ffd76a; font-weight:bold; }
.gt-sub { font-size:11px; color:rgba(255,255,255,.6); margin-top:2px; }

/* 全麦年冠选择 */
.nc-body { display:flex; flex-direction:column; gap:8px; margin-bottom:12px; max-height:46vh; overflow-y:auto; }
.nc-item {
  display:flex; align-items:center; gap:10px;
  background:rgba(255,255,255,.05); border:2px solid transparent;
  border-radius:10px; padding:8px 10px; transition:.15s;
}
.nc-item img { width:44px; height:44px; border-radius:8px; background:#fff; object-fit:contain; }
.nc-info { flex:1; min-width:0; }
.nc-name { font-size:13px; color:#ffd76a; font-weight:bold; }
.nc-sub { font-size:11px; color:rgba(255,255,255,.6); margin-top:2px; }
.nc-step { display:flex; align-items:center; gap:6px; flex-shrink:0; }
.nc-step-btn {
  width:30px; height:30px; border-radius:8px; border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.08); color:#fff; font-size:18px; line-height:1;
  cursor:pointer; display:flex; align-items:center; justify-content:center; font-weight:bold;
  transition:.12s;
}
.nc-step-btn:active { background:#ffd76a; color:#3a1f00; }
.nc-qty { min-width:26px; text-align:center; font-size:16px; font-weight:bold; color:#ffd76a; }
#nc-confirm.disabled { opacity:.45; pointer-events:none; }
.vh-nianguan { margin-top:4px; }


/* 收礼送礼详情 */
.gh-tabs { display:flex; gap:8px; margin-bottom:10px; }
.gh-tab {
  flex:1; padding:9px; font-size:14px; font-weight:bold; border-radius:10px;
  background:rgba(255,255,255,.06); color:rgba(255,255,255,.6); cursor:pointer;
  border:1px solid rgba(255,255,255,.08);
}
.gh-tab.active { background:linear-gradient(135deg,#b04dff,#7a3cff); color:#fff; border-color:transparent; }
.gh-tab.receive-active { background:linear-gradient(135deg,#4caf7d,#2e8b57); }
.gh-tab.send-active { background:linear-gradient(135deg,#ff8a5c,#e0653c); }
.gh-body { display:flex; flex-direction:column; gap:8px; max-height:60vh; overflow-y:auto; }
.gh-row {
  display:flex; gap:10px; align-items:flex-start;
  background:rgba(255,255,255,.05); border-radius:10px; padding:10px 12px;
}
.gh-row.send { border-left:3px solid #ff8a5c; }
.gh-row.receive { border-left:3px solid #7cc47f; }
.gh-dir { font-size:13px; font-weight:bold; flex:0 0 auto; }
.gh-row.send .gh-dir { color:#ff8a5c; }
.gh-row.receive .gh-dir { color:#7cc47f; }
.gh-main { flex:1; min-width:0; }
.gh-gift { font-size:13px; color:#fff; }
.gh-val { color:#ffd76a; font-weight:bold; }
.gh-sub { font-size:11px; color:rgba(255,255,255,.55); margin-top:3px; word-break:break-all; }
.gh-comm { font-size:11px; color:#ffd76a; }
.gh-comm b { color:#ffd76a; }
/* 抽奖结果弹窗：仅黄金魔法（有「再开」按钮）固定高度，按钮始终位于底部同一位置；
   爱情/紫晶魔法保持弹窗自适应高度（恢复原样式，内容多时整体滚动） */
#gift-modal.gold-mode .modal-inner {
  display:flex; flex-direction:column;
  height:64vh;               /* 固定高度：弹窗高度恒定，底部按钮位置恒定 */
  max-height:82vh;           /* 极小屏保护 */
  min-height:340px;          /* 极小屏兜底，避免被压扁 */
}
/* 「再开十个」与「收下」按钮等高对齐：mini-btn 与 big-btn 尺寸统一，视觉不再一高一矮 */
#gift-modal.gold-mode .btn-row { align-items:stretch; }
#gift-modal.gold-mode .btn-row .mini-btn {
  flex:1; padding:11px; font-size:14px; font-weight:bold;
  border-radius:12px; box-shadow:0 3px 10px rgba(180,77,255,.35);
}
#gift-modal.gold-mode #gift-modal-list {
  flex:1 1 auto; min-height:0; overflow-y:auto;   /* 填满剩余空间，内容多则内部滚动 */
  align-content:flex-start; padding:2px;
}
#gift-modal-list {
  display:flex; flex-wrap:wrap; gap:8px; justify-content:center;
}
.gm-item { display:flex; flex-direction:column; align-items:center; width:74px; position:relative; }
.gm-item img { width:60px; height:60px; border-radius:10px; }
.gm-item.big-gift img { width:70px; height:70px; box-shadow:0 0 14px #ffd76a; border:1px solid #ffd76a; }
.gm-item .gm-name { font-size:10px; margin-top:3px; text-align:center; }
.gm-item .gm-val { font-size:9px; color:rgba(255,255,255,.6); }
.gm-item .gm-n { position:absolute; top:-6px; right:-2px; background:#ff5252; border-radius:8px; padding:0 5px; font-size:10px; }
.gm-item.zooming { animation:zoomGift 1.6s ease-in-out forwards; z-index:5; }
@keyframes zoomGift {
  0% { transform:scale(1); }
  35% { transform:scale(2.6); }
  65% { transform:scale(2.6); }
  100% { transform:scale(1); }
}
/* 高价值礼物：放大到屏幕中央展示 */
#gift-center-stage {
  position:fixed; inset:0; z-index:75; pointer-events:none;
  display:flex; align-items:center; justify-content:center;
}
#gift-center-stage .gc-img {
  width:240px; height:240px; object-fit:contain;
  border-radius:18px; box-shadow:0 0 60px rgba(255,215,106,.9);
  animation:gcPop 1.6s ease-in-out forwards;
}
@keyframes gcPop {
  0% { transform:scale(.35); opacity:0; }
  25% { transform:scale(1.2); opacity:1; }
  45% { transform:scale(1); opacity:1; }
  80% { transform:scale(1); opacity:1; }
  100% { transform:scale(.3); opacity:0; }
}
.gm-item.legend img { animation:legendGlow 1.2s infinite; border:2px solid gold; }
@keyframes legendGlow {
  0%,100% { box-shadow:0 0 10px gold; filter:brightness(1); }
  50% { box-shadow:0 0 30px gold,0 0 60px orange; filter:brightness(1.5); }
}
.legend-flash {
  position:fixed; inset:0; z-index:70; pointer-events:none;
  background:radial-gradient(circle,rgba(255,215,0,.5),transparent 70%);
  animation:flash 1.4s forwards;
}
/* 全屏送礼特效视频 */
#gift-effect-stage {
  position:fixed; inset:0; z-index:100;
  background:rgba(0,0,0,.85);
  display:flex; align-items:center; justify-content:center;
}
#gift-effect-stage video {
  width:100%; height:100%; object-fit:contain;
  background:#000;
}
#gift-effect-stage .ge-close {
  position:absolute; top:12px; right:12px; z-index:101;
  width:36px; height:36px; border-radius:50%;
  background:rgba(0,0,0,.55); color:#fff; border:1px solid rgba(255,255,255,.4);
  font-size:18px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
@keyframes flash { 0%{opacity:0} 25%{opacity:1} 100%{opacity:0} }
#gift-modal-summary { text-align:center; font-size:12px; margin:10px 0; color:#ffe9a8; }

/* 厅背景选择 */
#bg-list { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.bg-item {
  border:2px solid rgba(255,255,255,.2); border-radius:12px; overflow:hidden;
  cursor:pointer; position:relative; background:rgba(255,255,255,.05);
}
.bg-item.sel { border-color:#ffd76a; box-shadow:0 0 10px rgba(255,215,106,.5); }
.bg-item img { width:100%; aspect-ratio:9/14; object-fit:cover; display:block; }
.bg-item .bg-name { padding:5px; font-size:12px; text-align:center; }
/* 未解锁背景：压暗 + 条件提示 + 解锁按钮 */
.bg-item.locked { cursor:not-allowed; border-style:dashed; }
.bg-item.locked .bg-name { color:rgba(255,255,255,.55); }
.bg-item img.dim { filter:grayscale(.55) brightness(.55); }
.bg-item .bg-lock {
  position:absolute; left:0; right:0; top:0; padding:4px 6px;
  background:linear-gradient(180deg,rgba(0,0,0,.72),rgba(0,0,0,0));
  font-size:11px; color:#ffd76a; text-align:center; line-height:1.35;
}
.bg-item .bg-lock-prog { font-size:11px; color:#9fd0ff; text-align:center; padding:0 4px 4px; }
.bg-item .bg-unlock-btn {
  display:block; width:calc(100% - 12px); margin:0 6px 6px;
  padding:5px 0; font-size:11px; cursor:pointer;
  background:linear-gradient(180deg,#ffd76a,#e0a53a); color:#3a2400;
  border:none; border-radius:8px; font-weight:700;
}

/* 存档管理（已移除入口，样式保留无碍） */
.new-slot { display:flex; gap:8px; margin:10px 0; }

/* 主播详情 */
.ad-head { display:flex; gap:12px; align-items:center; margin-bottom:10px; }
.ad-head img:not(.fr-ov) { width:70px; height:70px; border-radius:50%; border:3px solid var(--qc); }
.ad-stats { font-size:13px; line-height:1.9; }
.ad-btns { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
.mini-btn.lock-on { background:linear-gradient(90deg,#2ecc71,#27ae60); }

/* 引导 */
#guide {
  position:fixed; inset:0; z-index:80; background:rgba(0,0,0,.66);
  display:flex; flex-direction:column; align-items:center; justify-content:center; padding:24px;
}
#guide-box {
  background:linear-gradient(160deg,#3a1a6e,#1c0a3c); border:2px solid #ffd76a;
  border-radius:18px; padding:20px; font-size:15px; line-height:1.8; max-width:340px; text-align:center;
}
#guide-next { margin-top:16px; max-width:200px; flex:0 0 auto; width:100%; }

/* Toast */
#toast {
  position:fixed; top:70px; left:50%; transform:translateX(-50%);
  background:rgba(0,0,0,.8); color:#fff; padding:8px 18px; border-radius:20px;
  font-size:13px; z-index:90; transition:opacity .3s; opacity:0; pointer-events:none;
  max-width:80%; text-align:center;
}
#toast.show { opacity:1; }

/* 全局提醒（需点击关闭） */
#global-notice {
  position:fixed; top:70px; left:50%; transform:translateX(-50%);
  z-index:95; width:max-content; max-width:88%;
}
#global-notice.hidden { display:none; }
.gn-box {
  display:flex; align-items:center; gap:10px;
  background:linear-gradient(135deg,rgba(255,90,60,.95),rgba(180,60,255,.95));
  color:#fff; padding:12px 16px; border-radius:14px;
  box-shadow:0 8px 24px rgba(0,0,0,.45); border:1px solid rgba(255,255,255,.3);
  font-size:13.5px; line-height:1.5;
}
.gn-icon { font-size:20px; flex-shrink:0; }
.gn-text { flex:1; min-width:0; }
.gn-close {
  flex-shrink:0; width:26px; height:26px; border-radius:50%;
  background:rgba(0,0,0,.35); color:#fff; border:1px solid rgba(255,255,255,.4);
  font-size:14px; cursor:pointer; line-height:1; display:flex;
  align-items:center; justify-content:center; padding:0;
}
.gn-close:active { background:rgba(0,0,0,.55); }

/* ============ 魔法标签页（爱情/紫晶/黄金） ============ */
.magic-tabs { display:flex; gap:8px; margin:10px 0 14px; }
.mtab {
  flex:1; padding:9px 4px; border-radius:12px; border:1.5px solid rgba(255,215,106,.4);
  background:rgba(255,255,255,.06); color:#e8dcff; font-size:13px; font-weight:bold;
}
.mtab.sel { background:linear-gradient(160deg,#7b3fd4,#4a1e9e); border-color:#ffd76a; color:#ffd76a; }
.mtab-pane.hidden { display:none; }

/* 紫晶风格按钮 */
.zbtn { background:linear-gradient(160deg,#8a4fe0,#5a25b0); }

/* 兑换框 */
.exchange-box {
  margin-top:14px; padding:12px; border-radius:14px;
  background:rgba(122,63,212,.18); border:1px solid rgba(178,132,255,.45);
}
.ex-title { font-size:13px; color:#d9c2ff; margin-bottom:8px; }
.ex-row { display:flex; gap:8px; }
.ex-row input {
  flex:1; min-width:0; padding:9px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.3); color:#fff; font-size:15px;
}
.ex-row .big-btn { padding:9px 16px; }

/* 黄金魔法进度 */
.hj-progress {
  margin:12px 0; padding:12px; border-radius:14px;
  background:rgba(255,183,60,.12); border:1px solid rgba(255,215,106,.4);
}
.hp-row { font-size:13px; color:#ffe4a8; margin:6px 0 4px; }
.hp-row b { color:#ffd76a; }
.hp-row.sub { font-size:11.5px; color:#cbb27f; }
.hj-progress .bar { height:10px; background:rgba(0,0,0,.4); border-radius:6px; overflow:hidden; margin-bottom:8px; }
.hj-progress .bar i { display:block; height:100%; width:0; background:linear-gradient(90deg,#ffb43c,#ffd76a); border-radius:6px; transition:width .3s; }

/* 包裹分区 */
.bag-sec {
  margin:10px 0 6px; font-size:13px; font-weight:bold; color:#ffd76a;
  border-left:3px solid #ffd76a; padding-left:8px;
}

/* ============ 魔法配图：融合背景 + 动态效果 ============ */
.magic-figure {
  position:relative; width:min(64vw,250px); aspect-ratio:8/7;
  margin:4px auto 16px; display:flex; align-items:center; justify-content:center;
}
.magic-figure img {
  position:relative; z-index:3; width:100%; height:100%; object-fit:cover;
  border-radius:22px;
  /* 椭圆渐隐：不裁圆，边缘柔和融入背景 */
  -webkit-mask-image:radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 88%);
          mask-image:radial-gradient(ellipse 72% 72% at 50% 50%, #000 55%, transparent 88%);
  animation:mf-float 4s ease-in-out infinite;
}
/* 光晕呼吸层（在图片下方，透过透明边缘透出） */
.magic-figure .mf-glow {
  position:absolute; inset:0; z-index:2; border-radius:50%;
  filter:blur(18px); opacity:.7;
  animation:mf-breathe 3.2s ease-in-out infinite;
}
.magic-figure.zj .mf-glow {
  background:radial-gradient(circle, rgba(160,90,255,.85) 0%, rgba(120,60,220,.4) 45%, transparent 70%);
}
.magic-figure.hj .mf-glow {
  background:radial-gradient(circle, rgba(255,190,70,.9) 0%, rgba(220,140,30,.45) 45%, transparent 70%);
}
/* 环绕粒子轨道 */
.magic-figure .mf-orbits { position:absolute; inset:0; z-index:4; pointer-events:none; }
.magic-figure .mf-orbits span {
  position:absolute; inset:-6%; border-radius:50%; border:1px dashed rgba(255,255,255,.28);
}
.magic-figure .mf-orbits span:nth-child(1){ animation:mf-spin 12s linear infinite; }
.magic-figure .mf-orbits span:nth-child(2){ inset:8%; border-style:solid; border-color:rgba(255,255,255,.18); animation:mf-spin 9s linear infinite reverse; }
.magic-figure .mf-orbits span:nth-child(3){ inset:18%; border-style:dotted; border-color:rgba(255,255,255,.22); animation:mf-spin 6s linear infinite; }
/* 环绕粒子上的小光点（用 ::before 模拟） */
.magic-figure .mf-orbits span::before {
  content:''; position:absolute; top:-4px; left:50%; width:8px; height:8px; border-radius:50%;
  transform:translateX(-50%);
}
.magic-figure.zj .mf-orbits span::before { background:#c9a0ff; box-shadow:0 0 10px #a05aff; }
.magic-figure.hj .mf-orbits span::before { background:#ffd76a; box-shadow:0 0 10px #ffb43c; }

/* 飘落光点 */
.magic-figure .mf-particles { position:absolute; inset:0; z-index:5; pointer-events:none; overflow:visible; }
.magic-figure .mf-particles::before,
.magic-figure .mf-particles::after {
  content:''; position:absolute; width:5px; height:5px; border-radius:50%;
  left:20%; top:0; opacity:0;
}
.magic-figure.zj .mf-particles::before { background:#d9b8ff; }
.magic-figure.hj .mf-particles::before { background:#ffe08a; }
.magic-figure.zj .mf-particles::after { background:#b98cff; }
.magic-figure.hj .mf-particles::after { background:#ffc95c; }
.magic-figure .mf-particles::before { animation:mf-rise 3.5s ease-in infinite; }
.magic-figure .mf-particles::after { left:72%; animation:mf-rise 4.2s ease-in infinite 1.2s; }

@keyframes mf-float { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-10px) scale(1.04)} }
@keyframes mf-breathe { 0%,100%{opacity:.55; transform:scale(1)} 50%{opacity:.95; transform:scale(1.12)} }
@keyframes mf-spin { from{transform:rotate(0deg)} to{transform:rotate(360deg)} }
@keyframes mf-rise {
  0%{opacity:0; transform:translateY(0)}
  20%{opacity:.9}
  100%{opacity:0; transform:translateY(-120px) translateX(10px)}
}

/* 爱情魔法配图：粉色光晕 */
.magic-figure.love .mf-glow {
  background:radial-gradient(circle, rgba(255,110,200,.85) 0%, rgba(220,60,160,.4) 45%, transparent 70%);
}
.magic-figure.love .mf-orbits span::before { background:#ffa8dc; box-shadow:0 0 10px #ff6ec8; }
.magic-figure.love .mf-particles::before { background:#ffc4e8; }
.magic-figure.love .mf-particles::after { background:#ff9ad5; }

/* ============ 礼包码输入框 ============ */
.code-box { display:flex; gap:6px; margin-top:10px; }
.code-box input {
  flex:1; min-width:0; padding:8px 10px; border-radius:10px;
  border:1px solid rgba(255,215,106,.45); background:rgba(0,0,0,.28);
  color:#ffd76a; font-size:14px; letter-spacing:2px; text-transform:uppercase;
}
.code-box input::placeholder { color:rgba(255,255,255,.35); letter-spacing:0; }
.code-box .mini-btn { flex:0 0 auto; padding:8px 14px; }

/* ============ 背景音效按钮激活态 ============ */
#settings-sound.on { background:linear-gradient(90deg,#2ecc71,#27ae60); border-color:#a8ffc8; }

/* ============ 大厅改名弹窗 ============ */
#rename-modal input {
  width:100%; box-sizing:border-box; padding:10px 12px; margin:8px 0;
  border-radius:10px; border:1px solid rgba(255,215,106,.5); background:rgba(0,0,0,.28);
  color:#fff; font-size:15px;
}
#rename-modal input::placeholder { color:rgba(255,255,255,.35); }

/* ============ 赛季排行榜 ============ */
.mini-btn.gold, .big-btn.gold {
  background:linear-gradient(90deg,#ffb300,#ff8f00); border-color:#ffe082; color:#3a2500;
  font-weight:bold;
}
.season-title { font-size:16px; font-weight:bold; color:#ffd76a; margin-bottom:8px; text-align:center; }
.season-intro { text-align:center; }
.season-intro .hint { margin:6px 0; }
.season-nick-row {
  display:flex; align-items:center; gap:8px; margin:12px 0; font-size:14px;
}
.season-nick-row input {
  flex:1; min-width:0; padding:9px 12px; border-radius:10px;
  border:1px solid rgba(255,215,106,.5); background:rgba(0,0,0,.28); color:#fff; font-size:14px;
}
.season-nick-row input::placeholder { color:rgba(255,255,255,.35); }
.season-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:10px; }
.season-me { font-size:13px; }
.season-me b { color:#ffd76a; }
.season-list { max-height:340px; overflow-y:auto; margin-top:8px; }
.rank-row {
  display:flex; align-items:center; gap:10px; padding:8px 10px;
  background:rgba(255,255,255,.06); border-radius:10px; margin:4px 0;
}
.rank-row.me { background:rgba(255,183,0,.18); border:1px solid rgba(255,183,0,.5); }
.rank-no { width:34px; text-align:center; font-size:15px; font-weight:bold; color:#ffd76a; flex-shrink:0; }
.rank-name { flex:1; min-width:0; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rank-name.rank-link { cursor:pointer; color:#ffd76a; text-decoration:underline; text-underline-offset:2px; }
.rank-name.rank-link:active { opacity:.7; }
.me-tag { color:#ffd76a; font-size:11px; }
.rank-charm { font-size:13px; font-weight:bold; color:#9fe8ff; flex-shrink:0; }

/* ============ 公共聊天频道 ============ */
.chat-box {
  margin-top:14px; padding:12px; border-radius:14px;
  background:rgba(0,0,0,.22); border:1px solid rgba(255,215,106,.28);
}
.chat-title { font-size:14px; font-weight:bold; color:#ffd76a; margin-bottom:8px; }
.chat-title.chat-toggle {
  display:flex; justify-content:space-between; align-items:center;
  cursor:pointer; user-select:none; margin-bottom:0;
}
.chat-title.chat-toggle .chat-arrow { font-size:13px; color:#ffd76a; transition:transform .2s; }
.chat-body { margin-top:8px; }
.chat-title .hint { display:inline; font-size:11px; color:rgba(255,255,255,.5); margin-left:4px; }
.chat-list {
  max-height:220px; overflow-y:auto; display:flex; flex-direction:column; gap:4px;
  padding:4px 2px;
}
.chat-msg {
  display:flex; flex-direction:column; gap:2px; padding:6px 10px;
  background:rgba(255,255,255,.06); border-radius:10px; text-align:left;
}
.chat-msg.me { background:rgba(255,183,0,.15); }
.cm-nick { font-size:12px; color:#ffd76a; font-weight:bold; }
.cm-nick.cm-link { cursor:pointer; text-decoration:underline; text-underline-offset:2px; }
.cm-nick.cm-link:active { opacity:.7; }
.cm-text { font-size:13px; color:#fff; word-break:break-word; white-space:pre-wrap; }
.chat-input-row { display:flex; gap:8px; margin-top:10px; }
.chat-input-row input {
  flex:1; min-width:0; padding:9px 12px; border-radius:10px;
  border:1px solid rgba(255,215,106,.5); background:rgba(0,0,0,.28);
  color:#fff; font-size:14px; box-sizing:border-box;
}
.chat-input-row input::placeholder { color:rgba(255,255,255,.35); }

/* 赛季参与确认弹窗 */
.season-warn {
  margin:8px 0 10px; padding:10px 12px; border-radius:12px; text-align:left;
  background:rgba(255,80,80,.1); border:1px solid rgba(255,120,120,.35);
  font-size:13px; line-height:1.7;
}
.season-warn .warn-list { color:#ffc9c9; margin:6px 0; line-height:2; }
.season-warn .warn-tip { font-size:12px; color:rgba(255,255,255,.7); }
#season-confirm-modal input {
  width:100%; box-sizing:border-box; padding:10px 12px; margin:6px 0 4px;
  border-radius:10px; border:1px solid rgba(255,215,106,.5); background:rgba(0,0,0,.28);
  color:#fff; font-size:15px;
}
#season-confirm-modal input::placeholder { color:rgba(255,255,255,.35); }

/* 通用确认弹窗 */
.ui-confirm-msg { text-align:left; font-size:14px; line-height:1.8; color:#fff; padding:6px 2px 10px; }
.ui-confirm-msg b { color:#ffd76a; }

/* S1 开赛公告 */
.notice-body { text-align:left; font-size:14px; line-height:1.9; }
.notice-body p { margin:6px 0; }
.notice-body b { color:#ffd76a; }
.notice-tip {
  margin-top:10px !important; padding:8px 10px; border-radius:10px;
  background:rgba(255,180,60,.12); border:1px solid rgba(255,215,106,.3);
  font-size:12px; color:#ffe0a3;
}

/* ============ 声誉提醒弹窗 ============ */
.rep-tips {
  margin-top:10px; padding:10px 12px; border-radius:12px;
  background:rgba(255,180,60,.1); border:1px solid rgba(255,215,106,.35);
  text-align:left;
}
.rep-tips .tip-title { font-size:13px; color:#ffd76a; font-weight:bold; margin-bottom:6px; }
.rep-tips .tip-item { font-size:12px; color:#e8dcff; line-height:1.8; }
.rep-tips .tip-item b { color:#ffd76a; }

/* 黄金魔法开启记录标签 */
.hj-tag {
  display:inline-block; margin-right:4px; padding:0 5px; border-radius:5px;
  font-size:10px; line-height:1.6; vertical-align:1px; font-weight:bold;
}
.hj-tag.crit { background:linear-gradient(90deg,#ff8a3c,#ffb43c); color:#4a2000; }
.hj-tag.baodi { background:linear-gradient(90deg,#ff4d9e,#ff6ec8); color:#4a001f; }
#hj-history-list { max-height:260px; overflow-y:auto; margin-top:6px; }

/* ============ 首页广告位 ============ */
#ad-banner {
  flex:0 0 auto; margin:8px 12px 2px; padding:8px 14px; border-radius:14px;
  background:linear-gradient(135deg, rgba(255,180,60,.14), rgba(255,110,200,.12));
  border:1px solid rgba(255,215,106,.35);
  text-align:center; min-width:0;
}
#ad-banner .ad-text { font-size:12.5px; color:#e8dcff; margin-bottom:3px; }
#ad-banner .ad-contact { font-size:13px; color:#ffd76a; }
#ad-banner .ad-contact b { font-size:16px; color:#4ade80; letter-spacing:1px; text-shadow:0 0 8px rgba(74,222,128,.6); font-weight:bold; }

/* ============ 赛季页双 Tab ============ */
.season-tabs {
  display:flex; gap:8px; margin:10px 0 12px;
}
.season-tabs .stab {
  flex:1; padding:9px 0; border-radius:12px; border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06); color:#cdbcf5; font-size:14px; font-weight:bold; cursor:pointer;
}
.season-tabs .stab.sel {
  background:linear-gradient(135deg,#7a4dff,#b14dff);
  color:#fff; border-color:transparent;
  box-shadow:0 4px 16px rgba(150,80,255,.35);
}
.season-pane { min-height:0; }

/* ============ 世界 Boss 页面 ============ */
.boss-head { display:flex; justify-content:flex-end; align-items:center; gap:8px; margin-bottom:8px; }
.boss-status { text-align:center; }
.boss-figure {
  width:200px; height:140px; position:relative; margin:0 auto 6px;
  display:flex; align-items:center; justify-content:center;
}
.boss-winners-btn {
  flex-shrink:0; padding:8px 12px; border-radius:12px; font-size:13px; line-height:1.4;
  background:linear-gradient(135deg,#ff8a3c,#ff5252); color:#fff; border:none;
  box-shadow:0 4px 14px rgba(255,90,50,.35);
}
.boss-figure img {
  max-width:100%; max-height:100%; object-fit:contain;
  filter:drop-shadow(0 6px 20px rgba(255,80,40,.45));
  animation:bossFloat 3s ease-in-out infinite;
}
@keyframes bossFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.boss-figure.dead img { filter:grayscale(.85) drop-shadow(0 4px 12px rgba(0,0,0,.5)); animation:none; }
.boss-dead-tag {
  position:absolute; inset:0; margin:auto; width:fit-content; height:fit-content;
  padding:6px 14px; border-radius:10px; background:rgba(0,0,0,.65);
  color:#ff6a6a; font-size:16px; font-weight:bold; letter-spacing:2px;
}
.boss-soon { margin-top:4px; }
.boss-soon .bs-title { font-size:16px; font-weight:bold; color:#ffd76a; margin-bottom:6px; }
.boss-soon .bs-text { font-size:13.5px; color:#e8dcff; line-height:1.7; }
.boss-hp-box { width:100%; max-width:320px; margin:0 auto 6px; }
.boss-hp-label { font-size:14px; font-weight:bold; color:#ffe0a3; margin-bottom:4px; }
.boss-hp-num { color:#ff8a5c; }
.boss-hp-bar {
  height:16px; border-radius:10px; background:rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.2); overflow:hidden;
}
.boss-hp-bar i {
  display:block; height:100%; border-radius:10px;
  background:linear-gradient(90deg,#ff4d4d,#ff8a3c);
  transition:width .5s ease;
}
.boss-pool-top { margin:8px 0; }
.boss-pool-top .bp-title { font-size:13px; color:#ffd76a; font-weight:bold; margin-bottom:8px; }
.boss-return-rate {
  width:100%; max-width:320px; margin:0 auto 8px; text-align:center;
  background:linear-gradient(90deg,rgba(255,215,106,.14),rgba(255,138,60,.14));
  border:1px solid rgba(255,215,106,.4); border-radius:10px; padding:8px 10px;
}
.boss-return-rate .brr-label { font-size:12px; color:#ffe0a3; margin-right:6px; }
.boss-return-rate .brr-val { font-size:18px; font-weight:bold; color:#ffd76a; }
.boss-return-rate .brr-sub { display:block; font-size:10px; color:rgba(255,255,255,.55); margin-top:3px; }
.bp-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.bp-item {
  background:rgba(255,255,255,.05); border:1px solid rgba(255,215,106,.25);
  border-radius:10px; padding:6px 4px; text-align:center;
}
.bp-item img { width:40px; height:40px; object-fit:contain; border-radius:6px; background:#fff; }
.bp-item .bp-name { font-size:10.5px; color:#e8dcff; margin-top:3px; }
.bp-item .bp-remain { font-size:11px; color:#ffd76a; font-weight:bold; }
.bp-item .bp-value { font-size:9.5px; color:#9f86c9; }
.bp-item.empty { opacity:.4; }
.boss-actions { margin-top:10px; }
.boss-attack-btns { display:flex; gap:8px; justify-content:center; margin-bottom:8px; }
.boss-attack-btns .mini-btn { flex:1; max-width:110px; padding:9px 0; font-size:14px; }
.boss-custom-row { display:flex; gap:8px; justify-content:center; align-items:center; margin-bottom:6px; }
.boss-custom-row input {
  width:100px; padding:7px 10px; border-radius:10px; border:1px solid rgba(255,255,255,.25);
  background:rgba(0,0,0,.35); color:#fff; font-size:14px; text-align:center;
}

/* ============ 战报记录屏 ============ */
.boss-records-box { margin-top:14px; }
.boss-records-box .br-title { font-size:13px; color:#ffd76a; font-weight:bold; margin-bottom:6px; }
.boss-records {
  max-height:160px; overflow-y:auto; padding:6px 8px; border-radius:10px;
  background:rgba(0,0,0,.3); border:1px solid rgba(255,255,255,.12);
  -webkit-overflow-scrolling:touch; overscroll-behavior:contain;
}
.boss-records::-webkit-scrollbar { width:5px; }
.boss-records::-webkit-scrollbar-thumb { background:rgba(255,215,106,.35); border-radius:3px; }
.boss-records::-webkit-scrollbar-track { background:transparent; }
.boss-record {
  display:flex; align-items:center; gap:6px; padding:4px 0;
  font-size:11.5px; border-bottom:1px solid rgba(255,255,255,.06); flex-wrap:wrap;
}
.boss-record:last-child { border-bottom:none; }
.boss-record .br-nick { color:#9f86c9; flex-shrink:0; }
.boss-record .br-gift { color:#e8dcff; }
.boss-record .br-gift b { color:#ffd76a; }
.boss-record .br-kill {
  padding:0 6px; border-radius:6px; font-size:10px; font-weight:bold;
  background:linear-gradient(90deg,#ff4d4d,#ff8a3c); color:#fff;
}

/* ============ 炫彩昵称 ============ */
.cm-nick.rainbow {
  background:linear-gradient(90deg,#ff5252,#ff9a3c,#ffd76a,#4ade80,#4aa8ff,#b14dff,#ff6ec8);
  background-size:300% 100%;
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:transparent;
  animation:rainbowMove 3s linear infinite;
  font-weight:bold;
}
@keyframes rainbowMove { 0%{background-position:0% 50%} 100%{background-position:300% 50%} }

/* ============ 更新公告 ============ */
.un-list { text-align:left; font-size:13px; line-height:1.8; }
.un-list p { margin:6px 0; color:#e8dcff; }
.un-list b { color:#ffd76a; }
.un-ad {
  display:flex; align-items:center; gap:8px; margin-top:12px; padding:8px 12px;
  border-radius:10px; background:linear-gradient(135deg, rgba(255,160,60,.16), rgba(255,80,60,.12));
  border:1px solid rgba(255,160,60,.4);
}
.un-ad .un-ad-tag {
  flex-shrink:0; padding:2px 8px; border-radius:6px; font-size:11px; font-weight:bold;
  background:linear-gradient(90deg,#ff8a3c,#ff5252); color:#fff;
}
.un-ad .un-ad-text { font-size:13px; color:#ffe3cf; }
.un-ad .un-ad-text b { color:#ffd76a; }
.un-qr { margin-top:12px; text-align:center; }
.un-qr img { width:150px; height:150px; border-radius:12px; background:#fff; padding:4px; }
.un-qr .un-qr-text { font-size:12px; color:#9f86c9; margin-top:6px; }
/* 公告礼包码高亮 */
.un-code {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  margin-top:12px; padding:12px 14px; border-radius:12px;
  background:linear-gradient(135deg, rgba(255,215,106,.16), rgba(255,160,60,.12));
  border:1px dashed rgba(255,215,106,.7);
}
.un-code .uc-left { text-align:left; }
.un-code .uc-label { font-size:12px; color:#ffe3cf; }
.un-code .uc-val {
  font-size:20px; font-weight:bold; color:#ffd76a; letter-spacing:2px;
  text-shadow:0 0 12px rgba(255,215,106,.6);
}
.un-code .uc-reward { font-size:12px; color:#ffd76a; }
.un-code .uc-btn {
  flex-shrink:0; padding:8px 14px; border-radius:8px; border:none;
  background:linear-gradient(90deg,#ff8a3c,#ff5252); color:#fff;
  font-size:13px; font-weight:bold; cursor:pointer;
}

/* ============ 活动详情弹窗 ============ */
.bd-section { text-align:left; margin-bottom:14px; }
.bd-section .bd-title { font-size:14px; color:#ffd76a; font-weight:bold; margin-bottom:8px; }
.bd-list { padding-left:18px; }
.bd-list li { font-size:12.5px; color:#e8dcff; line-height:1.8; }
.bd-list li b { color:#ffd76a; }
.bd-kill { display:flex; align-items:center; gap:12px; }
.bd-kill img { width:60px; height:60px; border-radius:10px; background:#fff; object-fit:contain; }
.bd-pool-list { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.bd-pool-row { display:flex; align-items:center; gap:8px; background:rgba(255,255,255,.05); border-radius:10px; padding:6px 8px; }
.bd-pool-row img { width:36px; height:36px; border-radius:6px; background:#fff; object-fit:contain; }
.bd-pr-name { font-size:12px; color:#e8dcff; font-weight:bold; }
.bd-pr-value { font-size:10.5px; color:#9f86c9; }

/* ============ 获奖记录弹窗 ============ */
.boss-winners-body { max-height:60vh; overflow-y:auto; text-align:left; }
.bw-tabs { display:flex; gap:8px; margin-bottom:12px; }
.bw-tab {
  flex:1; padding:8px 0; border-radius:10px; font-size:13px; font-weight:bold;
  border:1px solid rgba(255,255,255,.15); background:rgba(255,255,255,.06);
  color:#e8dcff; cursor:pointer; transition:all .15s;
}
.bw-tab.active {
  background:linear-gradient(135deg,#ff8a3c,#ff5252); color:#fff; border-color:transparent;
  box-shadow:0 4px 12px rgba(255,90,50,.3);
}
.bw-mine-summary {
  text-align:center; font-size:13px; color:#ffe0a3; margin-bottom:10px;
  padding:8px; border-radius:10px; background:rgba(255,160,60,.1);
}
.bw-mine-summary b { color:#ff8a5c; font-size:15px; }
.bw-slot { margin-bottom:14px; }
.bw-slot-title {
  font-size:13.5px; font-weight:bold; color:#ffd76a; margin-bottom:6px;
  padding:5px 10px; border-radius:8px; background:rgba(255,215,106,.08);
}
.bw-row {
  display:flex; align-items:center; gap:8px; padding:6px 8px;
  border-bottom:1px solid rgba(255,255,255,.06); font-size:12.5px;
}
.bw-row:last-child { border-bottom:none; }
.bw-tier {
  flex-shrink:0; padding:2px 7px; border-radius:6px; font-size:10.5px; font-weight:bold;
  background:rgba(255,255,255,.1); color:#e8dcff;
}
.bw-tier.tier1 { background:linear-gradient(90deg,#ff5252,#ff8a3c); color:#fff; }
.bw-tier.tier2 { background:linear-gradient(90deg,#ff8a3c,#ffd76a); color:#5a3400; }
.bw-tier.tier3 { background:linear-gradient(90deg,#b14dff,#7a4dff); color:#fff; }
.bw-tier.tier4 { background:linear-gradient(90deg,#4aa8ff,#4ade80); color:#fff; }
.bw-tier.tier-kill { background:linear-gradient(90deg,#ff4d4d,#ff2d2d); color:#fff; }
.bw-nick { color:#ffd76a; font-weight:bold; }
.bw-gift { color:#e8dcff; margin-left:auto; }
.bw-kill-row { background:rgba(255,60,60,.08); }

/* ============ 神之招募 ============ */
.god-recruit-box {
  margin-top:16px; padding:12px; border-radius:14px;
  background:linear-gradient(135deg, rgba(255,80,60,.12), rgba(180,60,255,.12));
  border:1px solid rgba(255,110,80,.4); text-align:center;
}
.god-recruit-box .gr-title { font-size:15px; font-weight:bold; color:#ff8a5c; margin-bottom:6px; }
.god-recruit-box .gr-title b { color:#ffd76a; }
.ticket-exchange {
  margin-top:12px; padding:10px; border-radius:12px;
  background:rgba(0,0,0,.18); border:1px dashed rgba(255,215,106,.4);
}
.ticket-exchange .te-info { font-size:12px; color:#e8dcff; margin-bottom:8px; line-height:1.6; }
.ticket-exchange .te-info b { color:#ffd76a; }
.recruit-card.god { border-color:rgba(255,82,82,.6); background:rgba(255,60,60,.08); }
.big-btn.god {
  background:linear-gradient(135deg,#ff5252,#b14dff); color:#fff; margin-top:8px;
  box-shadow:0 4px 16px rgba(255,82,82,.35);
}

/* ===== 世界Boss 三阶段 ===== */
.boss-stage-tag {
  text-align:center; font-size:12px; color:#ffd76a; font-weight:bold;
  background:rgba(255,215,106,.08); border:1px solid rgba(255,215,106,.25);
  border-radius:10px; padding:6px 10px; margin-bottom:8px;
}
.boss-contrib-box {
  background:rgba(255,255,255,.05); border-radius:12px; padding:10px 12px; margin-bottom:8px;
}
.bc-title { font-size:14px; font-weight:bold; color:#ff8a8a; margin-bottom:8px; text-align:center; }
.boss-hp-bar.contrib i { background:linear-gradient(90deg,#8a5cff,#c86aff); }
.boss-video-overlay {
  position:fixed; inset:0; z-index:9999; background:rgba(0,0,0,.96);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
}
.boss-video-overlay video { max-width:100%; max-height:88%; object-fit:contain; }
.bv-tip { color:rgba(255,255,255,.7); font-size:13px; margin-top:10px; }
.bv-close {
  margin-top:14px; padding:8px 22px; border:none; border-radius:20px;
  background:linear-gradient(90deg,#8a5cff,#c86aff); color:#fff;
  font-size:14px; font-weight:bold; cursor:pointer;
}
.bd-video-list { display:flex; flex-direction:column; gap:8px; }
.bd-video-btn {
  padding:10px 14px; border:1px solid rgba(138,92,255,.5); border-radius:10px;
  background:rgba(138,92,255,.15); color:#e8dcff; font-size:13.5px; font-weight:bold;
  cursor:pointer; text-align:center; transition:.15s;
}
.bd-video-btn:active { background:rgba(138,92,255,.35); }
.bw-contrib-row { background:rgba(138,92,255,.10); border-radius:8px; }
.bw-tier.tier-contrib {
  background:linear-gradient(90deg,#8a5cff,#c86aff); color:#fff;
  border-radius:6px; padding:2px 6px; font-size:10px;
}

/* ===== 贡献礼物选择面板 ===== */
.bcg-list { max-height:46vh; overflow-y:auto; margin-bottom:10px; }
.bcg-group-title { font-size:12px; color:#ffd76a; font-weight:bold; margin:8px 0 6px; text-align:left; }
.bcg-row {
  display:flex; align-items:center; gap:10px; text-align:left;
  background:rgba(255,255,255,.05); border-radius:10px; padding:8px 10px; margin-bottom:6px;
}
.bcg-row img { width:40px; height:40px; border-radius:8px; background:#fff; object-fit:contain; flex-shrink:0; }
.bcg-info { flex:1; min-width:0; }
.bcg-name { font-size:13px; color:#e8dcff; font-weight:bold; }
.bcg-have { font-size:11px; color:#9a8fb8; margin-top:2px; }
.bcg-stepper { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.bcg-btn {
  width:28px; height:28px; border:none; border-radius:8px;
  background:linear-gradient(90deg,#8a5cff,#c86aff); color:#fff;
  font-size:16px; font-weight:bold; cursor:pointer; line-height:1;
}
.bcg-btn:active { opacity:.8; }
.bcg-qty { min-width:24px; text-align:center; font-size:15px; font-weight:bold; color:#ffd76a; }
.bcg-total {
  text-align:center; font-size:13px; color:#e8dcff;
  background:rgba(138,92,255,.12); border-radius:10px; padding:8px; margin-bottom:8px;
}
.bcg-total b { color:#ffd76a; font-size:15px; }


/* ===== 更新公告历史列表 ===== */
.notice-item {
  border:1px solid rgba(255,255,255,.12); border-radius:12px;
  padding:10px 12px; margin-bottom:12px; background:rgba(255,255,255,.03);
}
.notice-item-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.notice-item-title { font-size:14px; font-weight:bold; color:#ffd76a; }
.notice-item-date { font-size:11px; color:rgba(255,255,255,.45); flex:0 0 auto; margin-left:8px; }
.notice-item-body .un-list p { margin:4px 0; }
.notice-item-body .un-list b { color:#ffd76a; }

/* 历史公告下拉列表 */
.notice-history { margin-top:4px; }
.notice-history-toggle {
  display:flex; align-items:center; justify-content:space-between;
  padding:9px 12px; margin-bottom:8px; cursor:pointer; user-select:none;
  border:1px solid rgba(255,255,255,.14); border-radius:12px;
  background:rgba(255,255,255,.05); color:#e8dcff; font-size:13px;
}
.notice-history-toggle .nh-arrow { font-size:12px; transition:transform .2s; color:#ffd76a; }
.notice-history-toggle.collapsed .nh-arrow { transform:rotate(-90deg); }
.notice-history-list.hidden { display:none; }

/* ============ 派遣找老板 ============ */
.dispatch-info-row{font-size:12px;color:#e8dcff;margin-bottom:6px;line-height:1.6}
.dispatch-boss-area{position:relative;height:150px;border-radius:12px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);overflow:hidden;margin:8px 0}
.dispatch-boss-empty{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#8a93a8;font-size:12px;text-align:center;line-height:1.7}
.dispatch-boss{position:absolute;bottom:6px;display:flex;flex-direction:column;align-items:center;cursor:pointer;animation:dbwalk 5s ease-in-out infinite alternate}
.dispatch-boss img{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}
.dispatch-boss span{font-size:11px;color:#fff;background:rgba(0,0,0,.55);padding:2px 7px;border-radius:10px;margin-top:2px}
@keyframes dbwalk{from{transform:translateX(-10px)}to{transform:translateX(10px)}}
/* 大厅首页老板走动层（覆盖大厅中上部，老板到处飘） */
#home-boss-layer{position:absolute;left:0;right:0;top:6%;bottom:16%;pointer-events:none;z-index:18;overflow:visible}
#home-boss-layer .dispatch-boss{pointer-events:auto}
#home-boss-layer .boss-drift{position:absolute;bottom:auto;animation:bossDrift ease-in-out infinite alternate}
#home-boss-layer .boss-drift img{width:110px;height:110px}
#home-boss-layer .boss-drift span{font-size:12px}
@keyframes bossDrift{
  0%{transform:translate(0,0) rotate(-2deg)}
  20%{transform:translate(var(--dx,55px),calc(-1 * var(--dy,28px))) rotate(2deg)}
  40%{transform:translate(calc(-0.6 * var(--dx,55px)),var(--dy,28px)) rotate(-3deg)}
  60%{transform:translate(calc(0.5 * var(--dx,55px)),calc(-0.4 * var(--dy,28px))) rotate(3deg)}
  80%{transform:translate(calc(-0.8 * var(--dx,55px)),calc(0.5 * var(--dy,28px))) rotate(-2deg)}
  100%{transform:translate(0,0) rotate(-2deg)}
}
.dispatch-sub{font-size:12px;color:#9aa3b8;margin:10px 0 6px}
.dispatch-anchor-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.dispatch-anchor{border:2px solid rgba(255,255,255,.12);border-radius:10px;padding:8px 4px;text-align:center;cursor:pointer;background:rgba(255,255,255,.04)}
.dispatch-anchor.sel{border-color:#ffd76a;background:rgba(255,215,106,.12)}
.dispatch-anchor .da-name{font-size:12px;font-weight:600}
.dispatch-anchor .da-charm{font-size:10px;color:#ffd76a;margin-top:2px}
.dispatch-task-list{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}
.dispatch-task{border:2px solid rgba(255,255,255,.12);border-radius:10px;padding:8px 10px;cursor:pointer;background:rgba(255,255,255,.04)}
.dispatch-task.sel{border-color:#5dcaa5;background:rgba(93,202,165,.1)}
.dispatch-task .dt-name{font-size:13px;font-weight:600}
.dispatch-task .dt-sub{font-size:10px;color:#9aa3b8;margin-top:2px}
.boss-dialog-img{text-align:center;margin-bottom:8px}
.boss-dialog-img img{width:90px;height:90px;object-fit:contain}
.boss-dialog-line{font-size:14px;line-height:1.6;color:#e8dcff;background:rgba(255,255,255,.06);border-radius:12px;padding:12px;margin-bottom:12px}
/* 老板回礼结果弹窗 */
.boss-reward-inner{text-align:center;padding:22px 16px}
.boss-reward-emoji{font-size:52px;line-height:1;margin-bottom:10px}
.boss-reward-title{font-size:19px;font-weight:700;color:#ffd76a;margin-bottom:12px}
.boss-reward-line{font-size:14px;line-height:1.6;color:#e8dcff;background:rgba(255,255,255,.06);border-radius:12px;padding:12px;margin-bottom:10px}
.boss-reward-item{font-size:16px;color:#5dcaa5;font-weight:700;margin:8px 0;line-height:1.5}
.boss-reward-item img{width:64px;height:64px;object-fit:contain;display:block;margin:0 auto 6px}
.boss-reward-sub{font-size:12px;color:rgba(255,255,255,.55);margin-top:8px}
.dispatch-gift-item{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:10px;background:rgba(255,255,255,.05);margin-bottom:6px;cursor:pointer;border:2px solid transparent}
.dispatch-gift-item.sel{border-color:#ffd76a}
.dispatch-gift-item .dg-name{font-size:13px}
.dispatch-gift-item .dg-val{font-size:11px;color:#ffd76a}
.boss-tag{font-size:10px;color:#ff9a9a;border:1px solid rgba(255,154,154,.5);border-radius:6px;padding:1px 4px;margin-left:4px}
/* ============ 收藏成就 ============ */
.codex-progress{font-size:12px;color:#9aa3b8;text-align:center;margin-bottom:10px}
.codex-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.codex-card{border:2px solid rgba(255,255,255,.12);border-radius:12px;padding:10px 6px;text-align:center;cursor:pointer;background:rgba(255,255,255,.04)}
.codex-card.locked{opacity:.4;filter:grayscale(1)}
.codex-card img{width:60px;height:60px;object-fit:contain}
.codex-card .cc-name{font-size:11px;font-weight:600;margin-top:6px}
.codex-card .cc-lv{font-size:10px;color:#ffd76a}
.codex-card{position:relative}
.codex-card .cc-count{position:absolute;top:4px;right:6px;font-size:11px;font-weight:700;color:#fff;background:#ff5252;border-radius:10px;padding:1px 7px}
.codex-detail-count{font-size:14px;color:#c8cfdd;text-align:center;margin:4px 0 8px}
.codex-detail-img{text-align:center;margin:6px 0}
.codex-detail-img img{width:130px;height:130px;object-fit:contain}
.codex-detail-lv{font-size:12px;color:#ffd76a;text-align:center;margin:4px 0 8px}
.codex-detail-desc{font-size:13px;color:#c8cfdd;line-height:1.7;margin-bottom:6px}
.codex-detail-slogan{font-size:13px;color:#ffd76a;font-style:italic;text-align:center}

/* ============ 酸角粥搜打撤 ============ */
.sjz-panel{max-width:460px}
.sjz-title{font-size:22px;font-weight:bold;color:#ffd76a;text-align:center;margin-bottom:4px}
.sjz-sub{font-size:13px;color:#9fb0c9;text-align:center;margin-bottom:12px}
.sjz-card{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:12px;margin:10px 0}
.sjz-row{display:flex;justify-content:space-between;align-items:center;padding:6px 0;font-size:14px;color:#c8cfdd}
.sjz-row b{color:#ffd76a}
.sjz-hint{font-size:12px;color:#9fb0c9;line-height:1.6;margin:4px 0}
.sjz-btns{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.sjz-btn{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;padding:12px;font-size:15px;cursor:pointer}
.sjz-btn.main{background:linear-gradient(135deg,#ff9a3d,#ff5f3d);border:none;font-weight:bold}
.sjz-btn.back{background:transparent;border-color:rgba(255,255,255,.15)}
.sjz-btn:disabled{opacity:.4;cursor:not-allowed}
.sjz-loadouts{display:flex;flex-direction:column;gap:10px}
.sjz-loadout{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:12px;padding:14px;cursor:pointer;transition:.15s}
.sjz-loadout:active{transform:scale(.98)}
.sjz-loadout.poor{opacity:.55}
.sjz-lo-name{font-size:18px;font-weight:bold;color:#fff;margin-bottom:6px}
.sjz-lo-bag,.sjz-lo-skill,.sjz-lo-meta,.sjz-lo-cost{font-size:13px;color:#c8cfdd;line-height:1.6}
.sjz-lo-cost{color:#ffd76a}
.sjz-lo-poor{color:#ff5252;font-size:12px;margin-top:4px}
.sjz-hud{display:flex;gap:10px;justify-content:center;font-size:13px;color:#c8cfdd;margin:8px 0}
.sjz-hud b{color:#ff5252}
.sjz-zones{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.sjz-zone{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.15);border-radius:12px;padding:14px;text-align:center;cursor:pointer}
.sjz-zone:active{transform:scale(.97)}
.sjz-zone.done{opacity:.4;cursor:default}
.sjz-zone-name{font-size:15px;font-weight:bold;color:#fff}
.sjz-zone-danger{font-size:12px;margin-top:4px}
.sjz-zone-done{font-size:11px;color:#7dd87d;margin-top:4px}
.sjz-evac-card{background:rgba(126,200,255,.1);border:1px solid rgba(126,200,255,.4);border-radius:12px;padding:14px;text-align:center;cursor:pointer;margin-top:6px}
.sjz-battle{text-align:center;padding:10px 0}
.sjz-enemy{font-size:24px;font-weight:bold;color:#ff5252;margin-bottom:10px}
/* 搜索界面 */
.sjz-search{display:flex;gap:14px;justify-content:center;align-items:flex-start;margin:10px 0}
.sjz-bag-wrap,.sjz-loot-wrap{text-align:center}
.sjz-bag-label{font-size:12px;color:#9fb0c9;margin-bottom:6px}
.sjz-bag{position:relative;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.2);border-radius:6px;display:inline-block}
.sjz-cell{position:absolute;width:46px;height:46px;border:1px solid rgba(255,255,255,.07);box-sizing:border-box}
.sjz-loot{position:relative;background:rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.2);border-radius:6px}
.sjz-item{position:relative;border-radius:6px;border:1px solid rgba(255,255,255,.35);box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:grab;overflow:hidden;padding:2px;touch-action:none}
.sjz-bag .sjz-item{position:absolute}
.sjz-item.q-purple{background:linear-gradient(135deg,#5b3a8e,#7b52b8)}
.sjz-item.q-gold{background:linear-gradient(135deg,#8a6a1f,#c9a53a)}
.sjz-item.q-red{background:linear-gradient(135deg,#8e1f2b,#c9364a)}
.sjz-item-name{font-size:10px;color:#fff;text-align:center;line-height:1.2;word-break:break-all}
.sjz-item-q{font-size:9px;font-weight:bold}
.sjz-loot .sjz-item{position:absolute;cursor:grab}
.sjz-loot-item.unrevealed{position:absolute;background:rgba(255,255,255,.12);border:1px dashed rgba(255,255,255,.35);border-radius:6px;animation:sjzflash .7s ease-in-out infinite}
@keyframes sjzflash{0%,100%{opacity:.3}50%{opacity:.9}}
.sjz-drag-ghost{opacity:.85;box-shadow:0 4px 16px rgba(0,0,0,.5)}
.sjz-action-layer{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center}
.sjz-action-layer.hidden{display:none}
.sjz-action-box{background:#1c2433;border:1px solid rgba(255,255,255,.2);border-radius:14px;padding:16px;width:260px;text-align:center}
.sjz-action-title{font-size:15px;color:#fff;margin-bottom:12px}
.sjz-action-btn{display:block;width:100%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);color:#fff;border-radius:10px;padding:11px;font-size:15px;margin-top:8px;cursor:pointer}
.sjz-action-btn:active{transform:scale(.97)}
.sjz-welcome{padding:50px 0;text-align:center}
.sjz-welcome-text{font-size:26px;font-weight:bold;color:#ffd76a;line-height:1.4}
.sjz-welcome-sub{font-size:18px;color:#c8cfdd;margin-top:12px}
.sjz-legend{display:flex;gap:14px;justify-content:center;margin:8px 0}
.sjz-lg{font-size:13px;font-weight:bold}
/* 收藏图鉴 tab */
.codex-tabs{display:flex;gap:8px;margin:10px 0}
.ctab{flex:1;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);color:#9fb0c9;border-radius:10px;padding:8px;font-size:14px;cursor:pointer}
.ctab.sel{background:rgba(255,157,61,.2);border-color:#ff9d3d;color:#ffd76a;font-weight:bold}
/* 酸角粥收藏卡 */
.sjz-codex-card{position:relative;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:8px;text-align:center;cursor:pointer}
.sjz-codex-card.locked{opacity:.4;cursor:default}
.sjz-codex-card img{width:56px;height:56px;object-fit:contain;border-radius:6px}
.sjz-codex-nopic{width:56px;height:56px;margin:0 auto;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:22px;color:#fff;font-weight:bold}
.sjz-codex-card .cc-name{font-size:11px;color:#c8cfdd;margin-top:4px;line-height:1.3;word-break:break-all}
.sjz-codex-card .cc-lv{font-size:10px;margin-top:2px}
.sjz-item-img{position:absolute;object-fit:cover;border-radius:5px;transition:transform .15s}
.sjz-item-name{position:absolute;left:0;right:0;bottom:0;font-size:9px;color:#fff;text-align:center;line-height:1.1;word-break:break-all;background:rgba(0,0,0,.55);padding:1px 2px;border-radius:0 0 5px 5px}
.sjz-enemy-line{font-size:14px;color:#c8cfdd;font-style:italic;margin:6px 0 10px}
.sjz-evac-line{font-size:14px;color:#ffd76a;font-style:italic;margin:4px 0 8px}
/* 搜打撤地图热区 */
.sjz-map{position:relative;margin:10px 0;border-radius:10px;overflow:hidden;border:1px solid rgba(255,255,255,.15)}
.sjz-map img{width:100%;display:block}
.sjz-hotzone{position:absolute;border:1.5px solid rgba(255,255,255,.7);border-radius:8px;background:rgba(20,25,40,.35);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.15s;overflow:hidden}
.sjz-hotzone:hover,.sjz-hotzone:active{background:rgba(255,157,61,.3)}
.sjz-hotzone.done{opacity:.45;border-style:dashed;cursor:default}
.sjz-hotzone.evac{border-color:rgba(126,200,255,.8);background:rgba(126,200,255,.15)}
.sjz-hz-name{font-size:11px;font-weight:bold;text-shadow:0 1px 3px rgba(0,0,0,.9);text-align:center;line-height:1.2;padding:0 2px;word-break:break-all}
.sjz-hz-done{font-size:9px;color:#7dd87d;text-align:center}
.sjz-bag .sjz-item.sel{outline:2px solid #ff9d3d;box-shadow:0 0 10px rgba(255,157,61,.8);z-index:2}
.sjz-narration{font-size:13px;color:#c8cfdd;font-style:italic;text-align:center;line-height:1.6;margin:6px 0 10px;padding:0 6px}
.sjz-evac-list{max-height:280px;overflow-y:auto;margin:4px 0}
.sjz-evac-item{display:flex;align-items:center;gap:8px;padding:6px 4px;border-bottom:1px solid rgba(255,255,255,.08)}
.sjz-evac-item img{width:32px;height:32px;object-fit:cover;border-radius:4px;flex-shrink:0}
.sji-name{flex:1;font-size:13px;color:#fff;word-break:break-all}
.sji-value{font-size:13px;color:#ffd76a;white-space:nowrap}
.sjz-evac-total{text-align:right;font-size:14px;color:#c8cfdd;padding-top:8px;border-top:1px solid rgba(255,255,255,.12)}

/* ============ 屏幕自适应（原全站无断点，矮屏靠这里收紧） ============ */
/* 矮屏 / 小屏手机：压缩顶栏、广告位、档位间距，给下部腾出空间 */
@media (max-height: 720px) {
  #topbar { padding:5px 8px; }
  .hall-name { font-size:12px; max-width:96px; }
  #ad-banner { margin:2px 10px 2px; padding:4px 10px; }
  #ad-banner .ad-text { font-size:11px; margin-bottom:2px; }
  #ad-banner .ad-contact { font-size:11.5px; }
  #ad-banner .ad-contact b { font-size:14px; }
  #slots { gap:5px; padding:6px 10px; }
  .slot-row { gap:5px; }
  #bottom-area { padding:0 8px 6px; }
  .fold-body { gap:5px; padding:6px 9px; }
  .ip-title.ip-toggle, .vc-title.vc-toggle { padding:6px 9px; }
  #navbar { gap:4px; padding:4px 6px 2px; }
  .nav-btn { padding:6px 0; font-size:11.5px; }
  #say-title { font-size:10px; padding:2px 8px; }
}

/* 极矮屏（横屏/超小机型）：进一步压缩 */
@media (max-height: 600px) {
  #ad-banner { display:none; }
  #slots { --slot: clamp(38px, 8.2vh, 52px); --slot: clamp(38px, 8.2dvh, 52px); gap:4px; padding:4px 8px; }
  .slot-row { gap:4px; }
  .nav-btn { padding:6px 0; font-size:11px; }
  .slot .qname { font-size:10px; }
}
