:root {
  --primary: #3980f4;
  --primary-dark: #2563eb;
  --bg: #eaeffb;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --danger: #ef4444;
  --ok: #22c55e;
  --line: #dbeafe;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Source Han Sans", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #eaeffb;
  color: var(--text);
}
#app { min-height: 100%; }
.page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: transparent;
  position: relative;
  padding-bottom: 24px;
}
.page.wide { max-width: 430px; }
.card {
  background: var(--card);
  margin: 0 12px;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 6px 16px rgba(37,99,235,.06);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid #e5e7eb; border-radius: 20px; padding: 10px 12px; background: #fff;
}
.input input {
  border: 0; outline: 0; flex: 1; background: transparent; font-size: 15px; color: var(--text);
}
.btn {
  width: 100%; border: 0; border-radius: 22px; padding: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:disabled { opacity: .6; }
.btn-ghost { background: #eef2f7; color: #4b5563; margin-top: 10px; }
.link { color: var(--primary); cursor: pointer; }
.hint { text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; }
.err { color: var(--danger); font-size: 13px; text-align: center; margin: 8px 0; min-height: 18px; }
.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px 8px;
}
.back {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #e5e7eb;
  background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
  font-size: 14px; flex-shrink: 0;
}
.topbar h1 { flex: 1; text-align: center; font-size: 18px; margin-right: 28px; }
.rank-head .topbar {
  align-items: center;
  padding: 8px 10px 6px;
  position: relative;
  z-index: 6;
}
.rank-head .topbar h1 { margin-right: 28px; }
.rank-head .asset-picker, .chest-nav .asset-picker { margin-left: 0; }
.uid { color: var(--muted); font-size: 12px; }

/* ---------- 登录 / 注册 ---------- */
.auth-page {
  min-height: 100vh;
  background: url(/img/skin/login/back.png) center / 100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 40px;
}
.auth-logo {
  width: 170px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 18px;
  animation: floatLogo 5s ease-in-out infinite;
}
@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(28px); }
}
.auth-form { width: 90%; max-width: 360px; }
.auth-lab {
  font-family: "黑体", "SimHei", "Microsoft YaHei", sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-align: left;
  margin: 0 0 6px 12px;
  color: #111;
}
.auth-input {
  display: flex; align-items: center; gap: 8px;
  background: #fff;
  border-radius: 24px;
  padding: 11px 16px;
  margin-bottom: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  border: 1px solid #eef2f7;
}
.auth-input img { width: 20px; height: 20px; flex-shrink: 0; }
.auth-input input {
  border: 0; outline: 0; flex: 1; background: transparent; font-size: 15px;
}
.auth-eye { cursor: pointer; color: #9ca3af; font-size: 14px; user-select: none; }
.auth-btn {
  width: 100%; border: 0; border-radius: 24px; padding: 12px;
  background: #409eff; color: #fff; font-size: 16px; font-weight: 700;
  margin-top: 18px; cursor: pointer;
}
.auth-btn:disabled { opacity: .6; }
.auth-foot {
  text-align: center; margin-top: 16px; font-size: 13px; color: #9ca3af;
}
.auth-foot span { color: #409eff; cursor: pointer; margin-left: 4px; }

/* ---------- 首页 ---------- */
.home-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: url(/img/skin/home/back.png) center / 100% 100% no-repeat #eaeffb;
  padding: 10px 0 80px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.home-card {
  background: #fff;
  border-radius: 20px;
  margin: 0 10px;
  padding: 10px 10px 52px;
  position: relative;
}
.home-logo {
  display: block;
  height: 30px;
  width: auto;
  margin: 4px auto 8px;
  animation: floatLogoX 5s infinite alternate;
}
@keyframes floatLogoX {
  0% { transform: translateX(0); }
  50% { transform: translateX(50px); }
  100% { transform: translateX(0); }
}
.home-ai {
  position: absolute;
  right: 8px;
  top: 38px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.home-ai-btn {
  width: 46px;
  height: 46px;
  border: 2px solid #f5c542;
  border-radius: 50%;
  padding: 0 3px;
  cursor: pointer;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.4px;
  box-shadow: 0 2px 6px rgba(57,128,244,.25);
}
.home-ai-btn.haina {
  background: radial-gradient(circle at 35% 30%, #7aa7ff, #3b6fe8 55%, #2554c8);
}
.home-ai-btn.helper {
  background: radial-gradient(circle at 35% 30%, #c4a6ff, #7b4de0 55%, #5b2fc0);
}
.home-user { display: flex; align-items: center; gap: 10px; }
.home-ava {
  width: 55px; height: 55px; border-radius: 50%;
  background: #1d1d1f; object-fit: cover;
}
.home-nick {
  font-size: 20px; font-weight: 700; line-height: 28px;
  display: flex; align-items: center; gap: 6px;
}
.home-nick img { width: 22px; height: 22px; cursor: pointer; }
.nick-ava-wrap { text-align: center; margin: 8px 0 18px; }
.nick-ava {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  background: #1d1d1f; cursor: pointer; border: 3px solid #e8eef8;
  display: block; margin: 0 auto 8px;
}
.nick-ava-tip { font-size: 12px; color: #6b7280; }
.home-id { font-size: 12px; color: #000; line-height: 20px; }
.home-bal {
  background: #3980f4;
  border-radius: 12px;
  margin: -42px 10px 10px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  box-sizing: border-box;
}
.home-bal-list {
  display: flex; align-items: center; gap: 8px; flex: 1;
  min-width: 0; height: 100%; overflow: hidden;
  --lab: 12px; --num: 22px;
}
.home-bal-item { flex: 1 1 auto; min-width: 0; }
.home-bal-item .lab {
  font-size: var(--lab); opacity: .95; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.home-bal-item .num {
  font-size: var(--num); font-weight: 700; line-height: 1.15;
  font-family: "DINNextLTPro-Medium", "Segoe UI", sans-serif;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.home-bal.wrap2 .home-bal-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1px 8px;
  align-content: center;
}
.home-bal.wrap2 .home-bal-item { flex: none; }
.home-bal.wrap2 .home-bal-item .lab { line-height: 1.1; }
.home-bal.wrap2 .home-bal-item .num { line-height: 1.1; }
.home-grid4 {
  background: #fff;
  border-radius: 12px;
  margin: 0 10px 10px;
  height: 70px;
  display: flex;
  align-items: center;
}
.home-grid4 > div {
  flex: 1; text-align: center; font-size: 12px; cursor: pointer; color: #333;
}
.home-grid4 img { width: 40px; height: 40px; display: block; margin: 0 auto 2px; }
.home-entry {
  background: #fff;
  border-radius: 12px;
  margin: 0 10px 10px;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  cursor: pointer;
}
.home-entry b { font-size: 18px; color: #484848; }
.home-entry .home-soon {
  margin-left: 8px;
  font-size: 11px;
  color: #fff;
  background: #ff8a00;
  border-radius: 8px;
  padding: 1px 6px;
  font-weight: 700;
}
.home-entry .arr { width: 28px; height: 28px; margin-left: 8px; }
.home-entry .art { width: 94px; height: 60px; margin-left: auto; object-fit: contain; }
.home-cs {
  display: flex;
  gap: 10px;
  margin: 10px 10px 0;
}
.home-cs-card {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  height: 60px;
  display: flex;
  align-items: center;
  padding-right: 8px;
  cursor: pointer;
}
.home-cs-card img { width: 45px; height: 45px; margin: 0 8px; border-radius: 50%; object-fit: cover; }
.home-cs-card .t { font-size: 15px; font-weight: 700; color: #333; }
.home-go {
  display: inline-block;
  background: rgba(49,132,242,.18);
  color: #3980f4;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  margin-top: 2px;
}
.home-sec {
  font-size: 16px; font-weight: 700; color: #333;
  margin: 10px 0 0 20px;
}
.home-fn {
  background: #fff;
  border-radius: 12px;
  margin: 10px;
  height: 60px;
  display: flex;
  align-items: center;
}
.home-fn > div {
  flex: 1; text-align: center; font-size: 12px; cursor: pointer; color: #333;
}
.home-fn img { width: 34px; height: 34px; display: block; margin: 0 auto 2px; }
.home-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  margin-top: auto;
}
.home-bottom img { width: 50px; height: 50px; margin: 10px; cursor: pointer; }

/* ---------- 游戏页 ---------- */
.game-page {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  background: url(/img/skin/game/page-back.png) 0 0 / 100% 100% no-repeat #eaeffb;
  padding-bottom: 16px;
  position: relative;
}
.g-header {
  background: #fff;
  padding: 20px 8px 8px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  overflow: visible;
}
.g-head-top {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  position: relative;
  z-index: 6;
  overflow: visible;
}
.g-title {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.g-title > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.g-title img { width: 22px; height: 18px; flex-shrink: 0; }
.g-help {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid #949494; color: #949494;
  font-size: 11px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 700;
}
.asset-picker {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 108px;
  position: relative;
  z-index: 40;
}
.g-head-picks {
  margin-left: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  flex-shrink: 0;
  overflow: visible;
}
.g-head-picks .asset-picker { margin-left: 0; }
.g-header .asset-picker {
  flex-direction: row;
  align-items: center;
  min-width: 0;
  overflow: visible;
}
.g-header .asset-guide {
  display: flex;
  position: absolute;
  top: -16px;
  right: -2px;
  left: auto;
  margin: 0;
  z-index: 7;
  pointer-events: none;
  font-size: 10px;
  letter-spacing: 0;
  padding: 1px 6px 2px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(255, 59, 48, .4);
}
.g-header .asset-guide::after {
  bottom: -5px;
  border-width: 5px;
  margin-left: -5px;
}
.g-header .asset-trig-wrap { min-width: 0; width: auto; }
.g-header .plan-picker { min-width: 0; }
.g-header .plan-picker .asset-trig {
  min-width: 52px;
  max-width: 68px;
  padding: 4px 6px;
}
.g-header .asset-picker:not(.plan-picker) .asset-trig {
  min-width: 84px;
  max-width: 120px;
  padding: 4px 6px;
}
.plan-picker { min-width: 72px; }
.plan-picker .asset-trig-wrap { min-width: 72px; }
.asset-trig-wrap { position: relative; width: max-content; min-width: 108px; }
.asset-guide {
  display: flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(90deg, #ff3b30, #ff8a00);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 2px 8px 2px 7px;
  border-radius: 10px;
  position: relative;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(255,59,48,.45);
  animation: guidePulse 1.15s ease-in-out infinite;
  white-space: nowrap;
}
.asset-guide::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  margin-left: -6px;
  border: 7px solid transparent;
  border-top-color: #ff3b30;
}
@keyframes guidePulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.asset-trig {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  width: 100%; min-width: 108px; max-width: 148px;
  border: 1.5px solid #ff8a00;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.2;
  appearance: none; font-family: inherit;
}
.asset-trig.open { border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }
.asset-trig-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asset-trig-caret {
  width: 0; height: 0; flex-shrink: 0;
  border: 5px solid transparent; border-top-color: #ea580c;
  margin-top: 4px; transition: transform .12s ease;
}
.asset-trig.open .asset-trig-caret { transform: rotate(180deg); margin-top: -2px; }
.asset-panel {
  position: fixed;
  z-index: 120;
  width: max-content;
  max-width: min(220px, calc(100vw - 16px));
  background: #fff;
  border: 1.5px solid #ff8a00;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(154, 52, 18, .16);
  padding: 3px 0;
  overflow: hidden;
  animation: assetDrop .12s ease;
}
@keyframes assetDrop {
  from { transform: translateY(-4px); opacity: .4; }
  to { transform: translateY(0); opacity: 1; }
}
.asset-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; border: 0; background: #fff; cursor: pointer;
  padding: 8px 12px; font-size: 13px; color: #1f2937; text-align: left;
  white-space: nowrap;
  appearance: none; font-family: inherit;
}
.asset-opt + .asset-opt { border-top: 1px solid #fff1e2; }
.asset-opt.on { color: #c2410c; font-weight: 800; background: #fff7ed; }
.asset-opt-name { flex-shrink: 0; }
.asset-opt-bal { color: #9a3412; font-weight: 700; font-size: 12px; flex-shrink: 0; }
.g-rooms {
  background: #eaeffb;
  border-radius: 29px;
  height: 30px;
  margin-top: 6px;
  display: flex;
  overflow: hidden;
}
.g-rooms span {
  flex: 1;
  text-align: center;
  line-height: 30px;
  font-size: 13px;
  cursor: pointer;
}
.g-rooms span.on {
  background: #3980f4;
  border-radius: 29px;
  color: #fff;
}
.g-status {
  background: url(/img/skin/game/info-back.png) center / cover no-repeat #5b8def;
  color: #fff;
  border-radius: 15px;
  margin: 10px 5px;
  padding: 8px 16px;
  min-height: 60px;
  font-size: 14px;
}
.g-status .row1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-status .remain { color: #FDDAB6; font-weight: 800; }
.g-tabs {
  display: flex;
  margin: 0 0 5px;
}
.g-tabs span {
  flex: 1;
  text-align: center;
  letter-spacing: 3px;
  padding: 4px 5px 6px;
  cursor: pointer;
  font-size: 15px;
}
.g-tabs span.on {
  color: #3980f4;
  border-bottom: 4px solid #3980f4;
}
.g-board {
  background: #fff;
  border-radius: 20px;
  margin: 5px;
  padding: 10px 8px 8px;
}
.g-nums, .g-attrs {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.g-nums button, .g-attrs button {
  font-size: 14px;
  padding: 5px 14px;
  border-radius: 10px;
  background: #eaeffb;
  color: #000;
  border: 0;
  box-shadow: 0 3px 5px #0000001a;
  cursor: pointer;
  min-width: 48px;
}
.g-nums button.on, .g-attrs button.on {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #f56c6c;
}
.g-nums button:disabled, .g-attrs button:disabled {
  opacity: .38;
  cursor: not-allowed;
  box-shadow: none;
  color: #8a93a8;
}
.g-night {
  margin-top: 4px;
  color: #f56c6c;
  font-size: 12px;
}
.g-amt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}
.g-amt button {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid #d1d5db;
  background: #fff; cursor: pointer; font-size: 16px;
}
.g-amt input {
  width: 160px; text-align: center; border: 0; background: #f4f6fb;
  border-radius: 20px; padding: 8px; font-size: 16px; outline: 0;
}
.g-quick {
  display: flex; justify-content: center; gap: 8px; margin: 6px 0;
}
.g-quick span {
  background: #fef0f0; color: #f56c6c; border: 1px solid #fbc4c4;
  border-radius: 20px; padding: 6px 10px; font-size: 13px; cursor: pointer;
}
.g-actions {
  display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0 4px;
}
.g-actions .cancel {
  position: relative; width: auto; flex: 0 0 auto;
  background: #909399; color: #fff; border-radius: 20px; padding: 8px 16px; font-size: 14px;
}
.g-actions .go {
  width: auto; flex: 0 0 auto;
  background: #67c23a; color: #fff; border-radius: 20px; padding: 8px 18px; font-size: 14px;
}
.g-actions .go.closed { background: #909399; font-size: 12px; padding: 8px 10px; }
.g-hist {
  width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; margin-left: 18px;
}
.g-hist img { width: 28px; height: 28px; }
.cancel-badge {
  position: absolute; top: -8px; right: -4px;
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  min-width: 22px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 9px; padding: 0 5px;
}

/* ---------- 通用列表 / 聊天 / 弹窗 ---------- */
.tabs { display: flex; gap: 18px; padding: 8px 18px; border-bottom: 1px solid var(--line); }
.tabs span { padding-bottom: 8px; cursor: pointer; color: var(--muted); }
.tabs span.on { color: var(--primary); border-bottom: 2px solid var(--primary); font-weight: 700; }
.pills { display: flex; gap: 8px; padding: 12px 16px; }
.pills span {
  padding: 6px 12px; border-radius: 14px; background: #eef2ff; color: #64748b; cursor: pointer; font-size: 13px;
}
.pills span.on { background: var(--primary); color: #fff; }
.table-wrap { margin: 0 12px; overflow: auto; background: #fff; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { background: var(--primary); color: #fff; padding: 8px 4px; font-weight: 600; }
td { padding: 8px 4px; text-align: center; border-bottom: 1px solid #f1f5f9; }
.table-wide { -webkit-overflow-scrolling: touch; }
.table-wide table {
  min-width: 680px;
  table-layout: fixed;
  white-space: nowrap;
}
.table-wide th, .table-wide td {
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.table-wide th:nth-child(1), .table-wide td:nth-child(1) { width: 18%; }
.table-wide th:nth-child(2), .table-wide td:nth-child(2) { width: 10%; }
.table-wide th:nth-child(3), .table-wide td:nth-child(3) { width: 14%; }
.table-wide th:nth-child(4), .table-wide td:nth-child(4) { width: 8%; }
.table-wide th:nth-child(5), .table-wide td:nth-child(5) { width: 8%; }
.table-wide th:nth-child(6), .table-wide td:nth-child(6),
.table-wide th:nth-child(7), .table-wide td:nth-child(7),
.table-wide th:nth-child(8), .table-wide td:nth-child(8) { width: 9%; }
.table-wide th:nth-child(9), .table-wide td:nth-child(9) { width: 15%; }
.agent-table .agent-user { text-align: left; padding: 8px 6px 8px 4px; line-height: 1.35; }
.agent-cell { display: flex; align-items: flex-start; gap: 2px; }
.agent-tog {
  flex: none; width: 22px; height: 22px; margin-top: 2px; padding: 0;
  border: none; background: transparent; color: #64748b; font-size: 10px; line-height: 22px;
  cursor: pointer;
}
.agent-tog-ph { width: 22px; height: 22px; flex: none; }
.agent-who { min-width: 0; }
.agent-table .agent-user b { display: block; font-weight: 600; }
.agent-table .agent-user span { color: #6b7280; font-size: 11px; }
.agent-table .agent-user em { font-style: normal; color: #3b82f6; }
.agent-lv {
  max-width: 108px; width: 100%;
  font-size: 12px; padding: 4px 4px; border: 1px solid #d1d5db;
  border-radius: 4px; background: #fff; color: #1f2937;
}
.empty { text-align: center; color: #9ca3af; padding: 40px 0; }
.stat4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; padding: 8px 12px; }
.stat4 div { background: #fff; border-radius: 10px; padding: 10px 6px; text-align: center; }
.stat4 b { display: block; color: var(--primary); margin-top: 4px; }
.trend {
  margin: 8px 5px 20px;
  background: #d7f0ec;
  border-radius: 8px;
  overflow: auto;
  padding: 5px;
}
.trend .tablezy {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  text-align: center;
  background: #d7f0ec;
}
.trend .tablezy th,
.trend .tablezy td {
  border: 1px solid #ccc;
  height: 20px;
  font-size: 12px;
  font-weight: 700;
  padding: 1px 0;
  color: #333;
  background: #d7f0ec;
}
.trend .tablezy thead th {
  background: #eaeffb;
  color: #333;
  font-size: 13px;
}
.trend-logo { width: 90%; height: 36px; object-fit: contain; vertical-align: middle; }
.trend .qihao a { color: #2563eb; text-decoration: none; font-size: 11px; word-break: break-all; }
.trend .tablezy td.cell-flag { background: #d6d4d4; }
.trend .flag-red { color: red; font-weight: 800; }
.trend .flag-blue { color: blue; font-weight: 800; }
.kill-dot {
  width: 14px; height: 14px;
  padding: 2px;
  border-radius: 10px;
  background: #aa180e;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}
.hit {
  display: inline-flex; width: 18px; height: 18px; border-radius: 50%;
  background: #ef4444; color: #fff; align-items: center; justify-content: center; font-size: 10px;
}
.big { color: #ef4444; } .small { color: #2563eb; }
.rec-win { color: #16a34a; font-weight: 700; }
.rec-lose { color: #ef4444; font-weight: 700; }
.chat-box { height: 320px; overflow: auto; background: #fff; margin: 8px 12px; border-radius: 10px; padding: 10px; }
.game-chat { height: calc(100vh - 250px); min-height: 360px; margin: 5px 8px 6px; }
.cs-thread { height: calc(100vh - 168px); min-height: 280px; }
.chat-msg.staff .chat-bubble {
  background: #fff7ed; border-color: #fdba74; color: #9a3412;
}
.chat-msg.staff .chat-meta, .chat-meta.staff {
  color: #c2410c;
  font-family: KaiTi, STKaiti, "FangSong", "STFangsong", serif;
  font-size: 14px; font-weight: 700; letter-spacing: .4px;
}
.chat-msg.staff .chat-body { display: flex; flex-direction: column; align-items: flex-start; }
.chat-msg { display: flex; gap: 8px; margin-bottom: 12px; align-items: flex-start; }
.chat-ava { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #e5e7eb; flex-shrink: 0; }
.chat-body { min-width: 0; flex: 1; }
.chat-meta { font-size: 12px; color: #9ca3af; margin-bottom: 4px; }
.chat-bubble {
  display: inline-block; box-sizing: content-box;
  max-width: 10em;
  background: #fdfdfe; border: 1px solid #e5e7eb; border-radius: 5px;
  padding: 8px 10px; font-size: 13px; line-height: 1.45;
  white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere;
}
.chat-pic { max-width: 180px; max-height: 180px; border-radius: 8px; display: block; cursor: zoom-in; }
.chat-msg.mine { flex-direction: row-reverse; }
.chat-msg.mine .chat-body { display: flex; flex-direction: column; align-items: flex-end; }
.chat-msg.mine .chat-meta { text-align: right; }
.chat-msg.mine .chat-bubble {
  background: #94ea69;
  border-color: #7bd14f;
  text-align: left;
}
.img-view {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .88);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.img-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.emoji-pop {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  margin: 0 12px 6px; padding: 8px; background: #fff; border-radius: 10px;
  border: 1px solid #e5e7eb;
}
.emoji-pop span { text-align: center; font-size: 20px; cursor: pointer; padding: 4px 0; }
.chat-send {
  display: flex; align-items: flex-end; gap: 6px;
  margin: 0 12px 12px; padding: 8px; background: #e5e7eb; border-radius: 12px;
}
.chat-ico {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: #fff;
  cursor: pointer; font-size: 16px; flex-shrink: 0;
}
.chat-ico.sq { border-radius: 8px; }
.chat-file { display: none; }
.chat-send textarea.chat-input {
  flex: 1 1 auto; width: 10em; max-width: 10em; min-width: 0;
  box-sizing: content-box;
  border: 0; outline: 0; border-radius: 12px; padding: 5px 10px; background: #fff;
  font-size: 16px; line-height: 1.45;
  word-break: break-all; overflow-wrap: anywhere; white-space: pre-wrap;
  resize: none; overflow-y: hidden;
  height: 1.45em;
  min-height: 1.45em;
  max-height: calc(1.45em * 6);
}
.chat-go {
  border: 0; background: #4b5563; color: #fff; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; flex-shrink: 0;
}
.modal {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center; z-index: 20;
  padding: 24px 16px;
  background: transparent;
}
.modal-mask {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.4);
}
.modal .sheet {
  position: relative; z-index: 1;
  background: #fff; width: 100%; max-width: 380px;
  border-radius: 12px; padding: 16px; max-height: 80vh; overflow: auto;
  background-image: url(/img/skin/home/dialog-back.png);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}
.modal .sheet h3 { color: #3980f4; font-size: 18px; margin-bottom: 10px; }
.modal .sheet.help-sheet {
  background-image: url(/img/skin/game/desc-bg.png);
  background-size: 100% 100%;
  background-color: #fff;
  width: min(86vw, 400px); max-width: 400px;
  border-radius: 16px;
  padding: 16px 14px 14px;
}
.help-html {
  max-height: 52vh; overflow: auto;
  font-size: 13px; line-height: 1.7; color: #333;
}
.help-html .room { color: #3980f4; font-weight: 700; }
.help-html .beilu { color: #e97913; font-weight: 700; margin-right: 10px; }
.help-html .sx { color: #3980f4; }
.help-html .h-lead { font-weight: 700; margin-bottom: 4px; }
.help-html .h-line { border: none; border-top: 1px solid #dbe3ee; margin: 10px 0; }
.help-html .h-sec { padding: 8px 0; border-bottom: 1px solid #e5e7eb; }
.help-html .h-sec:last-child { border-bottom: none; }
.help-html .h-title { font-weight: 700; color: #1e3a5f; line-height: 1.5; }
.help-html .h-odds { margin: 4px 0 2px; }
.help-html .h-sub { font-size: 12px; color: #64748b; }
.modal .sheet.rec-sheet {
  /* 完整写 background，避免继承首页弹窗那张右侧铃铛图 */
  background: #fff url(/img/skin/game/record-bg.png) no-repeat top center / 100% auto;
  width: min(85vw, 400px); max-width: 400px;
  border-radius: 20px;
  padding: 12px 8px 10px;
}
.rec-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 8px 10px; font-size: 15px; color: #1f2937;
  position: relative; z-index: 1;
}
.rec-head span { cursor: pointer; padding: 4px 8px; color: #6b7280; }
.rec-sheet .rec-tabs {
  border-bottom: none; padding: 0 10px 8px; gap: 20px; font-size: 15px;
  position: relative; z-index: 1;
}
.rec-panel {
  margin: 0 2px;
  background: #fff;
  border-radius: 10px;
  min-height: 50vh;
  overflow: auto;
  position: relative; z-index: 1;
}
.rec-sheet table {
  width: 100%; background: #fff; border-radius: 10px; overflow: hidden;
  border-collapse: collapse;
}
.rec-sheet thead th {
  background: #3A80F3; color: #fff; font-weight: 700;
  text-align: center; padding: 8px 4px; border: none;
}
.rec-sheet td {
  text-align: center; padding: 6px 4px; border: none; background: #fff;
  border-bottom: none;
}
.rec-sheet tbody tr:nth-child(even) td { background: #f3f3f4; }
.rec-sheet .rec-qihao {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  white-space: nowrap;
  letter-spacing: -0.03em;
}
.rec-sheet .empty { background: #fff; margin: 0; }
.modal .sheet.notice-sheet {
  background-image: url(/img/skin/home/dialog-back-large.png);
  background-size: 100% 100%;
  background-color: #fff;
  width: min(80vw, 400px); max-width: 400px;
  border-radius: 12px;
  max-height: 70vh;
}
.modal .sheet.notice-sheet.urgent {
  background-image: url(/img/skin/home/urgent-bg.png);
  background-size: 100% 200px;
  background-repeat: no-repeat;
  background-position: top center;
  background-color: #fff;
}
.html-body {
  padding: 8px 4px 4px;
  line-height: 1.65;
  max-height: 58vh;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 14px;
}
.html-body img { max-width: 100%; height: auto; }
.modal .sheet.confirm-sheet {
  background: #fff;
  background-image: none;
  max-width: 320px;
  border-radius: 8px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.confirm-sheet h3 { font-size: 16px; margin-bottom: 4px; padding-right: 22px; }
.confirm-x {
  position: absolute; top: 8px; right: 10px;
  border: 0; background: transparent; color: #9ca3af;
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px;
}
.confirm-body {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 2px 18px; font-size: 14px; line-height: 1.55; color: #1f2937;
}
.confirm-body p { margin: 0; }
.confirm-ico {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 1px;
  background: #f59e0b; color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.confirm-btns { display: flex; justify-content: flex-end; gap: 8px; }
.confirm-btns .btn {
  width: auto; min-width: 64px; margin: 0; padding: 6px 16px;
  border-radius: 4px; font-size: 14px; font-weight: 500;
}
.confirm-btns .btn-ghost {
  background: #fff; border: 1px solid #93c5fd; color: #3b82f6;
}
.btn-danger { background: #f56c6c; color: #fff; border: 0; }
.modal .sheet.pwd-sheet {
  background-image: url(/img/skin/home/dialog-back-large.png);
  background-size: 100% 100%;
  max-width: 340px; padding: 16px 18px 14px;
}
.pwd-sheet h3 { padding-right: 24px; }
.pwd-sheet .field { margin-bottom: 10px; }
.pwd-btns { margin-top: 8px; }
.notice-sheet h3, .help-sheet h3 { padding-right: 24px; }
.sec-modal .sec-tip { font-size: 13px; color: #6b7280; margin-bottom: 10px; line-height: 1.5; }
.sec-modal .sec-err { color: #ef4444; font-size: 13px; min-height: 18px; margin: 4px 0 8px; }
.sec-modal .sec-btns { display: flex; gap: 10px; }
.sec-modal .sec-btns .btn { flex: 1; margin-top: 0; }
.modal.cs-ping { z-index: 80; }
.cs-ping-card {
  position: relative; z-index: 1;
  width: min(86vw, 340px);
  padding: 28px 22px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 42%, #eaf6ff 100%);
  box-shadow: 0 18px 40px rgba(30, 90, 160, .22);
  text-align: center;
}
.cs-ping-card h3 {
  margin: 0 18px 14px; color: #163a7a; font-size: 20px; font-weight: 800; line-height: 1.4;
}
.cs-ping-card p {
  margin: 0 0 22px; color: #4b5563; font-size: 16px;
}
.cs-ping-x {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border: 0; border-radius: 50%;
  background: transparent; color: #94a3b8; font-size: 26px; line-height: 1;
  cursor: pointer;
}
.cs-ping-go {
  display: block; width: 100%; border: 0; border-radius: 999px;
  padding: 14px 16px; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer;
  background: linear-gradient(90deg, #3ec7ff 0%, #3a8bff 100%);
  box-shadow: 0 8px 16px rgba(58, 139, 255, .35);
}
.toast {
  position: fixed; left: 50%; top: 20%; transform: translateX(-50%);
  background: rgba(15,23,42,.86); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; font-size: 13px;
}
.g-tabs-wrap { position: relative; z-index: 6; }
.bet-ok {
  position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
  z-index: 55; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  background: #f0f9eb; color: #67c23a; border: 1px solid #e1f3d8;
  border-radius: 20px; padding: 10px 18px 10px 12px;
  font-size: 15px; font-weight: 700; box-shadow: 0 8px 24px rgba(15,23,42,.18);
  max-width: 80vw; white-space: nowrap;
  animation: betOkIn .16s ease-out;
  transition: opacity .14s ease, transform .14s ease;
}
.bet-ok.out {
  opacity: 0;
  transform: translateX(-50%) scale(0.92);
}
@keyframes betOkIn {
  from { opacity: 0; transform: translateX(-50%) scale(0.92); }
  to { opacity: 1; transform: translateX(-50%) scale(1); }
}
.bet-ok-ico {
  width: 18px; height: 18px; border-radius: 50%;
  background: #67c23a; color: #fff; font-size: 12px; line-height: 18px; text-align: center;
  font-style: normal; font-weight: 700;
}
.open-note {
  position: absolute; top: 8px; left: 10px; right: 10px; z-index: 56;
  background: linear-gradient(180deg, #eaf6ff 0%, #cfe8ff 100%);
  border-radius: 14px; padding: 12px 36px 14px 16px;
  box-shadow: 0 6px 18px rgba(58,128,243,.18);
  border: 1px solid #b9d9f5;
}
.open-note-t { font-size: 15px; font-weight: 700; color: #2a4d73; margin-bottom: 6px; }
.open-note-m { font-size: 13px; color: #3d5a78; line-height: 1.55; }
.open-note-x {
  position: absolute; top: 6px; right: 10px;
  border: 0; background: transparent; color: #7a93ad;
  font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 4px;
}
.follow-page { padding-bottom: 20px; }
.follow-head {
  background: #fff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.follow-head .topbar h1 { margin-right: 28px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.follow-ico { width: 42px; height: 40px; object-fit: contain; margin-left: 4px; }
.follow-title {
  width: 70%; max-width: 280px; margin: 12px auto 8px;
  height: 32px; line-height: 32px; text-align: center;
  color: #fff; font-weight: 700; font-size: 15px;
  border-radius: 12px 0 12px 0;
}
.follow-title.blue { background: #3980f4; }
.follow-title.orange { background: #f59a23; }
.follow-box {
  background: #fff; border-radius: 12px; margin: 0 10px 8px;
  height: 35vh; overflow-y: auto; padding: 6px 8px;
}
.follow-row {
  font-size: 12px; line-height: 1.55;
  padding: 6px 8px; border-radius: 8px; margin-bottom: 4px;
  color: #111; word-break: break-all;
}
.follow-row:nth-child(odd) { background: #ececec; }
.follow-row:nth-child(even) { background: #fff; }
.follow-row span { color: #e97913; font-weight: 700; }
.rank-page { min-height: 100vh; padding-bottom: 16px; max-width: 430px; margin: 0 auto; }
.rank-head {
  background: #fff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
.rank-tabs {
  display: flex; height: 32px; margin: 0 8px 10px;
  background: #eaeffb; border-radius: 29px;
}
.rank-tabs span {
  flex: 1; text-align: center; line-height: 30px; cursor: pointer; font-size: 14px;
}
.rank-tabs span.on {
  background: #3980f4; color: #fff; border-radius: 29px;
}
.rank-podium {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin: 8px 10px 6px; gap: 4px;
}
.rank-slot { flex: 1; text-align: center; min-width: 0; }
.rank-slot.first { margin-bottom: 8px; }
.rank-slot.third { margin-bottom: -6px; }
.rank-crown { width: 40px; height: 40px; display: block; margin: 0 auto; position: relative; z-index: 2; }
.rank-slot:not(.first) .rank-crown { margin-top: 10px; }
.rank-slot.third .rank-crown { margin-top: 20px; }
.rank-frame {
  width: 80px; height: 80px; margin: -20px auto 0;
  background-size: 100% 100%; background-repeat: no-repeat;
}
.rank-frame.f1 { background-image: url(/img/skin/rank/h-1.png); }
.rank-frame.f2 { background-image: url(/img/skin/rank/h-2.png); }
.rank-frame.f3 { background-image: url(/img/skin/rank/h-3.png); }
.rank-frame img {
  width: 55px; height: 55px; border-radius: 50%; object-fit: cover;
  display: block; margin: 8px auto 0; background: #e5e7eb;
}
.rank-nick {
  display: block; max-width: 100%; padding: 0 4px; margin-top: 8px;
  font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rank-slot.first .rank-nick { margin-top: 20px; }
.rank-win { color: rgb(255,162,34); font-weight: 700; font-size: 14px; }
.rank-gift { color: rgb(117,55,17); font-size: 13px; font-weight: 700; }
.rank-table {
  background: #fff; border-radius: 15px; margin: 8px 10px 0; overflow: hidden;
}
.rank-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th {
  background: #fff; color: #333; font-weight: 700; padding: 8px 4px; text-align: center;
}
.rank-table td { text-align: center; padding: 8px 4px; border: none; }
.rank-table tr.me td { background: #ccb950; }
.rank-me {
  margin: 10px 10px 0;
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff3d6;
  border: 2px solid #f5a623;
  color: #c2410c;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.7;
}
.rank-note {
  background: #fff; border-radius: 15px; padding: 10px 20px; margin: 10px;
  font-weight: 700; font-size: 14px; line-height: 1.7;
}
.admin { max-width: 960px; margin: 0 auto; padding: 16px; }
.admin table { background: #fff; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg,#93c5fd,#3b82f6); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
img.avatar { object-fit: cover; padding: 0; }

/* ---------- 活动中心 / 藏珍秘境（老版素材） ---------- */
.act-hub {
  min-height: 100vh; padding-bottom: 24px;
  background: url(/img/act/hub-bg.png) center / 100% 100% no-repeat;
}
.act-head {
  height: 40px; display: flex; align-items: center; padding: 0 10px;
}
.act-head h1 { flex: 1; text-align: center; font-size: 20px; margin-right: 28px; letter-spacing: 2px; }
.act-hero { padding: 10px 15px 15px; }
.act-hero img { width: 180px; height: 18px; display: block; object-fit: contain; object-position: left; }
.act-hero p { color: #666; font-size: 13px; margin-top: 8px; }
.act-card {
  display: flex; align-items: center; gap: 8px;
  margin: 0 10px 10px; padding: 20px 10px;
  background-size: 100% 100%; background-repeat: no-repeat;
}
.act-card.c1 { background-image: url(/img/act/hub-card1.png); }
.act-card.c2 { background-image: url(/img/act/hub-card2.png); align-items: flex-start; }
.act-card .act-ico { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; margin: auto 0; }
.act-txt { flex: 1; min-width: 0; }
.act-txt b { display: block; font-size: 16px; margin-bottom: 4px; }
.act-txt span { font-size: 13px; color: #333; line-height: 1.45; display: block; }
.act-go {
  flex-shrink: 0; border: 0; background: #f56c6c; color: #fff;
  border-radius: 20px; padding: 8px 12px; font-size: 13px; font-weight: 700; cursor: pointer;
  min-width: 90px; margin: auto 0;
}
.chest-page {
  min-height: 100vh; padding-bottom: 28px; position: relative;
  background: url(/img/act/page-bg.png) center / 100% 100% no-repeat;
}
.chest-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px 0;
  position: relative;
  z-index: 6;
}
.chest-nav-r { display: flex; align-items: center; gap: 10px; }
.chest-rec { color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chest-title { display: block; width: 220px; margin: 8px auto 10px; }
.chest-today {
  width: 250px; height: 80px; margin: 0 auto 8px; padding: 8px 10px;
  background: url(/img/act/progress-bg.png) center / 100% 100% no-repeat;
  color: #fff; font-size: 14px;
}
.chest-today .lab { display: flex; justify-content: space-between; }
.chest-today .track, .mini-track {
  position: relative; height: 16px; margin-top: 8px;
  background: #b3d4dd; border-radius: 8px; overflow: hidden;
}
.chest-today .track i, .mini-track i {
  display: block; height: 100%; background: #409eff; width: 0;
}
.chest-today .track em, .mini-track em {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #fff; font-style: normal;
}
.chest-row {
  width: 90%; height: 100px; margin: 10px auto; position: relative;
  display: flex; align-items: center;
  background: url(/img/act/row-bg.png) center / 100% 100% no-repeat;
}
.chest-row .xh {
  position: absolute; top: 2px; left: 10px; color: #fff; font-size: 15px; font-weight: 700;
  text-shadow: 0 1px 1px rgba(0,70,140,.45);
}
.box-img { width: 70px; height: 70px; object-fit: contain; margin: 0 10px 0 20px; flex-shrink: 0; }
.chest-info { flex: 1; min-width: 0; padding-right: 8px; }
.nm-row { display: flex; align-items: center; gap: 4px; }
.chest-info .nm {
  color: #6193fb; font-size: 18px; font-weight: 700; width: 80px; flex-shrink: 0; margin-left: -5px;
}
.mini-track { flex: 1; width: 90%; margin-top: 0; margin-bottom: -2px; }
.act-line { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; margin-top: 4px; }
.act-line b { color: #fd889a; }
.chest-btn {
  border: 0; border-radius: 18px; width: 80px; height: 28px;
  font-size: 14px; font-weight: 700; color: #fff; cursor: pointer; flex-shrink: 0; margin-left: auto;
}
.chest-btn.claim { background: #f56c6c; }
.chest-btn.lock, .chest-btn.done { background: #c4c4c4; cursor: default; }
.chest-rule {
  width: 90%; margin: 10px auto 0; padding-bottom: 20px;
  background: url(/img/act/rule-bg.png) center / 100% 100% no-repeat;
}
.rule-h { text-align: center; font-size: 16px; color: #fff; padding-top: 8px; }
.rule-lead { color: #4c8bf4; margin: 16px 28px; text-align: center; font-size: 13px; line-height: 1.6; }
.rule-body { margin: 10px 20px; color: #4c8bf4; font-size: 13px; line-height: 1.7; }
.chest-mask {
  position: fixed; inset: 0; z-index: 40; background: rgba(8,20,40,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.chest-pop { text-align: center; color: #fff; }
.chest-pop .cong {
  letter-spacing: 2px; font-size: 22px; color: #fedc69;
  text-shadow: 1px 1px 2px #fff, -1px -1px 2px #000;
}
.win-box { width: 150px; height: 150px; display: block; margin: 8px auto; object-fit: contain; }
.chest-pop .got {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  letter-spacing: 2px; font-size: 22px; color: #fff;
  text-shadow: 1px 1px 2px #fff, -1px -1px 2px #000; margin-bottom: 12px;
}
.chest-pop .got img { width: 28px; height: 28px; }
.chest-x {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: #a6a6a6; color: #fff; font-size: 18px; cursor: pointer;
}
.chest-logs {
  width: min(380px, 90vw); background: #9ec0f2; border-radius: 16px;
  border: 1px solid #fff; min-height: 100px; max-height: 70vh; overflow: auto; padding-bottom: 12px;
}
.log-title {
  width: 170px; margin: 0 auto 8px; background: #7da9e4; color: #fff;
  text-align: center; font-size: 18px; font-weight: 700; padding: 5px 10px;
  border-bottom-left-radius: 16px; border-bottom-right-radius: 16px;
}
.log-head, .chest-logs .log-row {
  display: grid; grid-template-columns: 1fr .6fr 1.4fr; gap: 4px;
  padding: 8px 10px; text-align: center; font-size: 13px; color: #333;
}
.log-head { font-weight: 700; }
.chest-logs .empty { color: #fff; text-align: center; padding: 18px 8px; }
.chest-x.dark { display: block; margin: 10px auto 0; }

/* ---------- 噜噜王国 ---------- */
.lulu-page .g-rooms span { font-size: 12px; }
.lulu-page .g-nums {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.lulu-page.lulu-cock .g-nums,
.lulu-page.lulu-pk .g-nums { grid-template-columns: 1fr 1fr; }
.lulu-page.lulu-steal .g-nums,
.lulu-page.lulu-race .g-nums,
.lulu-page.lulu-ydh .g-nums,
.lulu-page.lulu-dscj .g-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lulu-page.lulu-dts .g-nums { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lulu-page.lulu-dts .trend .tablezy,
.lulu-page.lulu-ydh .trend .tablezy,
.lulu-page.lulu-dscj .trend .tablezy,
.lulu-page.lulu-pk .trend .tablezy {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}
.lulu-page.lulu-dts .trend .tablezy tr:first-child > th:first-child,
.lulu-page.lulu-ydh .trend .tablezy tr:first-child > th:first-child,
.lulu-page.lulu-dscj .trend .tablezy tr:first-child > th:first-child,
.lulu-page.lulu-pk .trend .tablezy tr:first-child > th:first-child {
  width: 48px;
}
.lulu-page.lulu-dts .trend .tablezy th,
.lulu-page.lulu-dts .trend .tablezy td,
.lulu-page.lulu-ydh .trend .tablezy th,
.lulu-page.lulu-ydh .trend .tablezy td,
.lulu-page.lulu-dscj .trend .tablezy th,
.lulu-page.lulu-dscj .trend .tablezy td,
.lulu-page.lulu-pk .trend .tablezy th,
.lulu-page.lulu-pk .trend .tablezy td {
  font-size: 10px;
  padding: 0 1px;
}
.lulu-page.lulu-dts .trend .qihao,
.lulu-page.lulu-ydh .trend .qihao,
.lulu-page.lulu-dscj .trend .qihao,
.lulu-page.lulu-pk .trend .qihao {
  width: 48px;
  font-size: 11px;
  letter-spacing: -0.4px;
  white-space: nowrap;
  word-break: keep-all;
}
.lulu-page.lulu-dts .trend-logo,
.lulu-page.lulu-ydh .trend-logo,
.lulu-page.lulu-dscj .trend-logo,
.lulu-page.lulu-pk .trend-logo {
  width: 52px;
  max-width: 100%;
  height: 16px;
}
.lulu-page.lulu-dts .kill-dot,
.lulu-page.lulu-ydh .kill-dot,
.lulu-page.lulu-dscj .kill-dot,
.lulu-page.lulu-pk .kill-dot {
  width: 11px;
  height: 11px;
  padding: 1px;
}
.lulu-page .g-nums.nums-steal {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.lulu-page .g-nums.nums-steal button {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.lulu-page .g-nums button {
  font-size: 12px; min-height: 30px; line-height: 1.15; padding: 4px 2px;
}
.lulu-page.lulu-steal .g-nums button,
.lulu-page.lulu-race .g-nums button {
  font-size: 14px;
}
.lulu-page .g-attrs {
  display: flex; gap: 8px; justify-content: stretch;
  margin: 4px 0 10px;
}
.lulu-page .g-attrs button {
  flex: 1; min-width: 0; min-height: 36px;
  font-size: 15px; font-weight: 800; padding: 6px 4px;
}
.lulu-hist {
  background: #fff;
  border-radius: 16px;
  margin: 0 10px 16px;
  padding: 10px 10px 6px;
}
.lulu-hist-h {
  font-weight: 800;
  font-size: 15px;
  padding: 4px 6px 8px;
}
.lulu-hist table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lulu-hist th, .lulu-hist td { padding: 8px 6px; text-align: center; border-top: 1px solid #eef2f8; }
.lulu-hist th { color: #64748b; font-weight: 700; }

.mine-pack { margin-top: 2px; width: min(100%, 168px); }
.mine-env {
  position: relative;
  background: linear-gradient(180deg, #ff4d4f 0%, #c81e1e 55%, #9b1212 100%);
  border-radius: 11px;
  padding: 10px 10px 8px;
  color: #fff7e6;
  box-shadow: 0 6px 14px rgba(185, 28, 28, .32);
  overflow: hidden;
}
.mine-env::before {
  content: "";
  position: absolute; left: -18%; right: -18%; top: -26px; height: 52px;
  background: #ffd666;
  border-radius: 0 0 50% 50%;
  opacity: .95;
}
.mine-env.over { filter: grayscale(.35) brightness(.88); }
.mine-env-tag {
  position: relative; z-index: 1;
  font-size: 10px; font-weight: 800; letter-spacing: .5px;
  color: #7c2d12; text-align: center; margin-bottom: 10px;
}
.mine-kai {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin: 2px auto 6px;
  border: 2px solid #ffe9a3; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffe082, #f59e0b 55%, #d97706);
  color: #7c2d12; font-size: 18px; font-weight: 900;
  box-shadow: 0 4px 0 #b45309, 0 6px 10px rgba(0,0,0,.22);
  cursor: pointer;
}
.mine-kai:disabled { cursor: default; opacity: .55; box-shadow: none; }
.mine-env-amt { position: relative; z-index: 1; text-align: center; font-weight: 800; font-size: 13px; }
.mine-env-s { position: relative; z-index: 1; text-align: center; font-size: 11px; opacity: .9; margin-top: 2px; }
.mine-detail-btn {
  display: block; width: 100%; margin-top: 4px;
  border: 0; background: transparent; color: #b45309;
  font-size: 11px; font-weight: 700; cursor: pointer; padding: 2px 0;
}
.mine-pop .mine-send {
  position: relative; z-index: 1;
  width: min(92vw, 360px);
  border-radius: 18px;
  padding: 18px 16px 16px;
  color: #fff7ed;
  background: linear-gradient(165deg, #ff6b35 0%, #d7263d 48%, #8b1e3f 100%);
  box-shadow: 0 18px 40px rgba(127, 29, 29, .45);
  max-height: 86vh; overflow: auto;
}
.mine-send h3 { color: #fff7ed !important; text-align: center; margin: 0 0 6px; font-size: 20px; text-shadow: 0 2px 0 rgba(0,0,0,.2); }
.mine-send .mine-send-sub { text-align: center; font-size: 12px; opacity: .92; margin-bottom: 12px; }
.mine-send label { display: block; font-size: 12px; font-weight: 800; margin: 8px 0 6px; }
.mine-assets, .mine-digits, .mine-amts { display: flex; flex-wrap: wrap; gap: 6px; }
.mine-chip {
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12);
  color: #fff7ed; border-radius: 16px; padding: 5px 10px; font-size: 12px; font-weight: 800; cursor: pointer;
}
.mine-chip.on { background: #fde68a; color: #9a3412; border-color: #fde68a; }
.mine-send .mine-input {
  width: 100%; border: 0; border-radius: 10px; padding: 9px 10px;
  font-size: 15px; font-weight: 700; color: #7c2d12;
}
.mine-send-bal { font-size: 12px; margin-top: 6px; opacity: .95; }
.mine-send-go {
  width: 100%; margin-top: 14px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffe082, #f59e0b); color: #7c2d12;
  font-size: 16px; font-weight: 900; padding: 11px 0; cursor: pointer;
}
.mine-send-go:disabled { opacity: .6; cursor: default; }
.mine-send-cancel { width: 100%; margin-top: 8px; border: 0; background: transparent; color: #ffe4c7; font-size: 13px; cursor: pointer; }
.mine-result {
  position: relative; z-index: 1;
  width: min(86vw, 320px); text-align: center;
  border-radius: 20px; padding: 22px 18px 16px;
  color: #fff; max-height: 86vh; overflow: auto;
}
.mine-result.win { background: linear-gradient(180deg, #fb923c, #dc2626 60%, #9f1239); }
.mine-result.boom { background: linear-gradient(180deg, #64748b, #334155 55%, #1e293b); }
.mine-result.note {
  background: #fff7ed; color: #7c2d12;
  box-shadow: 0 16px 36px rgba(0,0,0,.28);
}
.mine-result.note h3 { color: #9a3412 !important; }
.mine-result.note .mine-result-unit { color: #9a3412; opacity: 1; font-size: 15px; line-height: 1.6; }
.mine-result.note .mine-result-ok { background: #fdba74; color: #7c2d12; }
.mine-face { font-size: 64px; line-height: 1; filter: drop-shadow(0 6px 0 rgba(0,0,0,.15)); }
.mine-result h3 { color: #fff !important; margin: 10px 0 6px; font-size: 22px; }
.mine-result-num { font-size: 36px; font-weight: 900; letter-spacing: 1px; margin: 8px 0 4px; }
.mine-result-unit { font-size: 14px; opacity: .95; }
.mine-result-ok {
  margin-top: 16px; width: 100%; border: 0; border-radius: 12px;
  padding: 10px 0; font-weight: 800; cursor: pointer;
  background: #fff; color: #9a3412;
}
.mine-result.boom .mine-result-ok { color: #334155; }
.mine-detail {
  position: relative; z-index: 1;
  width: min(92vw, 380px); max-height: 82vh; overflow: auto;
  background: #fff7ed; border-radius: 16px; padding: 14px 14px 12px; color: #7c2d12;
}
.mine-detail h3 { color: #9a3412 !important; text-align: center; margin: 0 0 8px; }
.mine-detail-meta { font-size: 13px; line-height: 1.7; margin-bottom: 10px; }
.mine-detail-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 0; border-top: 1px dashed #fdba74; font-size: 13px;
}
.mine-detail-who { font-weight: 800; }
.mine-detail-amt { font-size: 12px; line-height: 1.55; }
.mine-detail-amt b { display: block; color: inherit; }
.mine-detail-row b { color: #c2410c; }
.mine-detail-row.boom { color: #b91c1c; }
.mine-detail-row.ok { color: #15803d; }
.mine-detail-x { width: 100%; margin-top: 10px; border: 0; border-radius: 10px; padding: 8px 0; background: #fdba74; color: #7c2d12; font-weight: 800; cursor: pointer; }
