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

body {
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
  background: #14143c;
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 大厅背景视频：铺满 header 下方区域，高度 = 视口 - header ===== */
#hallBgVideo {
  position: fixed;
  top: var(--hall-h, 0px);
  left: 0;
  z-index: 0;
  width: 100vw;
  height: calc(100vh - var(--hall-h, 0px));
  object-fit: cover;
  pointer-events: none;
  /* 华为/微信等国产内核兼容：fixed 自动播放视频可能被提升为原生播放层置顶（z-index 失效盖住全页）。
     强制独立合成层缓解；配合 hall.html 的 x5 同层播放属性；仍被劫持时 hall.js 检测全屏事件后隐藏视频兜底 */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* 星空背景（桌面端隐藏，竖屏手机端替代背景图显示） */
.stars,
.stars2 {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: none;
}

.stars {
  background-image:
    radial-gradient(2px 2px at 30px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 150px 170px, #ffe66d 50%, transparent 51%),
    radial-gradient(3px 3px at 240px 70px, #42e2f5 50%, transparent 51%),
    radial-gradient(2px 2px at 330px 210px, #ff6ec7 50%, transparent 51%),
    radial-gradient(2px 2px at 100px 280px, #fff 50%, transparent 51%);
  background-size: 360px 320px;
  animation: twinkle 2.2s ease-in-out infinite;
}

.stars2 {
  background-image:
    radial-gradient(2px 2px at 70px 130px, #7bf1a8 50%, transparent 51%),
    radial-gradient(3px 3px at 200px 40px, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 290px 160px, #ffe66d 50%, transparent 51%),
    radial-gradient(2px 2px at 170px 250px, #42e2f5 50%, transparent 51%);
  background-size: 400px 300px;
  animation: twinkle 3.1s ease-in-out infinite reverse;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .3;
  }
}

/* ===== 顶部霓虹招牌 ===== */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px;
  background: #0d0d2b;
  border-bottom: 4px solid #0d0d2b;
  box-shadow: 0 4px 0 #42e2f5, 0 8px 28px rgba(66, 226, 245, .3);
}

/* ===== 顶栏三段式收纳：左品牌 / 中玩法导航 / 右用户区（更多菜单收纳低频入口） ===== */
/* 宽屏 ≥1280px：禁止换行，一行三段排开 */
@media (min-width: 1280px) {
  header {
    flex-wrap: nowrap;
    padding: 10px 16px;
  }

  .user-box {
    flex-wrap: nowrap;
  }

  .hall-nav {
    margin-left: 10px;
  }
}

/* 中宽屏 1024~1279px：空间紧张，在线人数徽章与签到文字先收紧（header 前缀提高优先级，避免被后面的基础样式覆盖） */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  header .online-num {
    display: none;
  }

  header .checkin-btn {
    padding: 6px 8px;
  }

  header .coin-balance .cb-label {
    display: none;
  }
}

.brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 5px;
  color: #ffe66d;
  text-shadow: 0 0 6px #ffe66d, 0 0 18px rgba(255, 230, 109, .8), 3px 3px 0 #d645a8;
  animation: neonPulse 2.4s ease-in-out infinite;
}

@keyframes neonPulse {

  0%,
  100% {
    text-shadow: 0 0 6px #ffe66d, 0 0 18px rgba(255, 230, 109, .8), 3px 3px 0 #d645a8;
  }

  50% {
    text-shadow: 0 0 10px #ffe66d, 0 0 32px rgba(255, 230, 109, 1), 3px 3px 0 #d645a8;
  }
}

.brand span {
  display: inline-block;
  margin-left: 10px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #42e2f5;
  text-shadow: 0 0 8px rgba(66, 226, 245, .9);
  animation: blink 1.4s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.user-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-left: auto;
}

/* user-box 内的「图标按钮」统一方形：32×32，单色图标，
   字号/字间距/边框/阴影完全一致；颜色仅在激活或 hover 时出现变化。
   HTML 上保留 title 用于悬浮提示，文字标签不再常驻顶部，避免臃肿 */
.user-box .icon-btn {
  position: relative;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(66, 226, 245, .55);
  border-radius: 9px;
  background: rgba(66, 226, 245, .08);
  color: #cdebff;
  font-size: 15px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  letter-spacing: 0;
  text-shadow: none;
  box-shadow: none;
  transition: filter .15s, transform .06s;
  overflow: hidden;
}

.user-box .icon-btn>svg {
  width: 16px;
  height: 16px;
  display: block;
}

.user-box .icon-btn:hover,
.user-box .icon-btn[aria-expanded="true"] {
  filter: brightness(1.35);
  background: rgba(66, 226, 245, .18);
}

.user-box .icon-btn:active {
  transform: translateY(1px);
}

/* 高亮态：钱包币（有钱可花）/签到（未签）由 JS 加 .on，保留单点提示色不破坏统一外观 */
.user-box .icon-btn.on {
  border-color: #ffe66d;
  background: rgba(255, 230, 109, .14);
  color: #ffe66d;
}

/* BGM 关闭态：低饱和，不影响重要信息 */
.user-box .icon-btn.off {
  opacity: .55;
}

/* user-box 内残留旧类（.checkin-btn/.board-btn/.music-btn 等）已被 .icon-btn 接管样式，
   但其全局规则（渐变/内嵌阴影/大 padding/字间距）若不收敛会再次覆盖；这里用更高特异性一次性复位 */
.user-box .icon-btn.checkin-btn,
.user-box .icon-btn.board-btn,
.user-box .icon-btn.music-btn,
.user-box .icon-btn,
.user-box .coin-balance,
.user-box .wheel-entry,
.user-box .menu-btn {
  background: rgba(66, 226, 245, .08);
  border: 2px solid rgba(66, 226, 245, .55);
  box-shadow: none;
  padding: 0;
  letter-spacing: 0;
  text-shadow: none;
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 15px;
}

.user-box .coin-balance .cb-label,
.user-box .bb-label,
.user-box .mb-label,
.user-box .mb-icon {
  display: none;
}

/* 余额胶囊：钱库币 / 龙港币两枚并列展示，数字清晰可见；
   与图标按钮同高 32px、同款青色边框，宽度由数字自适应 */
.balance-box {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 9px;
  border: 2px solid rgba(66, 226, 245, .55);
  border-radius: 9px;
  background: rgba(66, 226, 245, .08);
  color: #cdebff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow: none;
  box-shadow: none;
  cursor: default;
}

.balance-box .bal-icon {
  font-size: 14px;
  line-height: 1;
}

.balance-box .bal-num {
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.balance-box[title^="钱库"] {
  color: #ffe66d;
  border-color: rgba(255, 230, 109, .55);
  background: rgba(255, 230, 109, .08);
}

.balance-box[title^="龙港"] {
  color: #ff8c4a;
  border-color: rgba(255, 110, 80, .55);
  background: rgba(255, 110, 80, .08);
}

button.balance-box {
  cursor: pointer;
  font-family: inherit;
}

button.balance-box:hover {
  filter: brightness(1.2);
}

/* 顶部在线人数：徽章样式 */
.online-num {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  letter-spacing: 1px;
  color: #7bf1a8;
  border: 2px solid #2ecc71;
  border-radius: 999px;
  background: rgba(46, 204, 113, .08);
  box-shadow: 0 0 8px rgba(46, 204, 113, .35), inset 0 0 6px rgba(46, 204, 113, .15);
  text-shadow: 0 0 6px rgba(123, 241, 168, .8);
  white-space: nowrap;
}

/* 在线人数可点击（悬停/点击弹出在线玩家名单） */
.online-num.clickable {
  cursor: pointer;
}

/* 在线玩家弹窗：脱敏名单，长列表滚动 */
#onlinePop {
  position: fixed;
  z-index: 130;
  display: none;
  padding: 10px 12px;
  border: 2px solid rgba(66, 226, 245, .45);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(20, 22, 54, .98), rgba(10, 11, 30, .98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  animation: onlinePopIn .15s ease both;
}

@keyframes onlinePopIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

#onlinePop .op-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #3ee6d8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

#onlinePop .op-sub {
  font-size: 10px;
  font-weight: 400;
  color: #8a93b8;
  letter-spacing: 0;
  margin-left: 4px;
}

#onlinePop .op-list {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

#onlinePop .op-list::-webkit-scrollbar {
  width: 6px;
}

#onlinePop .op-list::-webkit-scrollbar-thumb {
  background: rgba(62, 230, 216, .3);
  border-radius: 3px;
}

#onlinePop .op-item {
  display: block;
  padding: 5px 8px;
  border-radius: 8px;
  font-size: 12.5px;
  color: #e6e9f5;
  text-decoration: none;
}

#onlinePop .op-item:hover {
  background: rgba(62, 230, 216, .12);
  color: #3ee6d8;
}

#onlinePop .op-empty {
  text-align: center;
  font-size: 12px;
  color: #8a93b8;
  padding: 14px 0;
}

/* 签到按钮：青→紫对角渐变 + 青色霓虹 */
.checkin-btn {
  background: linear-gradient(135deg, #7bf6ff 0%, #42e2f5 40%, #8a5cf5 100%);
  color: #062a33;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #0b5a70, 0 0 14px rgba(66, 226, 245, .55);
}

.checkin-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 1px 0 #0b5a70;
}

/* 别跑堂按钮：金橙渐变 + 金色霓虹 */
.pixel-btn.board-btn {
  background: linear-gradient(135deg, #fff3b0 0%, #ffd76e 40%, #f39c12 100%);
  color: #5a3000;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #7a4a00, 0 0 14px rgba(255, 215, 110, .55);
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .3);
}

.pixel-btn.board-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 1px 0 #7a4a00;
}

/* 退出按钮：红→粉渐变 + 红色霓虹（带关机图标） */
.logout-btn {
  background: linear-gradient(135deg, #ff9a9e 0%, #ff5e62 45%, #d645a8 100%);
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #7b1d12, 0 0 14px rgba(255, 94, 98, .5);
}

.logout-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 1px 0 #7b1d12;
}

/* 关机图标（SVG）：圆圈 + 顶部竖线，跟文字走 */
.power-icon {
  width: 12px;
  height: 12px;
  vertical-align: -2px;
  margin-right: 4px;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .6));
}

/* 钱库币余额胶囊（点击打开商店） */
.coin-balance {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #ffe66d;
  border-radius: 999px;
  background: rgba(255, 230, 109, .12);
  color: #ffe66d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 230, 109, .7);
  box-shadow: 0 0 10px rgba(255, 230, 109, .3), inset 0 0 8px rgba(255, 230, 109, .15);
  transition: filter .15s;
  white-space: nowrap;
}

.coin-balance:hover {
  filter: brightness(1.3);
}

/* 背景音乐开关：绿→青渐变 + 绿色霓虹，关闭灰色 + 删除线 */
.music-btn {
  background: linear-gradient(135deg, #c8f9d8 0%, #7bf1a8 40%, #2ecc71 100%);
  color: #0d2b16;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .3);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #14532d, 0 0 14px rgba(123, 241, 168, .5);
}

.music-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 1px 0 #14532d;
}

.music-btn.off {
  background: linear-gradient(135deg, #9b9bc8 0%, #6f6f9e 50%, #5a5a8a 100%);
  color: #d9d9f2;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .3);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .18), 0 4px 0 #0d0d2b;
  text-decoration: line-through;
}

.music-btn.off:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .18), 0 1px 0 #0d0d2b;
}

/* BGM 悬停曲目面板：BGM 按钮悬停弹出，未购显示购买按钮+价格，已购可切换使用 */
/* 「⋮ 更多」按钮：与用户区胶囊同风格的方形霓虹按钮 */
.menu-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #42e2f5;
  border-radius: 9px;
  background: rgba(66, 226, 245, .1);
  color: #42e2f5;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(66, 226, 245, .8);
  box-shadow: 0 0 10px rgba(66, 226, 245, .3), inset 0 0 8px rgba(66, 226, 245, .15);
  transition: filter .15s, transform .06s;
}

.menu-btn:hover,
.menu-btn[aria-expanded="true"] {
  filter: brightness(1.35);
}

.menu-btn:active {
  transform: translateY(1px);
}

/* 更多菜单：桌面下拉抽屉（fixed 定位，JS 计算位置） */
.more-menu {
  position: fixed;
  z-index: 220;
  min-width: 190px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: rgba(10, 10, 30, .97);
  border: 2px solid #2e2e5a;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6), 0 0 18px rgba(66, 226, 245, .25);
}

.mm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #e8e8ff;
  font-size: 12px;
  letter-spacing: 1px;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .12s, border-color .12s;
}

.mm-item:hover {
  background: rgba(66, 226, 245, .12);
  border-color: rgba(66, 226, 245, .35);
}

.mm-item.mm-danger {
  color: #ff8a8a;
}

.mm-item.mm-danger:hover {
  background: rgba(255, 94, 98, .12);
  border-color: rgba(255, 94, 98, .4);
}

.mm-sep {
  height: 1px;
  margin: 4px 6px;
  background: rgba(255, 255, 255, .12);
}

/* 手机 ≤640px：更多菜单改为底部弹层，拇指热区更好按 */
@media (max-width: 640px) {
  .more-menu {
    top: auto !important;
    right: 10px !important;
    bottom: 12px;
    left: 10px;
    min-width: 0;
  }

  .mm-item {
    padding: 12px 12px;
    font-size: 13px;
  }

  /* 一级下拉（游戏入口列表 / 管理后台）：手机上仍从一级按钮下方展开，不做「底部弹层」翻转 ——
     弹层顶部会顶进 header 盖住一级按钮（表现为按钮点不到、只有露出的下半部分能按）。
     高度上限由 hall.js 按按钮位置实测写入 max-height，超出时面板内部滚动；这里给保守兜底 */
  .hall-nav-drop,
  .admin-drop {
    min-width: 0;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* 矮屏/小窗兜底（窄屏由 hall.js 强制不翻转，这里只服务 > 640px 的矮窗口）：
   面板按原定位展开后底部超出视口（与屏幕宽度无关），由 hall.js 测量并为面板加该类，
   翻转为底部弹层、留足底边空隙；max-height 只是保守兜底，真实上限由 hall.js 按
   触发按钮位置实测写入，保证面板顶不越过一级按钮（否则按钮被盖住点不到） */
.hall-nav-drop.drop-bottom,
.admin-drop.drop-bottom {
  position: fixed;
  top: auto;
  left: 12px;
  right: 12px;
  min-width: 0;
  bottom: calc(52px + env(safe-area-inset-bottom, 0px));
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

/* BGM 悬停曲目面板：BGM 按钮悬停弹出，未购显示购买按钮+价格，已购可切换使用 */
.bgm-hover {
  position: fixed;
  z-index: 200;
  min-width: 220px;
  background: rgba(10, 10, 30, .97);
  border: 2px solid #2e2e5a;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6), 0 0 18px rgba(66, 226, 245, .25);
  padding: 10px;
}

.bgm-hover-title {
  font-size: 12px;
  color: #7bf1a8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.bgm-hover-title span {
  color: #777;
  font-size: 10px;
  letter-spacing: .5px;
  margin-left: 6px;
}

/* BGM 面板内静音开关（点击切换音乐开关） */
.bh-mute {
  float: right;
  font-size: 11px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(123, 241, 168, .45);
  background: rgba(123, 241, 168, .12);
  color: #7bf1a8;
}

.bh-mute.off {
  border-color: rgba(255, 130, 130, .5);
  background: rgba(255, 130, 130, .12);
  color: #ff8a8a;
}

.bh-mute:hover {
  filter: brightness(1.25);
}

.bgm-hover-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
}

.bh-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px;
}

.bh-item.using {
  border-color: rgba(123, 241, 168, .5);
  background: rgba(123, 241, 168, .08);
}

.bh-name {
  font-size: 12px;
  color: #e8e8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bh-btn {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
}

.bh-btn.buy {
  background: linear-gradient(135deg, #ffe66d, #f5a623);
  color: #5a3000;
}

.bh-btn.use {
  background: linear-gradient(135deg, #7bf1a8, #2ecc71);
  color: #0d2b16;
}

.bh-using {
  flex: 0 0 auto;
  font-size: 11px;
  color: #7bf1a8;
}

.bh-empty {
  font-size: 12px;
  color: #888;
  padding: 8px;
}

.user-box .name {
  color: #7bf1a8;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(123, 241, 168, .7);
  cursor: pointer;
}

.user-box .name:hover {
  text-decoration: underline;
  filter: brightness(1.2);
}

/* ===== 手机端身份区：hall.js 在窄屏把头像 + 用户名挪进品牌行（.identity），胶囊行只留标签/余额/图标 =====
   桌面端 display:none 且头像/名字被移回 user-box 原位，布局不变 */
.identity {
  display: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: 10px;
}

.identity #uavatar {
  margin-right: 0;
}

.identity #uname {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7bf1a8;
  letter-spacing: 1px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(123, 241, 168, .7);
  cursor: pointer;
}

@media (max-width: 640px) {
  .identity {
    display: inline-flex;
    /* 头像 + 用户名整组推到品牌行右缘：用户名贴屏幕右侧展示 */
    margin-left: auto;
    margin-right: 4px;
  }
}

/* 个性标签胶囊（点击可修改） */
.user-box .utag {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 2px solid #42e2f5;
  border-radius: 999px;
  background: rgba(66, 226, 245, .12);
  color: #42e2f5;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  padding: 4px 10px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(66, 226, 245, .7);
  box-shadow: 0 0 10px rgba(66, 226, 245, .3), inset 0 0 8px rgba(66, 226, 245, .15);
  transition: filter .15s, transform .06s;
}

.user-box .utag::before {
  content: "";
  color: #ffe66d;
  text-shadow: none;
}

.user-box .utag:hover {
  filter: brightness(1.3);
}

.user-box .utag:active {
  transform: translateY(1px);
}

.pixel-btn {
  position: relative;
  overflow: hidden;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9a9e 0%, #ff5e62 45%, #d645a8 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #7b1d12, 0 0 12px rgba(255, 94, 98, .35);
  transition: transform .06s, box-shadow .06s, filter .15s;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
}

.pixel-btn:hover {
  filter: brightness(1.15) saturate(1.15);
}

/* 悬停时高光带从左扫过（每次 hover 扫一次） */
.pixel-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -60%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.pixel-btn:hover::after {
  left: 130%;
  transition: left .5s ease;
}

.pixel-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 1px 0 #7b1d12;
}

/* ===== header 导航：「芦浦游戏厅」一级下拉（收纳 AI游戏/GBA/街机厅/V宠/BB农场） ===== */
.hall-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* 一级菜单按钮：金色渐变，区别于二级入口按钮 */
.nav-btn.nav-hall {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 128px;
  background: linear-gradient(135deg, #ffe29a 0%, #ffc94d 45%, #f59f00 100%);
  color: #3d2a00;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #8a5a00, 0 0 14px rgba(255, 201, 77, .45);
}

.nav-btn.nav-hall:active {
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 1px 0 #8a5a00;
}

.nav-hall .nh-label {
  letter-spacing: 3px;
}

.nav-hall .nh-caret {
  font-style: normal;
  font-size: 11px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform .18s ease;
}

.hall-nav.open .nh-caret {
  transform: translateY(-1px) rotate(180deg);
}

/* 下拉面板 */
.hall-nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 228px;
  padding: 10px;
  border: 3px solid #0d0d2b;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(20, 22, 54, .97), rgba(10, 11, 30, .97));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .5), 0 0 0 2px rgba(255, 201, 77, .28), 0 0 22px rgba(255, 201, 77, .18);
  animation: hallDropIn .16s ease both;
}

@keyframes hallDropIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.97);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* 二级入口：行式布局（左图标右名称+简介），覆写平铺按钮样式 */
.nav-btn.hnd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: 100%;
  padding: 8px 12px;
  text-align: left;
  letter-spacing: 1px;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .22), inset 2px 2px 0 rgba(255, 255, 255, .28);
}

.nav-btn.hnd-item .hnd-ico {
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}

.nav-btn.hnd-item .hnd-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nav-btn.hnd-item .hnd-txt b {
  font-size: 13px;
}

.nav-btn.hnd-item .hnd-txt i {
  font-style: normal;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1px;
  opacity: .82;
}

/* 二级入口激活态沿用了 .nav-btn.active 绿色霓虹，行内布局下略收紧 */
.nav-btn.hnd-item.active {
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .2), inset 2px 2px 0 rgba(255, 255, 255, .4), 0 0 14px rgba(123, 241, 168, .5);
}

/* ===== header 导航：「管理后台」一级下拉（仅 admin 可见，悬停展开四个后台入口） ===== */
/* 一级菜单外壳：让下拉面板相对自身按钮定位（.hall-nav 自身定位会让两个面板重叠） */
.hall-nav-cell {
  position: relative;
  display: inline-flex;
}

.hall-nav-cell.open .nh-caret {
  transform: translateY(-1px) rotate(180deg);
}

/* 一级按钮：紫蓝渐变，与「芦浦游戏厅」金色区分 */
.nav-btn.nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 8px 14px;
  background: linear-gradient(135deg, #c3b6ff 0%, #8f7bff 45%, #5f45e0 100%);
  color: #1a0f3d;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .45);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #3b2a8a, 0 0 14px rgba(143, 123, 255, .45);
}

.nav-btn.nav-admin:active {
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .38), 0 1px 0 #3b2a8a;
}

.nav-admin .nh-label {
  letter-spacing: 2px;
}

/* 面板贴自身右缘展开，避免与「芦浦游戏厅」面板同位置 */
.admin-drop {
  left: auto;
  right: 0;
  min-width: 214px;
}

/* 一级「管理后台」按钮展开态：视图已进入时保持高亮（与二级入口 active 呼应） */
.nav-btn.nav-admin.active {
  background: linear-gradient(135deg, #e6dfff 0%, #b7a8ff 45%, #7a5cff 100%);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #3b2a8a, 0 0 20px rgba(183, 168, 255, .8);
}

/* ===== 「龙港棋牌室」一级下拉：橙红渐变，与金色「芦浦游戏厅」/ 紫蓝「管理后台」区分 ===== */
.nav-btn.nav-card {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 128px;
  /* 与「芦浦游戏厅」同最小宽：两个一级菜单在桌面端也等宽 */
  padding: 8px 14px;
  background: linear-gradient(135deg, #ffd9a6 0%, #ff9c56 45%, #d9532a 100%);
  color: #3a1204;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .4);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #8a2e12, 0 0 14px rgba(255, 156, 86, .45);
}

.nav-btn.nav-card:active {
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .18), inset 3px 3px 0 rgba(255, 255, 255, .38), 0 1px 0 #8a2e12;
}

.nav-card .nh-label {
  letter-spacing: 2px;
}

/* ===== 管理后台视图：像 GBA 一样内嵌在大厅里，但内容 100vw 铺满、无边框、无底部机台装饰 ===== */
/* body.adm-view-on 由 hall.js 在大厅内嵌后台视图期间挂上，视图内一切收拾干净 */
body.adm-view-on {
  overflow: hidden;
  /* 后台自带内部滚动，避免外层再出一条滚动条 */
}

body.adm-view-on main {
  /* 解除大厅主体留白与 1100px 居中限宽（否则两侧会空出一条，后台没占满窗口宽度） */
  max-width: none;
  margin: 0;
  padding: 0;
}

body.adm-view-on .cabinet {
  max-height: none;
  /* 解除 800px 限高，后台列表用满可视高度 */
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  /* 连机台外框一起去掉：后台不做「装进机箱」的外观 */
}

body.adm-view-on .screen {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.adm-view-on .screen-body {
  padding: 0;
  /* 去掉屏幕内边距：后台表格占满整屏宽度 */
}

body.adm-view-on .screen::after {
  display: none;
  /* 关掉 CRT 扫描线，后台内容保持原样清晰 */
}

body.adm-view-on .deck {
  display: none;
  /* 摇杆 / GBA 十字键 / 黄色按键等机台装饰全部不显示 */
}

/* 卡片模式下 .screen-body 是 block 滚动容器，flex:1 撑不开 iframe，高度由 hall.js 实测可用高度写入 */
.adm-frame {
  width: 100%;
  height: 560px;
  min-height: 420px;
  border: 0;
  border-radius: 0;
  background: #14143c;
  display: block;
}

.nav-btn {
  position: relative;
  overflow: hidden;
  min-width: 110px;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9a9e 0%, #ff5e62 45%, #d645a8 100%);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #7b1d12, 0 0 12px rgba(255, 94, 98, .35);
  transition: transform .06s, box-shadow .06s, filter .15s;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
  touch-action: manipulation; /* 去掉双击缩放判定，触屏点按即时响应 */
}

/* 悬停扫光 */
.nav-btn::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -60%;
  width: 38%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

/* 悬停视觉只给真鼠标：触屏浏览器的 :hover 会「粘住」在最后点过的按钮上，
   部分老浏览器还会因此吃掉第一下 tap 的 click（表现成一级菜单要点两下才开）。 */
@media (hover: hover) and (pointer: fine) {
  .nav-btn:hover::after {
    left: 130%;
    transition: left .5s ease;
  }

  .nav-btn:hover {
    filter: brightness(1.15) saturate(1.15);
  }
}

.nav-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .3), 0 1px 0 #7b1d12;
}

/* 激活态：青→绿渐变 + 绿色霓虹，表示当前显示内容 */
.nav-btn.active {
  background: linear-gradient(135deg, #c8f9d8 0%, #7bf1a8 40%, #2ecc71 100%);
  color: #0d2b16;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .3);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 #14532d, 0 0 16px rgba(123, 241, 168, .55);
}

.nav-btn.active::after {
  display: none;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
  width: 100%;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* ===== 工具栏：标题 + 视图切换 ===== */
.toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-title {
  font-size: 15px;
  letter-spacing: 3px;
  color: #42e2f5;
  text-shadow: 0 0 8px rgba(66, 226, 245, .8);
}

.section-title::before {
  content: "▸ ";
  color: #ff6ec7;
}

.view-switch {
  display: flex;
  gap: 10px;
}

.view-switch button {
  word-break: keep-all;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: #33336e;
  color: #8f8fc4;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .12), 0 4px 0 #0d0d2b;
  transition: transform .06s, box-shadow .06s;
}

.view-switch button:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .12), 0 1px 0 #0d0d2b;
}

.view-switch button.active {
  background: linear-gradient(180deg, #ff6ec7 0%, #d645a8 100%);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 255, 255, .7), 1px 1px 0 rgba(0, 0, 0, .4);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .28), inset 3px 3px 0 rgba(255, 255, 255, .35), 0 4px 0 #7a1f5e, 0 0 16px rgba(255, 110, 199, .55);
}

/* ===== 卡片模式 ===== */
.grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 22px;
}

.card {
  background: #1e1e52;
  border: 4px solid #0d0d2b;
  border-radius: 16px;
  box-shadow: 0 0 0 3px var(--neon, #42e2f5), 0 0 22px var(--neon-glow, rgba(66, 226, 245, .4)), 0 12px 0 -6px rgba(0, 0, 0, .45);
  padding: 10px;
  display: flex;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
}

.card:hover {
  transform: translateY(-4px) rotate(0deg) scale(1.01);
  box-shadow: 0 0 0 3px var(--neon, #42e2f5), 0 0 34px var(--neon-glow, rgba(66, 226, 245, .65)), 0 16px 0 -6px rgba(0, 0, 0, .45);
}

.card-left {
  flex: 0 0 184px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  overflow: hidden;
  background: #10102e;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .5);
  position: relative;
}

/* 收藏五角星：卡片封面右上角 + 焦点详情标题旁共用 */
.fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  width: 30px;
  height: 30px;
  line-height: 24px;
  font-size: 17px;
  border: 2px solid #0d0d2b;
  border-radius: 8px;
  background: rgba(13, 13, 43, .75);
  color: #5a5a8a;
  cursor: pointer;
  text-shadow: none;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35), inset 2px 2px 0 rgba(255, 255, 255, .12);
  transition: transform .12s ease, color .15s ease, background .15s ease;
}

.fav-btn:hover {
  transform: scale(1.15);
  filter: brightness(1.25);
}

.fav-btn:active {
  transform: scale(.92);
}

.fav-btn.on {
  color: #ffe66d;
  background: rgba(255, 215, 110, .18);
  text-shadow: 0 0 8px rgba(255, 230, 109, .9), 0 0 16px rgba(255, 230, 109, .5);
}

/* 焦点详情里的星标：标题行内按钮，静态定位 */
.detail-info .fav-btn {
  position: static;
  flex: 0 0 auto;
  margin-left: 10px;
  width: 34px;
  height: 34px;
  line-height: 28px;
  font-size: 19px;
  border-radius: 9px;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  image-rendering: pixelated;
}

.card .gname {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe66d;
  margin-bottom: 10px;
  text-shadow: 0 0 8px rgba(255, 230, 109, .55), 1px 1px 0 rgba(0, 0, 0, .5);
}

/* 用户上传游戏的"上传者"标注（卡片 / 幻灯片详情共用） */
.gup {
  font-size: 12px;
  letter-spacing: 1px;
  color: #42e2f5;
  margin: -4px 0 10px;
  opacity: .9;
}

/* AI游戏 游玩方式标签（触屏 / 键鼠 / 触屏/键鼠） */
.gplay {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #7bf1a8;
  background: rgba(46, 204, 113, .12);
  border: 1px solid rgba(46, 204, 113, .5);
  border-radius: 4px;
  padding: 1px 6px;
  text-shadow: none;
}

.gplay.gplay-kbd {
  color: #ffa25c;
  background: rgba(255, 162, 92, .12);
  border-color: rgba(255, 162, 92, .5);
}

.card .gdesc {
  font-size: 12px;
  color: #b9b9e6;
  line-height: 1.55;
  min-height: 38px;
}

.card .enter {
  position: relative;
  margin-top: auto;
  display: block;
  height: 38px;
  line-height: 32px;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 3px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 4px 0 #14532d;
  transition: transform .06s, box-shadow .06s, filter .15s;
}

.card .enter:hover {
  filter: brightness(1.1);
}

.card .enter:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 1px 0 #14532d;
}

.card-right {
  flex: 1;
  border-left: 3px dashed #33336e;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ===== 排行榜（两种视图共用） ===== */
.lb-head {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff6ec7;
  text-shadow: 0 0 8px rgba(255, 110, 199, .6);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lb-head::before {
  content: "🏆";
}

/* 周榜 / 总榜切换 */
.lb-switch {
  display: inline-flex;
  gap: 4px;
}

.lb-switch .lb-p {
  padding: 2px 8px;
  font-size: 11px;
  letter-spacing: 1px;
  color: #b9b9e6;
  background: rgba(30, 30, 82, .7);
  border: 2px solid #33336e;
  border-radius: 6px;
  cursor: pointer;
  text-shadow: none;
  transition: color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.lb-switch .lb-p:hover {
  filter: brightness(1.2);
}

.lb-switch .lb-p.on {
  color: #062a33;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  border-color: #0d0d2b;
  box-shadow: 0 0 8px rgba(46, 204, 113, .45);
}

.lb-refresh {
  font-size: 11px;
  color: #6a6a9a;
  letter-spacing: 0;
  text-shadow: none;
}

.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 10px;
  margin-bottom: 2px;
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 3px 6px;
  border-radius: 6px;
}

.lb-row.top1 {
  background: rgba(255, 230, 109, .12);
}

.lb-row.top2 {
  background: rgba(255, 255, 255, .06);
}

.lb-row.top3 {
  background: rgba(205, 127, 50, .1);
}

.lb-rank {
  flex: 0 0 22px;
  text-align: center;
  font-weight: 700;
  color: #6a6a9a;
}

.lb-row.top1 .lb-rank {
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .9);
}

.lb-row.top2 .lb-rank {
  color: #d7d7f0;
  text-shadow: 0 0 8px rgba(255, 255, 255, .7);
}

.lb-row.top3 .lb-rank {
  color: #e8963e;
  text-shadow: 0 0 8px rgba(232, 150, 62, .8);
}

.lb-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #e8e8ff;
  min-width: 0;
}

.lb-score {
  flex: 0 0 auto;
  font-weight: 700;
  color: #42e2f5;
  text-shadow: 0 0 6px rgba(66, 226, 245, .6);
}

/* 榜单档位标签：分数前的小徽章（幻影象棋按 AI 难度分档：简单 / 普通 / 困难 / 人人） */
.lb-tag {
  display: inline-block;
  margin-right: 5px;
  padding: 0 5px;
  border-radius: 4px;
  font-size: 11px;
  line-height: 15px;
  font-style: normal;
  font-weight: 700;
  color: #0b0b24;
  background: #9aa4d0;
}

.lb-tag[data-t="简单"] { background: #7ad1a0; }
.lb-tag[data-t="普通"] { background: #6fb6ff; }
.lb-tag[data-t="困难"] { background: #ff9f6b; }
.lb-tag[data-t="人人"] { background: #ffe66d; }

.lb-empty {
  font-size: 13px;
  color: #6a6a9a;
  padding: 8px 0;
}

.empty {
  color: #8f8fc4;
  font-size: 14px;
  letter-spacing: 1px;
}

/* ===== GBA 模拟器视图：整卡可点击 ===== */
.gba-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

a.gba-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ===== 幻灯片模式：街机屏幕 ===== */
.carousel {
  display: none;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}

.cabinet {
  /* flex: 1;  */
  min-height: 0;
  max-height: 800px;
  display: flex;
  flex-direction: column;
  background: #0d0d2b7e;
  border: 4px solid #0d0d2b;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 0 0 4px #a06cd5, 0 0 34px rgba(160, 108, 213, .5), 0 18px 0 -8px rgba(0, 0, 0, .5);
}

.screen {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(13, 13, 43, .78);
  border: 3px solid #000;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .7);
}

/* CRT 扫描线 */
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 5px);
}

/* ===== 大厅整体街机框体 ===== */
.hall-cab {
  flex: 1;
}

/* 屏幕内容区：卡片模式内部滚动，幻灯模式铺满 */
.screen-body {
  flex: 1;
  min-height: 0;
  padding: 20px;
}

.screen-body.cards {
  display: block;
  overflow-y: auto;
}

.screen-body.slides {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.carousel>.detail {
  flex: 1;
  min-height: 0;
  height: auto;
}

/* ===== 操控台：摇杆 + 黄色按键（纯装饰，无交互） ===== */
.deck {
  flex: 0 0 auto;
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 28px 16px;
  background: linear-gradient(180deg, #2b2b6b 0%, #1a1a46 100%);
  border: 3px solid #0d0d2b;
  border-radius: 14px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 6px 0 #05051a;
  pointer-events: none;
  user-select: none;
}

/* 摇杆 */
.joy {
  position: relative;
  width: 84px;
  height: 96px;
  flex: 0 0 auto;
}

.joy .j-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #3d3d88 0%, #14143c 75%);
  border: 3px solid #0d0d2b;
  box-shadow: 0 4px 0 #05051a;
}

.joy .j-stick {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 52px;
  border-radius: 6px;
  background: linear-gradient(90deg, #4a4a72 0%, #c9c9e2 45%, #4a4a72 100%);
}

.joy .j-ball {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9fb0 0%, #e7334f 55%, #8f1024 100%);
  border: 3px solid #0d0d2b;
  box-shadow: 0 6px 10px rgba(0, 0, 0, .5);
}

/* 投币口 + 版权条 */
.deck-mid {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-bottom: 2px;
  min-width: 0;
}

.coinslot {
  width: 32px;
  height: 52px;
  border-radius: 6px;
  background: #05051a;
  border: 3px solid #33336e;
  box-shadow: inset 0 0 8px #000;
  position: relative;
}

.coinslot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 5px;
  height: 28px;
  border-radius: 3px;
  background: #000;
  box-shadow: 0 0 0 1px #1e1e52;
}

.deck-label {
  font-size: 11px;
  letter-spacing: 3px;
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .8);
  animation: blink 1.6s steps(2, start) infinite;
}

.deck-copy {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6a6a9a;
}

/* 黄色街机按键 */
.ybtns {
  flex: 0 0 auto;
  display: flex;
  gap: 16px;
  padding-bottom: 8px;
}

.ybtn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff3b0 0%, #ffe66d 45%, #d4a017 100%);
  border: 3px solid #0d0d2b;
  box-shadow: 0 6px 0 #8a6508, 0 8px 12px rgba(0, 0, 0, .5);
  color: #7a4a00;
  font-size: 15px;
  font-weight: 700;
}

/* ===== GBA 掌机造型：GBA 菜单激活时替代摇杆/黄色按键显示 ===== */
.gba-deck {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding-bottom: 4px;
}

.deck.gba-mode .joy,
.deck.gba-mode .ybtns {
  display: none;
}

.deck.gba-mode .gba-deck {
  display: flex;
}

/* 十字键 */
.gba-dpad {
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 auto;
}

.gba-dpad::before,
.gba-dpad::after {
  content: "";
  position: absolute;
  border-radius: 7px;
  background: linear-gradient(180deg, #6f6f9e 0%, #30305e 100%);
  border: 3px solid #0d0d2b;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
}

.gba-dpad::before {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 26px;
  height: 78px;
}

.gba-dpad::after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 26px;
}

.gba-dpad-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9c9cc8 0%, #4a4a7a 60%, #2a2a58 100%);
  border: 3px solid #0d0d2b;
  z-index: 1;
}

/* Select / Start 小胶囊 */
.gba-mid {
  display: flex;
  gap: 12px;
}

.gba-select,
.gba-start {
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6f6f9e 0%, #30305e 100%);
  border: 2px solid #0d0d2b;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .35);
}

/* A / B 键：GBA 经典粉红/深红 */
.gba-ab {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gba-a,
.gba-b {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #0d0d2b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  box-shadow: 0 4px 0 rgba(0, 0, 0, .45), inset 0 2px 0 rgba(255, 255, 255, .3);
}

.gba-a {
  background: radial-gradient(circle at 35% 30%, #ffb3c1 0%, #e0437d 55%, #8f1038 100%);
}

.gba-b {
  background: radial-gradient(circle at 35% 30%, #ff9fb0 0%, #e7334f 55%, #8f1024 100%);
}

/* 详情面板：显示当前选中游戏 */
.detail {
  display: flex;
  gap: 22px;
  padding: 22px;
  height: 100%;
  animation: detailIn .3s ease;
}

@keyframes detailIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.detail-cover {
  flex: 0 0 46%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-cover .cover {
  flex: 1;
  min-height: 288px;
  border-width: 4px;
  border-radius: 12px;
  box-shadow: 0 0 18px var(--neon-glow, rgba(66, 226, 245, .35));
}

.detail-cover .cover img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.detail-info {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail .gname {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffe66d;
  text-shadow: 0 0 10px rgba(255, 230, 109, .7), 2px 2px 0 #d645a8;
}

.detail .gDiv {
  display: flex;
  align-items: center;
}

.detail .gtag {
  margin-left: 10px;

  display: inline-block;
  width: fit-content;
  font-size: 11px;
  letter-spacing: 2px;
  color: #42e2f5;
  border: 2px solid #42e2f5;
  border-radius: 999px;
  padding: 3px 12px;
  text-shadow: 0 0 6px rgba(66, 226, 245, .7);
  box-shadow: 0 0 10px rgba(66, 226, 245, .3), inset 0 0 8px rgba(66, 226, 245, .15);
}

.detail .gdesc {
  flex: 0 0 auto;
  font-size: 13px;
  color: #b9b9e6;
  line-height: 1.6;
  max-height: 4.8em;
  overflow: hidden;
}

.detail .enter {
  position: relative;
  flex: 0 0 auto;
  margin-top: auto;
  display: block;
  height: 46px;
  line-height: 40px;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  border: 3px solid #0d0d2b;
  border-radius: 12px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 5px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 5px 0 #14532d, 0 0 18px rgba(123, 241, 168, .45);
  transition: transform .06s, box-shadow .06s, filter .15s;
}

.detail .enter:hover {
  filter: brightness(1.1);
}

.detail .enter:active {
  transform: translateY(4px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 1px 0 #14532d;
}

/* 手机端「键鼠」游戏置灰禁用入口 */
.enter.disabled {
  background: linear-gradient(180deg, #5c5c7a 0%, #3d3d52 100%);
  color: #c7c7de;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .12), 0 4px 0 #26263a;
  filter: grayscale(.5);
  cursor: not-allowed;
}

.enter.disabled:hover,
.enter.disabled:active {
  filter: grayscale(.5) brightness(1);
  transform: none;
}

/* 按钮 Hover 街机彩蛋：PRESS START 经典闪烁（attract 模式一亮一灭）+ 高光扫过 */
.enter span {
  display: block;
}

.enter .t-default {
  opacity: 1;
}

.enter .t-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: #000000;
  text-shadow: 0 0 6px rgba(255, 255, 255, .9), 0 0 16px rgba(123, 241, 168, .9), 0 0 30px rgba(123, 241, 168, .5);
}

.enter:hover .t-default {
  opacity: 0;
}

.enter:hover .t-hover {
  opacity: 1;
  animation: pressStartBlink 1.05s steps(2, start) infinite;
}

@keyframes pressStartBlink {
  to {
    visibility: hidden;
  }
}

/* 高光带：悬停时从左到右扫过一次（移出时立即归位，只扫一次） */
.enter::after {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -45%;
  width: 35%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

.enter:hover::after {
  left: 125%;
  transition: left .55s ease;
}

.detail .lb-box {
  flex: 1;
  min-height: 0;
  border-top: 3px dashed #33336e;
  padding-top: 12px;
  overflow-y: auto;
}

/* 底部缩略图条 */
.thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thumbs {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px 8px;
  scrollbar-width: none;
}

.thumbs::-webkit-scrollbar {
  display: none;
}

.thumb {
  flex: 0 0 auto;
  width: 86px;
  position: relative;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: #1e1e52;
  padding: 5px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 0 #0d0d2b;
  transition: transform .12s, box-shadow .12s;
}

.thumb img {
  width: 100%;
  /* aspect-ratio: 1; */
  object-fit: fill;
  display: block;
  border: 2px solid #33336e;
  border-radius: 6px;
  image-rendering: pixelated;
}

.thumb:hover {
  transform: translateY(-2px);
}

.thumb.active {
  transform: translateY(-4px);
  box-shadow: 0 0 0 3px var(--neon, #42e2f5), 0 0 16px var(--neon-glow, rgba(66, 226, 245, .5)), 0 4px 0 #0d0d2b;
}

.thumb.active::before {
  content: "";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--neon, #42e2f5);
}

/* 缩略图条两端箭头（仅溢出时出现） */
.thumb-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 56px;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffd76e 0%, #f39c12 100%);
  color: #5a3000;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 4px 0 #7a4a00, 0 0 14px rgba(255, 215, 110, .4);
  transition: transform .06s, box-shadow .06s, filter .15s, opacity .15s;
}

.thumb-arrow:hover {
  filter: brightness(1.12);
}

.thumb-arrow:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 1px 0 #7a4a00;
}

.thumb-arrow:disabled {
  opacity: .28;
  cursor: default;
  filter: none;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 4px 0 #7a4a00;
}

/* ===== 街机风格滚动条：霓虹像素滑轨 + 上下端黄色街机按键 ===== */
/* 标准属性（Firefox）：细青色滑轨 */
* {
  scrollbar-width: thin;
  scrollbar-color: #42e2f5 #10102e;
}

/* WebKit/Blink：像素霓虹滑轨 + 街机按键按钮 */
*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background:
    repeating-linear-gradient(180deg, rgba(66, 226, 245, .07) 0 2px, transparent 2px 6px),
    #10102e;
  border-left: 2px solid #0d0d2b;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, .85);
}

*::-webkit-scrollbar-thumb {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #8ff5ff 0%, #42e2f5 55%, #1594b8 100%);
  border: 2px solid #0d0d2b;
  border-radius: 3px;
  box-shadow:
    0 0 8px rgba(66, 226, 245, .7),
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 0 rgba(0, 0, 0, .3);
}

*::-webkit-scrollbar-thumb:hover {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .24) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, #a5f8ff 0%, #5eeafc 55%, #1aa7cc 100%);
  box-shadow:
    0 0 14px rgba(66, 226, 245, .95),
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -2px 0 rgba(0, 0, 0, .3);
}

*::-webkit-scrollbar-thumb:active {
  filter: brightness(.85);
  box-shadow: 0 0 6px rgba(66, 226, 245, .5), inset 0 2px 4px rgba(0, 0, 0, .45);
}

/* 上下端按钮：黄色街机按键（描边 + 顶部高光 + 按压下沉） */
*::-webkit-scrollbar-button {
  width: 12px;
  height: 12px;
  display: block;
  background: linear-gradient(180deg, #fff3b0 0%, #ffe66d 45%, #d4a017 100%);
  border: 2px solid #0d0d2b;
  border-radius: 3px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .28), 0 0 6px rgba(255, 230, 109, .4);
}

*::-webkit-scrollbar-button:hover {
  filter: brightness(1.12);
}

*::-webkit-scrollbar-button:active {
  filter: brightness(.85);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .4);
}

*::-webkit-scrollbar-corner {
  background: #0d0d2b;
}

/* 窄屏收紧，留出更多可视区域 */
@media (max-width: 640px) {
  *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  *::-webkit-scrollbar-button {
    width: 8px;
    height: 8px;
  }
}

/* ===== 自定义游戏（上传 GBA ROM）弹窗 ===== */
.rom-modes {
  display: flex;
  gap: 8px;
  margin: 4px 0 2px;
}

.rom-mode {
  flex: 1;
  height: 40px;
  border: 3px solid rgba(138, 146, 201, .45);
  border-radius: 10px;
  background: transparent;
  color: #b9b9e6;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  transition: filter .15s, transform .06s;
}

.rom-mode:hover {
  filter: brightness(1.2);
}

.rom-mode.active {
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  border-color: #0d0d2b;
  color: #0d2b16;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4);
}

.rom-upload {
  margin-top: 10px;
  display: block;
  width: 100%;
  text-align: center;
  border: 3px dashed #42e2f5;
  border-radius: 12px;
  background: rgba(66, 226, 245, .08);
  color: #42e2f5;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  padding: 20px 12px;
  cursor: pointer;
  box-shadow: inset 0 0 16px rgba(66, 226, 245, .12);
  transition: filter .15s, transform .06s;
}

.rom-upload:hover {
  filter: brightness(1.3);
}

.rom-upload:active {
  transform: translateY(2px);
}

.rom-upload .big {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.rom-upload .sub {
  font-size: 10px;
  color: #8f8fc4;
  letter-spacing: 1px;
  margin-top: 6px;
}

.rom-tip {
  font-size: 10px;
  color: #8f8fc4;
  line-height: 1.7;
  margin: 10px 0 4px;
}

.rom-tip b {
  color: #ffe66d;
}

.rom-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rom-empty {
  text-align: center;
  color: #8f8fc4;
  font-size: 12px;
  padding: 18px 0;
  letter-spacing: 2px;
}

.rom-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 3px solid #0d0d2b;
  border-radius: 12px;
  background: #33336e;
  padding: 10px 12px;
}

.rom-item .ri-info {
  flex: 1;
  min-width: 0;
}

.rom-item .ri-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffe66d;
  letter-spacing: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rom-item .ri-meta {
  font-size: 10px;
  color: #8f8fc4;
  margin-top: 2px;
}

.rom-item .ri-btn {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .35), 0 3px 0 #14532d;
}

.rom-item .ri-btn:active {
  transform: translateY(2px);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .35), 0 1px 0 #14532d;
}

.rom-item .ri-btn.del {
  background: linear-gradient(180deg, #ff8f8f 0%, #e74c3c 100%);
  color: #fff;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .3), 0 3px 0 #7b1d12;
}

.rom-status {
  font-size: 11px;
  color: #42e2f5;
  min-height: 16px;
  margin-top: 8px;
  letter-spacing: 1px;
}

/* ===== 上传我的游戏（AI游戏）弹窗 ===== */
.ug-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ug-form select.tag-input {
  appearance: none;
  cursor: pointer;
}

.ug-form select.tag-input option {
  background: #10102e;
  color: #e8e8ff;
}

.ug-cloud-row {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #e8e8ff;
}

.ug-cloud-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #7c6cff;
  cursor: pointer;
  flex: none;
}

.ug-cloud-hint {
  color: rgba(232, 232, 255, .45);
  font-size: 11px;
}

/* 在线存档勾选后的使用说明 */
.ug-cloud-detail {
  margin: 10px 0 2px;
  padding: 10px 12px;
  border: 1px dashed rgba(124, 108, 255, .5);
  border-radius: 10px;
  background: rgba(124, 108, 255, .08);
  font-size: 12px;
  color: #e8e8ff;
  line-height: 1.7;
}

.ug-cloud-detail ul {
  margin: 4px 0 8px;
  padding-left: 18px;
}

.ug-cloud-detail code {
  background: rgba(0, 0, 0, .35);
  padding: 1px 5px;
  border-radius: 4px;
}

.ug-cloud-code {
  margin: 6px 0;
  padding: 10px;
  background: #0d0d22;
  border: 1px solid rgba(124, 108, 255, .25);
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
  color: #b8e6c0;
}

.ug-cloud-copy {
  display: inline-block;
  margin-top: 2px;
  padding: 4px 12px;
  border: 1px solid rgba(124, 108, 255, .6);
  border-radius: 8px;
  background: rgba(124, 108, 255, .15);
  color: #e8e8ff;
  font-size: 11px;
  cursor: pointer;
}

.ug-cloud-tip {
  color: rgba(232, 232, 255, .8);
}

/* 状态徽标：审核中 / 已上架 / 已驳回 */
.ug-badge {
  display: inline-block;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 8px;
  margin-left: 8px;
  letter-spacing: 1px;
  vertical-align: 1px;
}

.ug-badge.wait {
  color: #ffe66d;
  border: 2px solid rgba(255, 230, 109, .7);
}

.ug-badge.ok {
  color: #7bf1a8;
  border: 2px solid rgba(123, 241, 168, .7);
}

.ug-badge.no {
  color: #ff8f8f;
  border: 2px solid rgba(255, 143, 143, .7);
}

.ug-reason {
  color: #ff8f8f;
}

.ri-link {
  color: #42e2f5;
  text-decoration: none;
  font-weight: 700;
}

.ri-link:hover {
  text-shadow: 0 0 8px rgba(66, 226, 245, .7);
}

/* ===== 「别跑堂」留言板弹窗 ===== */
.board-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 8, 26, .75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.board-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #1e1e52;
  border: 4px solid #0d0d2b;
  border-radius: 18px;
  box-shadow: 0 0 0 3px #ffe66d, 0 0 30px rgba(255, 230, 109, .45), 0 16px 0 -6px rgba(0, 0, 0, .5);
  padding: 16px 18px;
  animation: detailIn .25s ease;
}

.board-head {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.board-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .6), 2px 2px 0 #d645a8;
}

.board-sub {
  flex: 1;
  font-size: 11px;
  letter-spacing: 2px;
  color: #42e2f5;
  text-shadow: 0 0 6px rgba(66, 226, 245, .6);
}

.board-close {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff8f8f 0%, #e74c3c 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .3), 0 4px 0 #7b1d12;
  transition: transform .06s, box-shadow .06s, filter .15s;
}

.board-close:hover {
  filter: brightness(1.12);
}

.board-close:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .3), 0 1px 0 #7b1d12;
}

.board-form {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.board-input {
  flex: 1;
  min-width: 0;
  resize: none;
  height: 64px;
  background: #10102e;
  color: #e8e8ff;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
  line-height: 1.5;
  font-family: inherit;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5);
}

.board-input:focus {
  outline: none;
  border-color: #42e2f5;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5), 0 0 10px rgba(66, 226, 245, .4);
}

.board-send {
  flex: 0 0 auto;
  align-self: flex-end;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 4px 0 #14532d;
  transition: transform .06s, box-shadow .06s, filter .15s;
}

.board-send:hover {
  filter: brightness(1.1);
}

.board-send:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .4), 0 1px 0 #14532d;
}

.board-send:disabled {
  opacity: .5;
  cursor: default;
  filter: none;
}

.board-list {
  flex: 1;
  min-height: 240px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;
}

.msg-item {
  background: #14143c;
  border: 3px solid #0d0d2b;
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 3px 0 #0d0d2b;
}

.msg-item:nth-child(odd) {
  transform: rotate(-.3deg);
}

.msg-item:nth-child(even) {
  transform: rotate(.3deg);
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  min-width: 0;
}

.msg-user {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: #7bf1a8;
  letter-spacing: 1px;
  text-shadow: 0 0 6px rgba(123, 241, 168, .5);
}

.msg-tag {
  flex: 0 0 auto;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 2px solid #42e2f5;
  border-radius: 999px;
  color: #42e2f5;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 1px 8px;
  text-shadow: 0 0 6px rgba(66, 226, 245, .6);
  box-shadow: 0 0 8px rgba(66, 226, 245, .25);
}

.msg-time {
  flex: 0 0 auto;
  color: #6a6a9a;
  font-size: 11px;
  letter-spacing: 0;
}

.msg-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-reply,
.msg-del {
  border: 2px solid #0d0d2b;
  border-radius: 8px;
  background: #33336e;
  color: #8f8fc4;
  font-size: 10px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  cursor: pointer;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35), inset 2px 2px 0 rgba(255, 255, 255, .1);
  transition: filter .15s;
}

.msg-reply:hover {
  filter: brightness(1.3);
  color: #42e2f5;
}

.msg-del:hover {
  filter: brightness(1.3);
  color: #ff6b6b;
}

.msg-replyto {
  font-size: 11px;
  color: #42e2f5;
  margin-bottom: 4px;
  text-shadow: 0 0 6px rgba(66, 226, 245, .4);
}

.board-replybar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(66, 226, 245, .1);
  border: 2px solid #42e2f5;
  border-radius: 8px;
  padding: 5px 10px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #42e2f5;
}

.board-replybar b {
  color: #ffe66d;
}

.board-replycancel {
  margin-left: auto;
  border: 2px solid #0d0d2b;
  border-radius: 6px;
  background: #33336e;
  color: #8f8fc4;
  font-size: 11px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 1px 8px;
}

.board-replycancel:hover {
  filter: brightness(1.3);
  color: #ff6b6b;
}

.msg-content {
  font-size: 13px;
  color: #e8e8ff;
  line-height: 1.6;
  word-break: break-word;
  white-space: pre-wrap;
}

.board-status {
  flex: 0 0 auto;
  text-align: center;
  font-size: 12px;
  color: #6a6a9a;
  padding-top: 10px;
  letter-spacing: 1px;
}

/* ===== 全服通知一次性弹窗（管理后台勾选「大厅弹窗」后首次进大厅展示）===== */
.sn-popup {
  width: 100%;
  max-width: 480px;
  background: #1e1e52;
  border: 4px solid #0d0d2b;
  border-radius: 18px;
  box-shadow: 0 0 0 3px #ffe66d, 0 0 30px rgba(255, 230, 109, .45), 0 16px 0 -6px rgba(0, 0, 0, .5);
  padding: 18px 20px;
  animation: detailIn .25s ease;
}

.sn-popup-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.sn-popup-badge {
  flex: 0 0 auto;
  padding: 3px 10px;
  border-radius: 999px;
  border: 2px solid #ffe66d;
  background: rgba(255, 230, 109, .16);
  color: #ffe66d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
}

.sn-popup-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #42e2f5;
  text-shadow: 0 0 8px rgba(66, 226, 245, .5);
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
  word-break: break-all;
}

.sn-popup-body {
  font-size: 14px;
  line-height: 1.8;
  color: #e8e8ff;
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 40vh;
  overflow-y: auto;
  padding: 12px 14px;
  border: 2px solid #0d0d2b;
  border-radius: 10px;
  background: #12123a;
}

.sn-popup-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sn-popup-hint {
  font-size: 11px;
  color: #7a7ab0;
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
  letter-spacing: 1px;
}

.sn-popup-close {
  flex: 0 0 auto;
  padding: 7px 26px;
  border: 2px solid #0d0d2b;
  border-radius: 10px;
  background: linear-gradient(180deg, #42e2f5 0%, #1594b8 100%);
  color: #0d2b2b;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: "Courier New", "PingFang SC", "Microsoft YaHei", monospace;
  cursor: pointer;
  box-shadow: 0 3px 0 #0b5a70;
}

.sn-popup-close:hover {
  filter: brightness(1.1);
}

.sn-popup-close:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0b5a70;
}

/* ===== 每日签到面板 ===== */
.checkin-panel {
  max-width: 460px;
  text-align: center;
  overflow-y: auto;
}

.ck-hero {
  margin: 6px 0 0;
  padding: 20px 16px;
  border: 3px dashed #ffe66d;
  border-radius: 16px;
  background: rgba(255, 230, 109, .08);
}

.ck-reward {
  font-size: 40px;
  font-weight: 700;
  color: #ffe66d;
  text-shadow: 0 0 14px rgba(255, 230, 109, .8), 3px 3px 0 #d645a8;
}

.ck-reward small {
  font-size: 15px;
  letter-spacing: 3px;
}

.ck-status {
  margin-top: 10px;
  font-size: 14px;
  color: #e8e8ff;
  letter-spacing: 1px;
}

.ck-streak {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: #42e2f5;
  border: 2px solid #42e2f5;
  border-radius: 999px;
  padding: 3px 12px;
  text-shadow: 0 0 6px rgba(66, 226, 245, .7);
  box-shadow: 0 0 10px rgba(66, 226, 245, .3);
}

.ck-streak-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.ck-streak-row .ck-streak {
  margin-top: 0;
}

.ck-next {
  font-size: 12px;
  color: #7bf1a8;
  border: 1px dashed #7bf1a8;
  border-radius: 999px;
  padding: 3px 12px;
  text-shadow: 0 0 6px rgba(123, 241, 168, .6);
}

/* 签到悬停状态面板：悬停「签到」按钮展示今日签到与任务状态，只读不可点 */
.ck-hover {
  position: fixed;
  z-index: 200;
  min-width: 200px;
  background: rgba(10, 10, 30, .97);
  border: 2px solid #2e2e5a;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .6), 0 0 18px rgba(66, 226, 245, .25);
  padding: 10px;
}

.ck-hover-title {
  font-size: 12px;
  color: #7bf1a8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ck-hover-title span {
  color: #777;
  font-size: 10px;
  letter-spacing: .5px;
  margin-left: 6px;
}

.ck-hover-status {
  font-size: 12px;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
}

.ck-hover-tasks-title {
  font-size: 11px;
  color: #8f8fc4;
  letter-spacing: 1px;
  margin: 10px 0 6px;
}

.ckh-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #e8e8ff;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .04);
  margin-bottom: 5px;
}

.ckh-task.loading {
  color: #888;
}

.ckh-task-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ckh-task-state {
  flex: 0 0 auto;
  font-size: 11px;
  color: #7bf1a8;
}

/* 已完成状态：整行灰色 */
.ckh-done,
.ckh-task.done {
  color: #666;
}

.ckh-task.done .ckh-task-state {
  color: #666;
}

/* 抽奖大转盘：连续签到每满 3 天送 1 次机会 */
.ck-lottery {
  margin-top: 16px;
  padding: 14px;
  border: 2px solid rgba(66, 226, 245, .45);
  border-radius: 14px;
  background: rgba(66, 226, 245, .06);
}

.ck-lottery-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ck-lottery-title {
  font-size: 13px;
  letter-spacing: 1px;
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .6);
}

.ck-lottery-num {
  font-size: 12px;
  color: #e8e8ff;
}

.ck-lottery-go {
  margin-left: auto;
  font-size: 12px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid #0d0d2b;
  background: linear-gradient(135deg, #ffe66d, #f5a623);
  color: #5a3000;
  font-weight: 700;
  box-shadow: 0 3px 0 #7a4a00, 0 0 10px rgba(255, 230, 109, .4);
}

.ck-lottery-go:disabled {
  opacity: .5;
  cursor: default;
  filter: none;
}

.wheel-box {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 14px auto 0;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 24px solid #ff3b3b;
  z-index: 3;
  filter: drop-shadow(0 0 6px rgba(255, 59, 59, .8));
}

.wheel-box canvas {
  display: block;
}

.ck-lottery-tip {
  margin-top: 10px;
  font-size: 11px;
  color: #6a6a9a;
  letter-spacing: .5px;
}

.ck-btn {
  width: 100%;
  margin-top: 16px;
  height: 46px;
  font-size: 15px;
}

.ck-btn:disabled {
  opacity: .55;
  cursor: default;
  filter: none;
  background: linear-gradient(180deg, #8f8fc4 0%, #5a5a8a 100%);
  color: #d9d9f2;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .18), 0 4px 0 #0d0d2b;
}

/* 管理员测试加币按钮：金橙配色 */
.admin-ck {
  background: linear-gradient(135deg, #fff3b0 0%, #ffd76e 40%, #f39c12 100%);
  color: #5a3000;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .3);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #7a4a00, 0 0 14px rgba(255, 215, 110, .5);
  margin-top: 10px;
}

.admin-ck:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 1px 0 #7a4a00;
}

/* 管理后台入口按钮：青色霓虹（仅 admin 账号显示） */
.admin-btn {
  background: linear-gradient(135deg, #9ff5ff 0%, #42e2f5 45%, #2b9ec0 100%);
  color: #04262e;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .35);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #0f5e73, 0 0 14px rgba(66, 226, 245, .6);
}

.admin-btn:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .25), inset 3px 3px 0 rgba(255, 255, 255, .5), 0 1px 0 #0f5e73;
}

/* ===== 通用 Toast 提示（替代浏览器 alert） ===== */
.toast-wrap {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  color: #fff;
  background: #33336e;
  box-shadow: 0 4px 0 #0d0d2b, 0 0 16px rgba(66, 226, 245, .35);
  animation: toastIn .22s ease, toastOut .3s ease 2.6s forwards;
  max-width: 80vw;
  white-space: pre-wrap;
  text-align: center;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .4);
}

.toast.success {
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, .3);
  box-shadow: 0 4px 0 #14532d, 0 0 16px rgba(123, 241, 168, .5);
}

.toast.error {
  background: linear-gradient(180deg, #ff8f8f 0%, #e74c3c 100%);
  box-shadow: 0 4px 0 #7b1d12, 0 0 16px rgba(255, 94, 98, .5);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ===== 通用确认弹窗（替代浏览器 confirm） ===== */
.confirm-panel {
  max-width: 420px;
  text-align: center;
}

/* 标题占满 head 剩余空间，让关闭按钮顶到弹窗右上角（与其他弹窗一致） */
.confirm-panel .board-title {
  flex: 1;
  text-align: left;
}

.confirm-content {
  font-size: 14px;
  color: #e8e8ff;
  line-height: 1.8;
  padding: 14px 8px 18px;
  word-break: break-word;
}

.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.confirm-actions .board-send {
  flex: 1;
  max-width: 160px;
}

.confirm-actions .btn-no {
  flex: 1;
  max-width: 160px;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: #33336e;
  color: #8f8fc4;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 2px;
  cursor: pointer;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .1), 0 4px 0 #0d0d2b;
  transition: transform .06s, box-shadow .06s, filter .15s;
}

.confirm-actions .btn-no:hover {
  filter: brightness(1.3);
  color: #ff6b6b;
}

.confirm-actions .btn-no:active {
  transform: translateY(3px);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .35), inset 3px 3px 0 rgba(255, 255, 255, .1), 0 1px 0 #0d0d2b;
}

.ck-tip {
  margin-top: 12px;
  font-size: 11px;
  color: #6a6a9a;
  line-height: 1.7;
  letter-spacing: 1px;
}

/* 每日任务区块（签到弹窗内） */
.ck-tasks {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px dashed #33336e;
}

.ck-tasks-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #42e2f5;
  text-shadow: 0 0 8px rgba(66, 226, 245, .7);
  margin-bottom: 10px;
}

.ck-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ck-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 2px solid #33336e;
  border-radius: 10px;
  background: rgba(30, 30, 82, .5);
}

.ck-task-item.done {
  border-color: #2ecc71;
  background: rgba(46, 204, 113, .08);
}

.ck-task-cover {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ck-task-cover img {
  width: 34px;
  height: 34px;
  border: 2px solid #0d0d2b;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
}

.ck-task-no {
  font-size: 13px;
  color: #ffe66d;
  text-shadow: 0 0 6px rgba(255, 230, 109, .5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ck-task-state {
  flex: 0 0 auto;
  font-size: 12px;
  color: #2ecc71;
  white-space: nowrap;
}

.ck-task-go {
  flex: 0 0 auto;
  display: inline-block;
  padding: 6px 10px;
  font-size: 12px;
  color: #062a33;
  background: linear-gradient(135deg, #7bf6ff 0%, #42e2f5 50%, #8a5cf5 100%);
  border: 2px solid #0d0d2b;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .22), inset 2px 2px 0 rgba(255, 255, 255, .4);
}

.ck-task-go:hover {
  filter: brightness(1.15);
}

.ck-task-empty {
  font-size: 12px;
  color: #6a6a9a;
  text-align: center;
  padding: 8px 0;
}

/* ===== 钱库商店面板：分类型商品列表 ===== */
.shop-panel {
  max-width: 620px;
}

.shop-balance {
  flex: 0 0 auto;
  margin: 4px 0 8px;
  font-size: 14px;
  letter-spacing: 1px;
  color: #b9b9e6;
}

.shop-balance b {
  color: #ffe66d;
  font-size: 16px;
  text-shadow: 0 0 8px rgba(255, 230, 109, .6);
}

.shop-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 4px;
}

/* 商店分类 tab：点击切换只显示对应分类商品 */
.shop-tabs {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.shop-tab {
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: .5px;
  color: #b9b9e6;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s;
}

.shop-tab:hover {
  color: #fff;
  border-color: rgba(66, 226, 245, .6);
}

.shop-tab.active {
  color: #062a33;
  background: linear-gradient(135deg, #7bf6ff 0%, #42e2f5 100%);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(66, 226, 245, .5);
}

.shop-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.shop-item {
  border: 3px solid #0d0d2b;
  border-radius: 12px;
  background: #14143c;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 0 #0d0d2b;
  transition: transform .12s, box-shadow .12s;
}

.shop-item:hover {
  transform: translateY(-2px);
}

.shop-item .si-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 喇叭等消耗品：标题行右侧显示持有数 */
.si-head .si-price {
  margin-left: auto;
  font-size: 12px;
}

/* 头像商品预览：商店卡片标题前的小头像 */
.si-av {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(66, 226, 245, .35);
}

.si-name {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: #e8e8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-desc {
  font-size: 11px;
  color: #8f8fc4;
  line-height: 1.5;
  min-height: 32px;
}

.si-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.si-price {
  font-size: 13px;
  font-weight: 700;
  color: #ffe66d;
  text-shadow: 0 0 6px rgba(255, 230, 109, .5);
  white-space: nowrap;
}

.si-price.free {
  color: #7bf1a8;
  text-shadow: 0 0 6px rgba(123, 241, 168, .5);
}

.si-btn {
  flex: 0 0 auto;
  border: 3px solid #0d0d2b;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  cursor: pointer;
  background: #33336e;
  color: #8f8fc4;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .35), inset 2px 2px 0 rgba(255, 255, 255, .1);
  transition: filter .15s, transform .06s;
}

.si-btn:hover {
  filter: brightness(1.25);
}

.si-btn:active {
  transform: translateY(2px);
}

.si-btn.buy {
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .35), 0 3px 0 #14532d;
}

.si-btn.use {
  background: linear-gradient(180deg, #42e2f5 0%, #1594b8 100%);
  color: #0d2b2b;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .22), inset 2px 2px 0 rgba(255, 255, 255, .4), 0 3px 0 #0b5a70;
}

.si-btn.using {
  background: linear-gradient(180deg, #ff6ec7 0%, #d645a8 100%);
  color: #fff;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .35), 0 3px 0 #7a1f5e, 0 0 12px rgba(255, 110, 199, .5);
  cursor: default;
}

.si-btn.own {
  background: #33336e;
  color: #8f8fc4;
  cursor: default;
}

.shop-empty {
  text-align: center;
  padding: 36px 12px;
  border: 3px dashed #33336e;
  border-radius: 16px;
  background: rgba(13, 13, 43, .4);
}

.shop-empty .se-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.shop-empty .se-text {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .5);
}

.shop-empty .se-sub {
  margin-top: 8px;
  font-size: 12px;
  color: #8f8fc4;
  letter-spacing: 1px;
  line-height: 1.7;
}

/* ===== 我的标签弹窗：已解锁可切换，未解锁灰色 ===== */
.tag-panel {
  max-width: 500px;
}

.tag-tip2 {
  font-size: 11px;
  color: #6a6a9a;
  letter-spacing: 1px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.tag-grid {
  flex: 1;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  padding: 8px;
}

.tag-cell {
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: #14143c;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 0 #0d0d2b;
  transition: transform .1s, box-shadow .1s, filter .15s;
}

.tag-cell:hover {
  filter: brightness(1.2);
}

.tag-cell:active {
  transform: translateY(2px);
}

.tag-cell.locked {
  cursor: pointer;
  filter: grayscale(.6);
  opacity: .8;
  box-shadow: none;
}

.tag-cell.locked:hover {
  filter: grayscale(.15);
  opacity: 1;
  box-shadow: 0 0 12px var(--tag-c, #42e2f5);
}

.tag-cell.using {
  box-shadow: 0 0 0 3px var(--tag-c, #42e2f5), 0 0 14px var(--tag-c, #42e2f5);
  transform: translateY(-2px);
}

.tag-cell .t-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--tag-c, #42e2f5);
  text-shadow: 0 0 8px var(--tag-c, #42e2f5);
}

.tag-cell.locked .t-name {
  color: #8f8fc4;
  text-shadow: none;
}

.tag-cell .t-price {
  margin-top: 6px;
  font-size: 11px;
  color: #6a6a9a;
}

.tag-cell.locked .t-price {
  color: #ffe66d;
  font-weight: 700;
}

.tag-cell .t-mark {
  font-size: 10px;
  margin-top: 3px;
  color: #7bf1a8;
  letter-spacing: 1px;
}

/* ===== 个性标签编辑弹窗 ===== */
.tag-panel {
  max-width: 500px;
}

.tag-input {
  flex: 1;
  min-width: 0;
  background: #10102e;
  color: #e8e8ff;
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  letter-spacing: 2px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5);
}

.tag-input:focus {
  outline: none;
  border-color: #42e2f5;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, .5), 0 0 10px rgba(66, 226, 245, .4);
}

.tag-err {
  font-size: 12px;
  color: #ff6b6b;
  min-height: 16px;
  margin-bottom: 8px;
  text-shadow: 0 0 8px rgba(255, 107, 107, .5);
}

.tag-save {
  width: 100%;
}

.tag-sec-title {
  font-size: 12px;
  letter-spacing: 2px;
  color: #ff6ec7;
  text-shadow: 0 0 8px rgba(255, 110, 199, .6);
  margin-bottom: 8px;
}

.tag-divider {
  border-top: 3px dashed #33336e;
  margin: 14px 0;
}

.pwd-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

/* ===== 排行榜闪烁边框（lborder flash 款动效） ===== */
.lb-flash-rgb {
  animation: lbFlashRgb 1.2s ease-in-out infinite;
}

@keyframes lbFlashRgb {

  0%,
  100% {
    box-shadow: 0 0 0 2px #ff6ec7, 0 0 12px #ff6ec7;
  }

  33% {
    box-shadow: 0 0 0 2px #42e2f5, 0 0 12px #42e2f5;
  }

  66% {
    box-shadow: 0 0 0 2px #ffe66d, 0 0 12px #ffe66d;
  }
}

.lb-flash-alarm {
  animation: lbFlashAlarm .6s steps(2, start) infinite;
}

@keyframes lbFlashAlarm {
  to {
    box-shadow: 0 0 0 3px #42e2f5, 0 0 14px #42e2f5;
  }
}

/* 矩阵代码框：绿色代码流光（lborder-matrix） */
.lb-flash-matrix {
  animation: lbFlashMatrix 1.6s ease-in-out infinite;
}

@keyframes lbFlashMatrix {

  0%,
  100% {
    box-shadow: 0 0 0 2px #33ff66, 0 0 10px rgba(51, 255, 102, .8);
  }

  50% {
    box-shadow: 0 0 0 2px #0f8a3c, 0 0 16px rgba(51, 255, 102, .5);
  }
}

/* ===== 幸运大转盘：顶栏入口按钮（钱库商店右侧） ===== */
.wheel-entry {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 2px solid #ff6ec7;
  border-radius: 999px;
  background: rgba(255, 110, 199, .12);
  color: #ff6ec7;
  font-size: 12px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 1px;
  padding: 4px 10px;
  cursor: pointer;
  text-shadow: 0 0 6px rgba(255, 110, 199, .7);
  box-shadow: 0 0 10px rgba(255, 110, 199, .3), inset 0 0 8px rgba(255, 110, 199, .15);
  transition: filter .15s, transform .06s;
  white-space: nowrap;
}

.wheel-entry svg {
  width: 14px;
  height: 14px;
}

.wheel-entry:hover {
  filter: brightness(1.3);
  animation: wheelBreath 1.4s ease-in-out infinite;
}

.wheel-entry:active {
  transform: translateY(1px);
}

@keyframes wheelBreath {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 110, 199, .3), inset 0 0 8px rgba(255, 110, 199, .15);
  }

  50% {
    box-shadow: 0 0 18px rgba(255, 110, 199, .75), inset 0 0 12px rgba(255, 110, 199, .35);
  }
}

/* ===== 幸运大转盘弹窗 ===== */
.wheel-panel {
  max-width: 460px;
}

.wheel-stage {
  display: flex;
  justify-content: center;
  padding: 6px 0 2px;
}

.wheel-box.big {
  width: 300px;
  height: 300px;
}

.wheel-box.big canvas {
  width: 300px;
  height: 300px;
}

.wheel-ticket-num {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffe66d;
  text-shadow: 0 0 8px rgba(255, 230, 109, .6);
  margin: 10px 0 8px;
}

.wheel-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
}

.wheel-go {
  flex: 0 0 auto;
  min-width: 120px;
}

.wheel-go:disabled {
  filter: grayscale(.7) brightness(.75);
  cursor: not-allowed;
  transform: none;
}

.wheel-go.ten {
  background: linear-gradient(135deg, #ff9ad5 0%, #ff6ec7 45%, #a06cd5 100%);
  color: #fff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .22), inset 3px 3px 0 rgba(255, 255, 255, .3), 0 4px 0 #7a2a5e, 0 0 16px rgba(255, 110, 199, .55);
}

.wheel-tip {
  font-size: 11px;
  color: #6a6a9a;
  letter-spacing: 1px;
  line-height: 1.6;
  text-align: center;
}

.wheel-tip.buy-hint b {
  color: #ffe66d;
}

.wheel-tip a {
  color: #42e2f5;
  text-decoration: underline;
}

/* ===== 十连中奖卡片：上 5 下 5，金额档位边框色 ===== */
.result-panel {
  max-width: 560px;
}

.rc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.rc-card {
  position: relative;
  border: 3px solid #fff;
  border-radius: 12px;
  background: #14143c;
  padding: 12px 4px 10px;
  text-align: center;
  animation: rcPop .45s cubic-bezier(.2, 1.4, .4, 1) backwards;
}

@keyframes rcPop {
  from {
    opacity: 0;
    transform: scale(.4) rotate(-8deg);
  }

  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

.rc-card .rc-no {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #0d0d2b;
  background: #8a93b8;
  border-radius: 999px;
  padding: 1px 7px;
}

.rc-card .rc-amt {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
}

.rc-card .rc-label {
  margin-top: 3px;
  font-size: 10px;
  letter-spacing: 1px;
  color: #8f8fc4;
}

/* 100 = 金色闪光边框 */
.rc-card.g {
  border-color: #ffd700;
  box-shadow: 0 0 12px rgba(255, 215, 0, .65), inset 0 0 10px rgba(255, 215, 0, .3);
  animation:
    rcPop .45s cubic-bezier(.2, 1.4, .4, 1) backwards,
    rcGoldShine 1.1s ease-in-out .5s infinite;
}

.rc-card.g .rc-amt {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, .8);
}

.rc-card.g .rc-no {
  background: #ffd700;
}

.rc-card.g .rc-label {
  color: #ffd700;
}

@keyframes rcGoldShine {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 215, 0, .5), inset 0 0 8px rgba(255, 215, 0, .25);
  }

  50% {
    box-shadow: 0 0 22px rgba(255, 215, 0, .95), 0 0 34px rgba(255, 215, 0, .5), inset 0 0 14px rgba(255, 215, 0, .45);
  }
}

/* 50 = 紫色边框 */
.rc-card.p {
  border-color: #a06cd5;
  box-shadow: 0 0 12px rgba(160, 108, 213, .55);
}

.rc-card.p .rc-amt {
  color: #c9a8ff;
  text-shadow: 0 0 8px rgba(160, 108, 213, .8);
}

.rc-card.p .rc-no {
  background: #a06cd5;
}

/* 30 = 蓝色边框 */
.rc-card.b {
  border-color: #42a8f5;
  box-shadow: 0 0 10px rgba(66, 168, 245, .5);
}

.rc-card.b .rc-amt {
  color: #7bc8ff;
  text-shadow: 0 0 8px rgba(66, 168, 245, .8);
}

.rc-card.b .rc-no {
  background: #42a8f5;
}

/* 20 = 绿色边框 */
.rc-card.v {
  border-color: #7bf1a8;
  box-shadow: 0 0 10px rgba(123, 241, 168, .45);
}

.rc-card.v .rc-amt {
  color: #7bf1a8;
  text-shadow: 0 0 8px rgba(123, 241, 168, .7);
}

.rc-card.v .rc-no {
  background: #7bf1a8;
}

/* 10 = 白色边框（默认） */
.rc-card.w .rc-amt {
  color: #f0f3fa;
}

.rc-total {
  text-align: center;
  font-size: 14px;
  letter-spacing: 1px;
  color: #e8e8ff;
  margin-bottom: 12px;
}

.rc-total b {
  color: #ffe66d;
  font-size: 18px;
  text-shadow: 0 0 10px rgba(255, 230, 109, .6);
}

#btnResultOk {
  display: block;
  margin: 0 auto;
  min-width: 160px;
}

/* 手机：十连卡片 2 行错落（仍上5下5语义，卡片变小） */
@media (max-width: 640px) {
  .rc-grid {
    gap: 6px;
  }

  .rc-card {
    padding: 8px 2px 7px;
  }

  .rc-card .rc-amt {
    font-size: 15px;
  }

  .rc-card .rc-no {
    font-size: 9px;
    padding: 0 5px;
  }

  .wheel-box.big,
  .wheel-box.big canvas {
    width: 240px;
    height: 240px;
  }
}

/* 商店转盘券商品图标 */
.si-ico {
  font-size: 20px;
  line-height: 1;
}

/* ===== 每日任务：5 节点进度条 ===== */
.dt-track-wrap {
  padding: 8px 6px 0;
}

.dt-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(13, 13, 43, .8);
  border: 2px solid #33336e;
  margin: 0 40px 52px;
}

.dt-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #42e2f5, #7bf1a8, #ffe66d);
  box-shadow: 0 0 10px rgba(123, 241, 168, .55);
  transition: width .5s cubic-bezier(.3, 1.2, .4, 1);
}

.dt-nodes {
  position: absolute;
  inset: 0;
}

.dt-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  text-align: center;
  width: 68px;
  z-index: 2;
}

.dt-dot {
  width: 26px;
  height: 26px;
  margin-top: -7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 3px solid #33336e;
  background: #14143c;
  color: #6a6a9a;
  font-size: 12px;
  font-weight: 700;
  transition: all .3s;
  position: relative;
  z-index: 3;
}

.dt-node.done .dt-dot {
  background: linear-gradient(135deg, #ffe66d, #f2a04c);
  border-color: #fff3b0;
  color: #5a3000;
  box-shadow: 0 0 12px rgba(255, 230, 109, .7);
}

.dt-node.claimed .dt-dot {
  background: #2ecc71;
  border-color: #7bf1a8;
  color: #0d2b16;
  box-shadow: none;
}

.dt-claim {
  margin-top: 5px;
  display: inline-block;
  border: 2px solid #ffe66d;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe66d, #f5a623);
  color: #5a3000;
  font-size: 10px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0;
  padding: 2px 6px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 0 #7a4a00;
  transition: filter .15s, transform .06s;
}

.dt-node .dt-claim {
  position: relative;
  z-index: 4;
  box-shadow: 0 2px 0 #7a4a00, 0 0 0 3px rgba(13, 13, 43, .85);
}

.dt-claim:hover {
  filter: brightness(1.15);
}

.dt-claim:active {
  transform: translateY(1px);
}

.dt-claim:disabled {
  filter: grayscale(.6) brightness(.8);
  cursor: wait;
}

.dt-claim.claimed {
  border-color: #33336e;
  background: #1b1b4d;
  color: #6a6a9a;
  box-shadow: none;
  cursor: default;
}

.dt-claim.ghost {
  border-color: #33336e;
  background: rgba(13, 13, 43, .5);
  color: #4a4a7a;
  box-shadow: none;
  cursor: default;
}

.ck-tasks-tip {
  font-size: 11px;
  color: #8f8fc4;
  letter-spacing: 1px;
  line-height: 1.7;
  margin-top: 10px;
}

.ck-tasks-tip b {
  color: #ffe66d;
}

.dt-plays {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.dt-play-chip {
  font-size: 10px;
  letter-spacing: .5px;
  color: #7bf1a8;
  border: 1px solid rgba(123, 241, 168, .4);
  background: rgba(123, 241, 168, .08);
  border-radius: 999px;
  padding: 2px 8px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 手机：节点标签收紧 */
@media (max-width: 640px) {
  .dt-track {
    margin: 0 32px 48px;
  }

  .dt-node {
    width: 52px;
  }

  .dt-dot {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .dt-claim {
    font-size: 9px;
    padding: 2px 4px;
  }
}

/* ===== 鼠标点击粒子 ===== */
.particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particleFly .65s ease-out forwards;
}

@keyframes particleFly {
  from {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) scale(.3);
  }
}

/* ===== 响应式 ===== */
@media (max-width: 640px) {
  body {
    background-image:
      radial-gradient(circle at 15% 10%, rgba(255, 110, 199, .15) 0, transparent 30%),
      radial-gradient(circle at 85% 90%, rgba(66, 226, 245, .13) 0, transparent 32%),
      radial-gradient(circle at 90% 12%, rgba(255, 230, 109, .09) 0, transparent 26%),
      linear-gradient(180deg, #10102e 0%, #1b1b4d 55%, #241a4d 100%);
  }

  .stars,
  .stars2 {
    display: block;
  }

  header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 17px;
    letter-spacing: 3px;
  }

  .brand span {
    display: block;
    margin: 4px 0 0;
  }

  main {
    padding: 20px 14px 44px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card {
    flex-direction: column;
    gap: 14px;
  }

  .card-left {
    flex: none;
  }

  .card-right {
    border-left: none;
    border-top: 3px dashed #33336e;
    padding-left: 0;
    padding-top: 14px;
  }

  .detail {
    flex-direction: column;
    gap: 14px;
    padding: 16px;
  }

  .detail-cover {
    flex: 0 0 auto;
    height: 180px;
    min-height: 0;
  }

  .detail-cover .cover {
    flex: 1;
    min-height: 0;
  }

  .detail-info {
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .detail .gname {
    font-size: 19px;
  }

  .cabinet {
    padding: 10px;
  }

  .screen-body {
    padding: 12px;
  }

  .deck {
    padding: 8px 14px 10px;
    gap: 12px;
    margin-top: 10px;
  }

  .joy {
    transform: scale(.68);
    transform-origin: bottom left;
    margin-right: -22px;
  }

  .deck-copy {
    display: none;
  }

  .coinslot {
    width: 26px;
    height: 40px;
  }

  .ybtns {
    gap: 10px;
    padding-bottom: 4px;
  }

  .ybtn {
    width: 34px;
    height: 34px;
    font-size: 12px;
    box-shadow: 0 4px 0 #8a6508, 0 6px 8px rgba(0, 0, 0, .5);
  }

  .gba-deck {
    gap: 18px;
  }

  .gba-dpad {
    width: 60px;
    height: 60px;
  }

  .gba-dpad::before {
    width: 20px;
    height: 60px;
  }

  .gba-dpad::after {
    width: 60px;
    height: 20px;
  }

  .gba-dpad-dot {
    width: 20px;
    height: 20px;
  }

  .gba-a,
  .gba-b {
    width: 28px;
    height: 28px;
  }

  .thumbs-wrap {
    gap: 8px;
  }

  .thumb {
    width: 74px;
  }

  .thumb-arrow {
    width: 34px;
    height: 48px;
    font-size: 15px;
  }

  .hall-nav {
    gap: 8px;
    /* 手机上玩法导航整行后置（布局顺序：品牌+用户区一行，导航第二行） */
    order: 3;
    flex-basis: 100%;
    /* 管理员账号下「管理后台」菜单独占下一行（body.adm-account，见 #adminNavCell 规则） */
    flex-wrap: wrap;
  }

  .nav-btn.nav-hall {
    min-width: 0;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
  }

  /* 手机端：几个一级入口（芦浦游戏厅 / 龙港棋牌室 / 管理后台）等宽平分整行。
     原来是 .nav-hall 撑满整行、.hall-nav-cell 只占内容宽（~90px），管理员看到的就是
     「一个很宽一个很窄、右边还空一截」，不整齐。这里让两者都 flex:1 平分整行 ——
     非管理员时 adminNavCell 是 display:none，.nav-hall 自然独占整行，不受影响。
     （特异性 0,2,0 高于下面那条 .nav-btn{flex:0 0 auto;min-width:92px}，不会被覆盖） */
  .nav-btn.nav-hall,
  .hall-nav-cell {
    /* flex: 1 1 0; */
    /* min-width: 0; */
    width: calc(50% - 4px);
  }

  /* 按钮填满自己那一份，文案居中；不改的话 inline-flex 会按内容宽收缩，还是不等宽 */
  .nav-btn.nav-admin,
  .nav-btn.nav-card {
    width: 100%;
    justify-content: center;
  }

  /* 芦浦游戏厅 / 龙港棋牌室 两个一级菜单严格等宽：ID 级特异性写死，防被
     .nav-btn 全局规则（flex:0 0 auto / min-width:92px / 12px 字号）干扰成一大一小 */
  .hall-nav>.nav-btn.nav-hall,
  .hall-nav>.hall-nav-cell {
    /* flex: 1 1 0; */
    /* min-width: 0; */
    width: calc(50% - 4px);
  }

  .hall-nav>#cardNavCell>#btnCardMenu {
    width: 100%;
    min-width: 0;
    /* 与 .nav-btn.nav-hall 同尺寸（padding / 字号对齐，高度一致） */
    padding: 8px 14px;
    font-size: 13px;
  }

  .hall-nav-drop {
    /* 手机上面板仍向下展开，宽度贴齐导航列 */
    left: 0;
    right: 0;
    min-width: 0;
    /* 高度按内容自适应：上限由 hall.js 实测写入 max-height（不超视口底、不遮挡一级按钮），
       超出时内部滚动；菜单项 flex:none 不被压缩 —— 见下面 flex-shrink:0 */
    height: auto;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hall-nav-drop .nav-btn.hnd-item {
    flex: none;
    /* 关键：按钮按本体内边距渲染，不被压缩；超出 80vh 的部分交给滚动条 */
  }

  /* 「管理后台」面板必须单独救回来：上面那条 min-width:0 是为「芦浦游戏厅」铺满导航列准备的，
     但 .admin-drop（桌面端 min-width:214px）特异性相同、位置更靠前，会被它整个覆盖掉 ——
     于是面板宽度变成按钮宽度（手机上 ~90px），扣掉 18px 图标 + 内边距 + 边框后文字全被挤没，
     表现就是屏幕右侧竖着一条只有图标的窄条（管理员才有这个菜单，所以只有管理员能看到）。
     这里用双类提高特异性，保证一定生效：仍贴按钮右缘向左展开，并给个最小宽度。 */
  .hall-nav-drop.admin-drop {
    left: auto;
    right: 0;
    width: 100%;
    /* min-width: 214px; */
    /* max-width: calc(100vw - 24px); */
  }

  /* 管理员手机端：「管理后台」一级菜单独占下一行（芦浦游戏厅 + 龙港棋牌室 一行，不再三挤一行） */
  body.adm-account #adminNavCell {
    flex: 1 1 100%;
  }

  .nav-btn {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 7px 12px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .user-box {
    gap: 5px;
    font-size: 12px;
    /* 手机上一行横滑，禁止换行把 header 顶高 */
    flex-wrap: nowrap;
    justify-content: flex-end;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
  }

  .user-box::-webkit-scrollbar {
    display: none;
  }

  /* 手机端：在线人数紧凑徽章常显（点击弹出在线玩家名单），商店/BGM 文字标签隐藏，只留图标化胶囊 */
  .online-num {
    display: inline-flex;
    padding: 3px 8px;
    font-size: 10.5px;
    letter-spacing: 0;
    gap: 3px;
  }

  .coin-balance .cb-label,
  .music-btn .mb-label,
  .board-btn .bb-label {
    display: none;
  }

  /* 手机端：玩家名字保留展示（超长省略号），个性标签胶囊收纳进「⋮ 更多」菜单（修改密码 / 我的标签） */
  .user-box .name {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .user-box .utag {
    display: none;
  }

  /* 手机下头像缩小，点击打开弹窗（无悬停） */
  .avatar-hover-wrap .user-avatar {
    width: 30px;
    height: 30px;
  }

  .coin-balance {
    font-size: 11px;
    padding: 3px 8px;
  }

  .pixel-btn {
    padding: 7px 10px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .board-mask {
    padding: 10px;
  }

  .board-panel {
    max-height: 92vh;
    padding: 12px;
    border-radius: 14px;
  }

  .board-title {
    flex: 1;
    /* 手机下副标题隐藏，标题撑满，让关闭按钮顶到右上方 */
    font-size: 15px;
    letter-spacing: 2px;
  }

  .board-sub {
    display: none;
  }

  .board-close {
    width: 30px;
    height: 30px;
  }

  .board-form {
    gap: 8px;
  }

  .board-input {
    height: 58px;
    font-size: 12px;
  }

  .board-send {
    padding: 9px 12px;
    font-size: 12px;
  }

  .board-list {
    min-height: 180px;
  }

  .msg-content {
    font-size: 12px;
  }
}

/* ===== 用户头像（F1）：全站名字旁显示，内联 SVG 免请求 ===== */
.uavatar-box {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  vertical-align: middle
}

.u-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  background: rgba(13, 13, 43, .45);
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(66, 226, 245, .25)
}

.u-avatar svg {
  width: 100%;
  height: 100%;
  display: block
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px
}

/* ===== 头像交互（与「我的标签」一致）：悬停弹选择面板，点击打开「我的头像」弹窗 ===== */
.avatar-hover-wrap {
  cursor: pointer;
  transition: filter .15s, transform .06s;
  position: relative
}

.avatar-hover-wrap:hover {
  filter: brightness(1.25) drop-shadow(0 0 6px rgba(66, 226, 245, .55))
}

.avatar-hover-wrap:active {
  transform: translateY(1px)
}

/* 悬停面板：头像行（复用 bh-item 结构，左侧头像+名字，右侧按钮） */
.ah-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 6px
}

.ah-item.using {
  border-color: rgba(123, 241, 168, .5);
  background: rgba(123, 241, 168, .08)
}

.ah-item .u-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex: 0 0 auto
}

.ah-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #e8e8ff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.ah-btn {
  flex: 0 0 auto;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit
}

.ah-btn.buy {
  background: linear-gradient(135deg, #ffe66d, #f5a623);
  color: #5a3000
}

.ah-btn.use {
  background: linear-gradient(135deg, #7bf1a8, #2ecc71);
  color: #0d2b16
}

.ah-using {
  flex: 0 0 auto;
  font-size: 11px;
  color: #7bf1a8
}

/* 我的头像弹窗：头像网格（已购高亮可切换，未购置灰可购买） */
.avatar-grid {
  flex: 1;
  min-height: 0;
  max-height: 60vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  padding: 8px
}

.avatar-cell {
  border: 3px solid #0d0d2b;
  border-radius: 10px;
  background: #14143c;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 3px 0 #0d0d2b;
  transition: transform .1s, box-shadow .1s, filter .15s
}

.avatar-cell:hover {
  filter: brightness(1.2)
}

.avatar-cell:active {
  transform: translateY(2px)
}

.avatar-cell .u-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin: 0 auto 6px;
  box-shadow: 0 0 10px var(--av-c, #42e2f5)
}

.avatar-cell .a-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--av-c, #42e2f5);
  text-shadow: 0 0 6px var(--av-c, #42e2f5)
}

.avatar-cell .a-mark {
  font-size: 10px;
  margin-top: 3px;
  color: #7bf1a8;
  letter-spacing: 1px
}

.avatar-cell .a-price {
  margin-top: 6px;
  font-size: 11px;
  color: #6a6a9a
}

.avatar-cell.locked {
  cursor: pointer;
  filter: grayscale(.6);
  opacity: .8;
  box-shadow: none
}

.avatar-cell.locked .u-avatar {
  box-shadow: none
}

.avatar-cell.locked .a-name {
  color: #8f8fc4;
  text-shadow: none
}

.avatar-cell.locked .a-price {
  color: #ffe66d;
  font-weight: 700
}

.avatar-cell.locked:hover {
  filter: grayscale(.15);
  opacity: 1;
  box-shadow: 0 0 12px var(--av-c, #42e2f5)
}

.avatar-cell.using {
  box-shadow: 0 0 0 3px var(--av-c, #42e2f5), 0 0 14px var(--av-c, #42e2f5);
  transform: translateY(-2px)
}

.lb-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  margin-right: 6px;
  vertical-align: middle
}

.msg-avatar {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  margin-right: 8px;
  vertical-align: middle
}

.horn-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  margin-right: 6px
}

/* ===== 成就系统（F2）：弹窗复用 board-mask/board-panel 基础样式 ===== */
.pixel-btn.ach-btn {
  margin-left: 8px
}

.ach-panel {
  width: min(560px, 94vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column
}

.ach-stats {
  padding: 10px 18px 6px;
  font-size: 13px;
  color: #8a93b8
}

.ach-groups {
  overflow-y: auto;
  padding: 4px 18px 18px
}

.ach-group-title {
  margin: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #3ee6d8;
  letter-spacing: 1px
}

.ach-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #252c4d;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(13, 13, 43, .45);
  opacity: .62
}

.ach-item.done {
  opacity: 1;
  border-color: rgba(255, 209, 102, .4);
  box-shadow: 0 0 10px rgba(255, 209, 102, .12);
  background: rgba(255, 209, 102, .05)
}

.ach-icon {
  font-size: 24px;
  line-height: 1.2;
  flex: none;
  width: 34px;
  text-align: center
}

.ach-body {
  flex: 1;
  min-width: 0
}

.ach-name {
  font-size: 14px;
  font-weight: 600
}

.ach-lock {
  font-style: normal;
  font-size: 11px;
  color: #8a93b8;
  font-weight: 400;
  margin-left: 4px
}

.ach-desc {
  font-size: 12px;
  color: #8a93b8;
  margin-top: 2px
}

.ach-date {
  font-size: 12px;
  color: #ffd166;
  margin-top: 4px
}

.ach-prog {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px
}

.ach-prog-bar {
  flex: 1;
  height: 6px;
  border-radius: 4px;
  background: #1a2040;
  overflow: hidden
}

.ach-prog-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3ee6d8, #ff5c9d);
  transition: width .3s
}

.ach-prog-num {
  font-size: 11px;
  color: #8a93b8;
  flex: none
}

.ach-empty {
  padding: 30px 0;
  text-align: center;
  color: #8a93b8;
  font-size: 13px
}

/* ===== 最近在玩小浮窗（F3）：左下角，避开右下桌宠与底部喇叭条 ===== */
#recentWidget {
  position: fixed;
  left: 16px;
  bottom: 64px;
  z-index: 2100;
  width: 210px;
  background: rgba(13, 13, 43, .82);
  border: 1px solid #252c4d;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  overflow: hidden
}

#recentWidget .rw-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 12px;
  background: none;
  border: 0;
  color: #e6e9f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer
}

#recentWidget .rw-ico {
  font-size: 15px
}

#recentWidget.collapsed .rw-list {
  display: none
}

#recentWidget .rw-list {
  display: flex;
  flex-direction: column;
  padding: 2px 6px 8px
}

.rw-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px;
  border: 0;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  width: 100%
}

.rw-item:hover {
  background: rgba(66, 226, 245, .1)
}

.rw-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: rgba(66, 226, 245, .12);
  display: flex;
  align-items: center;
  justify-content: center
}

.rw-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.rw-ph {
  font-size: 15px;
  font-weight: 700;
  color: #3ee6d8
}

.rw-info {
  display: flex;
  flex-direction: column;
  min-width: 0
}

.rw-name {
  font-size: 12.5px;
  color: #e6e9f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.rw-time {
  font-size: 10.5px;
  color: #8a93b8
}

@media (max-width:768px) {
  #recentWidget {
    width: 170px;
    left: 10px;
    bottom: 58px
  }
}

/* ===== F4 大厅筛选条 ===== */
.hall-filterbar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 4px;
  padding: 10px 12px;
  border: 1px solid rgba(66, 226, 245, .18);
  border-radius: 12px;
  background: rgba(13, 13, 43, .5)
}

.hall-filterbar .ht-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px
}

.hall-filterbar .ht-label {
  font-size: 11px;
  color: #8a93b8;
  letter-spacing: 2px;
  min-width: 34px
}

.ht-chip {
  padding: 3px 12px;
  font-size: 12px;
  color: #8a93b8;
  background: rgba(37, 44, 77, .6);
  border: 1px solid #252c4d;
  border-radius: 20px;
  cursor: pointer;
  transition: all .15s
}

.ht-chip:hover {
  color: #e6e9f5;
  border-color: rgba(66, 226, 245, .5)
}

.ht-chip.active {
  color: #0d0d2b;
  background: linear-gradient(90deg, #3ee6d8, #42e2f5);
  border-color: transparent;
  font-weight: 600
}

/* ===== 最近在玩浮窗改版：钟表图标 / 可拖动 / 折叠成钟表方块 ===== */
#recentWidget .rw-ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  color: #3ee6d8
}

#recentWidget .rw-ico svg {
  width: 100%;
  height: 100%;
  display: block
}

/* 折叠态：只显示一个正方形钟表方块 */
#recentWidget.collapsed {
  width: auto !important;
  cursor: grab
}

#recentWidget.collapsed:active {
  cursor: grabbing
}

#recentWidget.collapsed .rw-head {
  padding: 7px
}

#recentWidget.collapsed .rw-title {
  display: none
}

#recentWidget.collapsed .rw-ico {
  width: 20px;
  height: 20px
}

#recentWidget {
  user-select: none;
  touch-action: none
}

#recentWidget .rw-head {
  cursor: grab
}

#recentWidget .rw-head:active {
  cursor: grabbing
}

#recentWidget .rw-item {
  cursor: pointer;
  touch-action: auto
}

/* 旧折叠类 rw-hide 兼容清理（改用 collapsed） */

/* ===== 在线玩家浮窗（原「好友列表」改造）：全服在线玩家 + 正在玩的游戏，点条目直接进入 ===== */
#recentWidget {
  width: 232px
}

#recentWidget .rw-list {
  padding: 2px 8px 8px
}

/* 名单滚动区：人多时不撑高浮窗 */
#recentWidget .rw-scroll {
  max-height: 52vh;
  overflow-y: auto;
  overscroll-behavior: contain
}

#recentWidget .rw-count {
  flex: none;
  font-size: 11px;
  font-weight: 400;
  color: #8a93b8
}

#recentWidget.collapsed .rw-count {
  display: none
}

/* 搜索用户名加好友（好友系统唯一入口，保留） */
#recentWidget .rw-search {
  display: flex;
  gap: 6px;
  padding: 6px 0
}

#recentWidget .rw-search input {
  flex: 1;
  min-width: 0;
  padding: 5px 9px;
  font-size: 12px;
  color: inherit;
  background: rgba(127, 127, 127, .12);
  border: 1px solid rgba(127, 127, 127, .35);
  border-radius: 8px;
  outline: none;
  user-select: text;
  touch-action: auto
}

#recentWidget .rw-search input::placeholder {
  color: #8a93b8
}

#recentWidget .rw-search input:focus {
  border-color: #42e2f5
}

#recentWidget .rw-search .rw-find {
  flex: none;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #0d0d2b;
  background: linear-gradient(90deg, #3ee6d8, #42e2f5);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  touch-action: auto
}

#recentWidget .rw-sub {
  padding: 4px 0 2px
}

.rw-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 2px;
  border-radius: 8px
}

.rw-user:hover {
  background: rgba(66, 226, 245, .08)
}

.rw-user .rw-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%
}

.rw-user .rw-thumb .u-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: none;
  box-shadow: none
}

.rw-user .rw-info {
  flex: 1;
  min-width: 0
}

.rw-user a.rw-name {
  color: inherit;
  text-decoration: none
}

.rw-user a.rw-name:hover {
  color: #42e2f5
}

.rw-user {
  cursor: pointer;
  touch-action: auto
}

.rw-user .rw-nameline {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0
}

.rw-user .rw-nameline .rw-name {
  min-width: 0
}

.rw-user .rw-fr {
  flex: none;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  color: #0d2b16;
  background: #7bf1a8;
  border-radius: 6px;
  padding: 2px 5px
}

.rw-game {
  font-size: 10.5px;
  color: #ffd166;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%
}

.rw-go {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: #0d0d2b;
  background: linear-gradient(90deg, #3ee6d8, #42e2f5);
  border-radius: 9px;
  padding: 4px 9px
}

/* 好友申请行 + 申请/搜索结果里的操作按钮 */
.rw-req {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 2px
}

.rw-req .rw-info {
  flex: 1;
  min-width: 0
}

.rw-act {
  flex: none;
  padding: 3px 9px;
  font-size: 11px;
  border-radius: 8px;
  border: 1px solid rgba(66, 226, 245, .5);
  background: rgba(66, 226, 245, .1);
  color: #3ee6d8;
  cursor: pointer;
  touch-action: auto
}

.rw-act.ok {
  background: linear-gradient(90deg, #3ee6d8, #42e2f5);
  color: #0d0d2b;
  border-color: transparent;
  font-weight: 600
}

.rw-act.no {
  border-color: rgba(255, 92, 31, .5);
  background: rgba(255, 92, 31, .08);
  color: #ff5c1f
}

.rw-act:disabled {
  opacity: .5;
  cursor: default
}

/* 待处理申请红点：方框内右上角常显（折叠 / 展开都显示）；widget overflow:hidden 故用内定位不外溢 */
#recentWidget .rw-dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff3b3b;
  border: 2px solid rgba(13, 13, 43, .9);
  box-shadow: 0 0 6px rgba(255, 59, 59, .7);
  pointer-events: none;
  z-index: 2
}

/* 在线玩家醒目提示：行高亮 + 头像右下角发光绿点 + 右侧「在线」徽章 */
.rw-user.online {
  background: rgba(123, 241, 168, .09)
}

.rw-user.online:hover {
  background: rgba(123, 241, 168, .14)
}

.rw-user.online .rw-thumb {
  position: relative
}

.rw-user.online .rw-thumb::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #7bf1a8;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 0 7px rgba(123, 241, 168, .95);
}

/* 正在玩游戏的：行高亮偏金色（与「在线」区分），右侧显示「进入」 */
.rw-user.playing {
  background: rgba(255, 209, 102, .1)
}

.rw-user.playing:hover {
  background: rgba(255, 209, 102, .18)
}

.rw-online {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1;
  color: #0d2b16;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  border-radius: 9px;
  padding: 3px 8px;
}

@media (max-width:768px) {
  #recentWidget {
    width: 196px
  }
}

/* 好友列表标题右侧 ✕：点击收起（折叠态隐藏，折叠态点方块展开） */
#recentWidget .rw-x {
  margin-left: auto;
  flex: none;
  font-size: 13px;
  line-height: 1;
  color: #8a93b8;
  padding: 3px 6px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  touch-action: auto
}

#recentWidget .rw-x:hover {
  color: #ff6b6b;
  background: rgba(255, 92, 31, .14)
}

#recentWidget.collapsed .rw-x {
  display: none
}

/* ===== 手机：焦点(幻灯)详情整体可滚动，排行榜与开始挑战按钮不再被压缩遮挡 ===== */
@media (max-width: 640px) {
  .screen-body.slides {
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .carousel {
    min-height: 0;
  }

  .carousel>.detail {
    height: auto;
    min-height: 0;
  }

  .detail-info {
    overflow: visible;
  }

  /* 排行榜不再被 flex 压扁，完整展开随页面滚动 */
  .detail .lb-box {
    flex: none;
    overflow: visible;
    max-height: none;
  }
}

/* ===== 钱库商店：界面主题卡片 = 主题样式预览（卡片本体套主题皮肤） ===== */
.shop-item.si-theme {
  padding: 0;
  gap: 6px;
  overflow: hidden;
}

.si-theme .si-theme-prev {
  padding: 12px 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.si-theme .si-head,
.si-theme .si-desc,
.si-theme .si-foot {
  margin-left: 12px;
  margin-right: 12px;
}

.si-theme .si-head {
  margin-top: 4px;
}

.si-theme .si-desc {
  min-height: 0;
}

.si-theme .si-foot {
  margin-bottom: 12px;
}

/* 预览顶栏：模拟主题的 header */
.si-theme .si-bar {
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
}

.si-theme .si-bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
}

/* 预览按钮组：模拟主题的按钮 */
.si-theme .si-chips {
  display: flex;
  gap: 6px;
}

.si-theme .si-chips b {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
}

/* 像素街机（默认主题）预览：霓虹深底 */
.shop-item.si-theme.theme-pixel .si-bar {
  background: #0d0d2b;
  border: 2px solid #42e2f5;
  color: #ffe66d;
  box-shadow: 0 0 8px rgba(66, 226, 245, .4);
}

.shop-item.si-theme.theme-pixel .si-bar .d1 {
  background: #ff6ec7;
}

.shop-item.si-theme.theme-pixel .si-bar .d2 {
  background: #42e2f5;
}

.shop-item.si-theme.theme-pixel .si-bar .d3 {
  background: #ffe66d;
}

.shop-item.si-theme.theme-pixel .si-chips .c1 {
  background: linear-gradient(180deg, #7bf1a8, #2ecc71);
  color: #0d2b16;
}

.shop-item.si-theme.theme-pixel .si-chips .c2 {
  background: linear-gradient(180deg, #ff6ec7, #d645a8);
  color: #fff;
}

.shop-item.si-theme.theme-pixel .si-chips .c3 {
  background: linear-gradient(180deg, #ffd76e, #f39c12);
  color: #5a3000;
}

/* —— 手绘涂鸦主题预览 —— */
.shop-item.si-theme.theme-doodle {
  background: var(--dz-paper-2);
  border-color: var(--dz-ink);
  border-radius: var(--dz-radius);
  box-shadow: 0 3px 0 var(--dz-ink);
  font-family: var(--dz-font);
}

.shop-item.si-theme.theme-doodle .si-name {
  color: var(--dz-red-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-doodle .si-desc {
  color: var(--dz-ink-soft);
}

.shop-item.si-theme.theme-doodle .si-price {
  color: var(--dz-yellow-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-doodle .si-bar {
  background: var(--dz-paper-3);
  border: 2px solid var(--dz-ink);
  color: var(--dz-red-deep);
  border-radius: var(--dz-radius);
}

.shop-item.si-theme.theme-doodle .si-bar .d1 {
  background: var(--dz-red);
}

.shop-item.si-theme.theme-doodle .si-bar .d2 {
  background: var(--dz-blue);
}

.shop-item.si-theme.theme-doodle .si-bar .d3 {
  background: var(--dz-yellow);
}

.shop-item.si-theme.theme-doodle .si-chips b {
  border: 2px solid var(--dz-ink);
  border-radius: var(--dz-radius);
}

.shop-item.si-theme.theme-doodle .si-chips .c1 {
  background: var(--dz-green-pale);
  color: var(--dz-green-deep);
}

.shop-item.si-theme.theme-doodle .si-chips .c2 {
  background: var(--dz-pink-pale);
  color: var(--dz-pink-deep);
}

.shop-item.si-theme.theme-doodle .si-chips .c3 {
  background: var(--dz-yellow);
  color: var(--dz-yellow-deep);
}

/* —— Y2K 千禧主题预览 —— */
.shop-item.si-theme.theme-y2k {
  background: var(--y2k-metal);
  border-color: var(--y2k-silver);
  border-radius: var(--y2k-radius-lg);
  box-shadow: 0 3px 0 var(--y2k-silver-deep);
  font-family: var(--y2k-font);
}

.shop-item.si-theme.theme-y2k .si-name {
  color: var(--y2k-pink-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-y2k .si-desc {
  color: var(--y2k-ink-soft);
}

.shop-item.si-theme.theme-y2k .si-price {
  color: var(--y2k-purple-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-y2k .si-bar {
  background: var(--y2k-holo);
  color: #fff;
  border-radius: var(--y2k-radius-lg);
}

.shop-item.si-theme.theme-y2k .si-bar .d1 {
  background: var(--y2k-yellow);
}

.shop-item.si-theme.theme-y2k .si-bar .d2 {
  background: var(--y2k-blue);
}

.shop-item.si-theme.theme-y2k .si-bar .d3 {
  background: #fff;
}

.shop-item.si-theme.theme-y2k .si-chips b {
  border-radius: var(--y2k-radius);
}

.shop-item.si-theme.theme-y2k .si-chips .c1 {
  background: var(--y2k-holo);
  color: #fff;
}

.shop-item.si-theme.theme-y2k .si-chips .c2 {
  background: var(--y2k-pink-pale);
  color: var(--y2k-pink-deep);
  border: 1px solid var(--y2k-silver);
}

.shop-item.si-theme.theme-y2k .si-chips .c3 {
  background: var(--y2k-blue-pale);
  color: var(--y2k-blue-deep);
  border: 1px solid var(--y2k-silver);
}

/* —— 玻璃拟物主题预览 —— */
.shop-item.si-theme.theme-glass {
  background: var(--gl-glass-deep);
  border-color: var(--gl-border);
  border-radius: var(--gl-radius-lg);
  box-shadow: var(--gl-shadow), var(--gl-inset);
  font-family: var(--gl-font);
}

.shop-item.si-theme.theme-glass .si-name {
  color: var(--gl-text);
  text-shadow: none;
}

.shop-item.si-theme.theme-glass .si-desc {
  color: var(--gl-text-soft);
}

.shop-item.si-theme.theme-glass .si-price {
  color: var(--gl-yellow);
  text-shadow: none;
}

.shop-item.si-theme.theme-glass .si-bar {
  background: var(--gl-glass);
  border: 1px solid var(--gl-border);
  color: var(--gl-blue-deep);
  border-radius: var(--gl-radius);
}

.shop-item.si-theme.theme-glass .si-bar .d1 {
  background: var(--gl-pink);
}

.shop-item.si-theme.theme-glass .si-bar .d2 {
  background: var(--gl-blue);
}

.shop-item.si-theme.theme-glass .si-bar .d3 {
  background: var(--gl-green);
}

.shop-item.si-theme.theme-glass .si-chips b {
  border-radius: var(--gl-radius);
}

.shop-item.si-theme.theme-glass .si-chips .c1 {
  background: var(--gl-green);
  color: #0c2b1c;
}

.shop-item.si-theme.theme-glass .si-chips .c2 {
  background: var(--gl-glass-strong);
  color: var(--gl-text);
  border: 1px solid var(--gl-border);
}

.shop-item.si-theme.theme-glass .si-chips .c3 {
  background: var(--gl-blue);
  color: #06283d;
}

/* —— 黑客终端主题预览 —— */
.shop-item.si-theme.theme-hacker {
  background: var(--hk-metal);
  border-color: var(--hk-silver);
  border-radius: var(--hk-radius-lg);
  box-shadow: 0 0 10px rgba(51, 255, 102, .15);
  font-family: var(--hk-font);
}

.shop-item.si-theme.theme-hacker .si-name {
  color: var(--hk-pink);
  text-shadow: 0 0 6px rgba(51, 255, 102, .5);
}

.shop-item.si-theme.theme-hacker .si-desc {
  color: var(--hk-ink-soft);
}

.shop-item.si-theme.theme-hacker .si-price {
  color: var(--hk-yellow);
  text-shadow: none;
}

.shop-item.si-theme.theme-hacker .si-bar {
  background: #0a140d;
  border: 1px solid var(--hk-silver);
  color: var(--hk-pink);
  border-radius: var(--hk-radius);
  box-shadow: 0 0 8px rgba(51, 255, 102, .2);
}

.shop-item.si-theme.theme-hacker .si-bar .d1 {
  background: var(--hk-pink);
}

.shop-item.si-theme.theme-hacker .si-bar .d2 {
  background: var(--hk-purple);
}

.shop-item.si-theme.theme-hacker .si-bar .d3 {
  background: var(--hk-blue);
}

.shop-item.si-theme.theme-hacker .si-chips b {
  border-radius: var(--hk-radius);
}

.shop-item.si-theme.theme-hacker .si-chips .c1 {
  background: var(--hk-pink-pale);
  color: var(--hk-pink);
  border: 1px solid var(--hk-pink-deep);
}

.shop-item.si-theme.theme-hacker .si-chips .c2 {
  background: var(--hk-purple-pale);
  color: var(--hk-purple);
  border: 1px solid var(--hk-silver);
}

.shop-item.si-theme.theme-hacker .si-chips .c3 {
  background: var(--hk-blue-pale);
  color: var(--hk-blue);
  border: 1px solid var(--hk-silver);
}

/* —— 90年代怀旧主题预览 —— */
.shop-item.si-theme.theme-90s {
  background: var(--r9-metal);
  border-color: var(--r9-silver-deep);
  border-radius: 0;
  box-shadow: inset -1px -1px 0 var(--r9-silver-deep), inset 1px 1px 0 #fff;
  font-family: var(--r9-font);
}

.shop-item.si-theme.theme-90s .si-name {
  color: var(--r9-pink);
  text-shadow: none;
}

.shop-item.si-theme.theme-90s .si-desc {
  color: var(--r9-ink-soft);
}

.shop-item.si-theme.theme-90s .si-price {
  color: var(--r9-purple-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-90s .si-bar {
  background: var(--r9-holo);
  color: #fff;
  border-radius: 0;
}

.shop-item.si-theme.theme-90s .si-bar .d1 {
  background: #d8d8e8;
}

.shop-item.si-theme.theme-90s .si-bar .d2 {
  background: #fff;
}

.shop-item.si-theme.theme-90s .si-bar .d3 {
  background: #b8b8a0;
}

.shop-item.si-theme.theme-90s .si-chips b {
  border-radius: 0;
  border: 1px solid var(--r9-silver-deep);
}

.shop-item.si-theme.theme-90s .si-chips .c1 {
  background: var(--r9-metal);
  color: var(--r9-ink);
  box-shadow: inset -1px -1px 0 var(--r9-silver-deep), inset 1px 1px 0 #fff;
}

.shop-item.si-theme.theme-90s .si-chips .c2 {
  background: var(--r9-pink-pale);
  color: var(--r9-pink-deep);
}

.shop-item.si-theme.theme-90s .si-chips .c3 {
  background: var(--r9-holo);
  color: #fff;
}

/* —— 杂志报纸主题预览 —— */
.shop-item.si-theme.theme-magazine {
  background: var(--mg-metal);
  border-color: var(--mg-ink);
  border-radius: var(--mg-radius-lg);
  box-shadow: 3px 3px 0 rgba(25, 23, 19, .2);
  font-family: var(--mg-font);
}

.shop-item.si-theme.theme-magazine .si-name {
  color: var(--mg-pink-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-magazine .si-desc {
  color: var(--mg-ink-soft);
}

.shop-item.si-theme.theme-magazine .si-price {
  color: var(--mg-yellow-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-magazine .si-bar {
  background: var(--mg-holo);
  color: #fbf8f1;
  border-radius: 0;
}

.shop-item.si-theme.theme-magazine .si-bar .d1 {
  background: var(--mg-pink);
}

.shop-item.si-theme.theme-magazine .si-bar .d2 {
  background: var(--mg-blue);
}

.shop-item.si-theme.theme-magazine .si-bar .d3 {
  background: var(--mg-yellow);
}

.shop-item.si-theme.theme-magazine .si-chips b {
  border-radius: 0;
  border: 1px solid var(--mg-ink);
}

.shop-item.si-theme.theme-magazine .si-chips .c1 {
  background: var(--mg-pink-pale);
  color: var(--mg-pink-deep);
}

.shop-item.si-theme.theme-magazine .si-chips .c2 {
  background: var(--mg-purple-pale);
  color: var(--mg-purple-deep);
}

.shop-item.si-theme.theme-magazine .si-chips .c3 {
  background: var(--mg-green-pale);
  color: var(--mg-green-deep);
}

/* —— 落日合成波主题预览 —— */
.shop-item.si-theme.theme-synthwave {
  background: var(--sw-panel);
  border-color: var(--sw-purple);
  border-radius: var(--sw-radius-lg);
  box-shadow: 0 0 14px rgba(255, 79, 163, .25), inset 0 0 10px rgba(138, 92, 245, .15);
  font-family: var(--sw-font);
}

.shop-item.si-theme.theme-synthwave .si-name {
  color: var(--sw-sun1);
  text-shadow: 0 0 8px rgba(255, 79, 163, .5);
}

.shop-item.si-theme.theme-synthwave .si-desc {
  color: var(--sw-ink-soft);
}

.shop-item.si-theme.theme-synthwave .si-price {
  color: var(--sw-yellow);
  text-shadow: none;
}

.shop-item.si-theme.theme-synthwave .si-bar {
  background: linear-gradient(90deg, rgba(255, 79, 163, .25), rgba(138, 92, 245, .25));
  border: 1px solid var(--sw-sun1);
  color: var(--sw-ink);
  border-radius: var(--sw-radius);
}

.shop-item.si-theme.theme-synthwave .si-bar .d1 {
  background: var(--sw-sun1);
}

.shop-item.si-theme.theme-synthwave .si-bar .d2 {
  background: var(--sw-sun2);
}

.shop-item.si-theme.theme-synthwave .si-bar .d3 {
  background: var(--sw-cyan);
}

.shop-item.si-theme.theme-synthwave .si-chips b {
  border-radius: var(--sw-radius);
}

.shop-item.si-theme.theme-synthwave .si-chips .c1 {
  background: var(--sw-sunset);
  color: #2b0f22;
}

.shop-item.si-theme.theme-synthwave .si-chips .c2 {
  background: rgba(138, 92, 245, .2);
  color: var(--sw-ink);
  border: 1px solid var(--sw-purple);
}

.shop-item.si-theme.theme-synthwave .si-chips .c3 {
  background: rgba(77, 232, 255, .15);
  color: var(--sw-cyan-deep);
  border: 1px solid var(--sw-cyan);
}

/* —— 水墨丹青主题预览 —— */
.shop-item.si-theme.theme-ink {
  background: var(--ik-paper2);
  border-color: var(--ik-line);
  border-radius: var(--ik-radius-lg);
  box-shadow: var(--ik-shadow);
  font-family: var(--ik-font);
}

.shop-item.si-theme.theme-ink .si-name {
  color: var(--ik-black);
  text-shadow: none;
}

.shop-item.si-theme.theme-ink .si-desc {
  color: var(--ik-ink-soft);
}

.shop-item.si-theme.theme-ink .si-price {
  color: var(--ik-gold);
  text-shadow: none;
}

.shop-item.si-theme.theme-ink .si-bar {
  background: var(--ik-paper3);
  border: 1px solid var(--ik-line);
  color: var(--ik-black);
  border-radius: var(--ik-radius);
}

.shop-item.si-theme.theme-ink .si-bar .d1 {
  background: var(--ik-red);
}

.shop-item.si-theme.theme-ink .si-bar .d2 {
  background: var(--ik-black);
}

.shop-item.si-theme.theme-ink .si-bar .d3 {
  background: var(--ik-green);
}

.shop-item.si-theme.theme-ink .si-chips b {
  border-radius: var(--ik-radius);
  border: 1px solid var(--ik-line);
}

.shop-item.si-theme.theme-ink .si-chips .c1 {
  background: var(--ik-red);
  color: #fff;
}

.shop-item.si-theme.theme-ink .si-chips .c2 {
  background: var(--ik-paper);
  color: var(--ik-ink);
}

.shop-item.si-theme.theme-ink .si-chips .c3 {
  background: var(--ik-paper3);
  color: var(--ik-green-deep);
}

/* —— 黄昏口袋主题预览 —— */
.shop-item.si-theme.theme-sunset {
  background: var(--sd-cream2);
  border-color: var(--sd-line);
  border-radius: var(--sd-radius-lg);
  box-shadow: var(--sd-shadow);
  font-family: var(--sd-font);
}

.shop-item.si-theme.theme-sunset .si-name {
  color: var(--sd-orange-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-sunset .si-desc {
  color: var(--sd-ink-soft);
}

.shop-item.si-theme.theme-sunset .si-price {
  color: var(--sd-red-deep);
  text-shadow: none;
}

.shop-item.si-theme.theme-sunset .si-bar {
  background: var(--sd-hero);
  color: #fff;
  border-radius: var(--sd-radius);
}

.shop-item.si-theme.theme-sunset .si-bar .d1 {
  background: #fff;
}

.shop-item.si-theme.theme-sunset .si-bar .d2 {
  background: var(--sd-yellow);
}

.shop-item.si-theme.theme-sunset .si-bar .d3 {
  background: var(--sd-blue);
}

.shop-item.si-theme.theme-sunset .si-chips b {
  border-radius: var(--sd-radius);
}

/* ===== 转盘安全校验拼图（与登录/水果机同款，#wcapMask 作用域防串样式） ===== */
#wcapMask .wcap-panel {
  width: min(92vw, 380px);
}

#wcapMask .captcha-box {
  border: 3px solid #42e2f5;
  border-radius: 10px;
  overflow: hidden;
  background: #10102e;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 0 10px rgba(66, 226, 245, .25);
  margin: 12px 0 4px;
}

#wcapMask .puzzle-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 96;
  background: #10102e;
  overflow: hidden;
  touch-action: none;
}

#wcapMask .puzzle-bg {
  position: absolute;
  inset: 0;
}

#wcapMask .puzzle-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

#wcapMask .puzzle-slot {
  position: absolute;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='41.1,11 41.1,33 22,44 2.9,33 2.9,11 22,0' fill='rgba(66,226,245,0.10)' stroke='%2342e2f5' stroke-width='2.5' stroke-dasharray='5 4' stroke-linejoin='round'/></svg>") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 4px rgba(66, 226, 245, .35));
  pointer-events: none;
  z-index: 1;
  animation: wcapSlotPulse 2.2s ease-in-out infinite;
}

#wcapMask .puzzle-slot.ok {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='41.1,11 41.1,33 22,44 2.9,33 2.9,11 22,0' fill='rgba(123,241,168,0.16)' stroke='%237bf1a8' stroke-width='2.5' stroke-linejoin='round'/></svg>");
  filter: drop-shadow(0 0 6px rgba(123, 241, 168, .5));
  animation: none;
}

@keyframes wcapSlotPulse {

  0%,
  100% {
    opacity: .7;
  }

  50% {
    opacity: 1;
  }
}

#wcapMask .puzzle-piece {
  position: absolute;
  background:
    radial-gradient(circle at center, rgba(123, 241, 168, .9) 0 2px, transparent 2.5px),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'><polygon points='41.1,11 41.1,33 22,44 2.9,33 2.9,11 22,0' fill='rgba(42,42,94,0.96)' stroke='%237bf1a8' stroke-width='2.5' stroke-linejoin='round'/></svg>") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0 6px rgba(123, 241, 168, .4));
  z-index: 2;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

#wcapMask .puzzle-piece.ok {
  filter: drop-shadow(0 0 8px rgba(123, 241, 168, .8));
}

#wcapMask .puzzle-track {
  position: relative;
  height: 30px;
  margin: 6px;
  border: 2px solid #3a3a7a;
  border-radius: 8px;
  background: rgba(16, 16, 46, .9);
  overflow: hidden;
}

#wcapMask .puzzle-track-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(123, 241, 168, .35), rgba(66, 226, 245, .35));
}

#wcapMask .puzzle-thumb {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #7bf1a8 0%, #2ecc71 100%);
  color: #0d2b16;
  font-size: 15px;
  font-weight: bold;
  border-right: 2px solid rgba(0, 0, 0, .25);
  box-shadow: 0 0 8px rgba(123, 241, 168, .35);
  cursor: grab;
  user-select: none;
}

#wcapMask .puzzle-thumb.ok {
  width: 100%;
  cursor: default;
  border-right: none;
  box-shadow: 0 0 12px rgba(123, 241, 168, .6);
}

.wcap-tip {
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .5px;
  margin-top: 8px;
  text-align: center;
}

.shop-item.si-theme.theme-sunset .si-chips .c1 {
  background: var(--sd-orange);
  color: #fff;
}

.shop-item.si-theme.theme-sunset .si-chips .c2 {
  background: var(--sd-blue);
  color: #fff;
}

.shop-item.si-theme.theme-sunset .si-chips .c3 {
  background: var(--sd-yellow);
  color: var(--sd-yellow-deep);
}

/* ===== 手机横屏 / 平板竖屏（640~1024）：游戏厅二级菜单也要固定高内滚动 =====
   手机横屏视口宽 >640px，不会命中上面的 max-width:640px，这里补齐同一套缓解：
   固定 80vh 高 + overflow 出滚动条，按钮 flex:none 不被压缩。
   1024 以上菜单项少且屏够宽，维持桌面默认。 */
@media (min-width: 640.02px) and (max-width: 1023.98px) {
  .hall-nav-drop {
    height: auto;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hall-nav-drop .nav-btn.hnd-item {
    flex: none;
  }

  /* 平板横屏管理员：「管理后台」一级菜单独占下一行 */
  .hall-nav {
    flex-wrap: wrap;
  }

  body.adm-account #adminNavCell {
    flex: 1 1 100%;
  }

  /* 平板/大屏（640~1024）：芦浦游戏厅 / 龙港棋牌室 两个一级菜单同样等宽平分
     （此前只写在 ≤640 块里，824px 这类视口不命中，导致一大一小） */
  .hall-nav>.nav-btn.nav-hall,
  .hall-nav>.hall-nav-cell {
    flex: 1 1 0;
    min-width: 0;
  }

  .hall-nav>#cardNavCell>#btnCardMenu {
    width: 100%;
    min-width: 0;
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* ===== 我的龙港币流水弹窗（顶部 🐉 龙港币胶囊点开）：日期切换 + 合并后的流水行 + 分页 ===== */
.dg-panel {
  width: min(560px, 94vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.dg-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px 2px 0;
}

.dg-nav {
  font-family: inherit;
  font-size: 12px;
  line-height: 1;
  color: #cfeaff;
  background: rgba(66, 226, 245, .12);
  border: 1px solid rgba(66, 226, 245, .45);
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}

.dg-nav:hover {
  background: rgba(66, 226, 245, .22);
}

.dg-nav:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.dg-date {
  font-family: inherit;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  border: 1px solid rgba(66, 226, 245, .45);
  border-radius: 8px;
  padding: 6px 8px;
  color-scheme: dark;
}

.dg-today {
  color: #ffe66d;
  border-color: rgba(255, 230, 109, .5);
  background: rgba(255, 230, 109, .12);
}

.dg-refresh {
  margin-left: auto;
}

.dg-summary {
  margin: 8px 0 6px;
  font-size: 12.5px;
  color: #cfe6ff;
  line-height: 1.7;
}

.dg-summary b.up {
  color: #7bf1a8;
}

.dg-summary b.down {
  color: #ff8a8a;
}

.dg-list {
  flex: 1;
  min-height: 120px;
  max-height: 52vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0;
}

.dg-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  background: rgba(255, 255, 255, .04);
}

.dg-row .dg-time {
  flex: none;
  font-size: 11.5px;
  color: #9fb4d8;
  font-variant-numeric: tabular-nums;
}

.dg-row .dg-what {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: #eaf2ff;
}

.dg-row .dg-what i {
  display: block;
  font-style: normal;
  font-size: 11px;
  color: #8a93b8;
  margin-top: 2px;
}

.dg-row .dg-amt {
  flex: none;
  font-size: 13.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.dg-row .dg-amt.up {
  color: #7bf1a8;
}

.dg-row .dg-amt.down {
  color: #ff8a8a;
}

.dg-row .dg-bal {
  flex: none;
  width: 96px;
  text-align: right;
  font-size: 11.5px;
  color: #9fb4d8;
  font-variant-numeric: tabular-nums;
}

.dg-empty {
  text-align: center;
  color: #8a93b8;
  font-size: 12.5px;
  padding: 26px 0;
}

.dg-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 8px;
}

.dg-pageinfo {
  font-size: 12px;
  color: #9fb4d8;
  font-variant-numeric: tabular-nums;
}

.dg-note {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.6;
  color: #8a93b8;
}

@media (max-width: 480px) {
  .dg-row {
    flex-wrap: wrap;
  }

  .dg-row .dg-bal {
    width: auto;
    margin-left: auto;
  }

  .dg-list {
    max-height: 46vh;
  }
}