/* ============ 区块抽奖看板 · 清新版主题 ============ */
:root {
  --bg: #eef4f6;
  --card: #ffffff;
  --ink: #1e293b;
  --ink-soft: #64748b;
  --line: #e6edf3;
  --teal: #0d9488;
  --teal-deep: #0f766e;
  --teal-soft: #ecfdf9;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(13, 60, 80, .07);
  --shadow-hover: 0 6px 22px rgba(13, 60, 80, .12);
}

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

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(13, 148, 136, .10), transparent 60%),
    radial-gradient(900px 420px at -10% 10%, rgba(37, 99, 235, .08), transparent 55%),
    var(--bg);
  color: var(--ink); font-size: 14px; line-height: 1.6;
  min-height: 100vh;
}

.mono { font-family: Consolas, Menlo, "JetBrains Mono", monospace; font-size: .92em; }
/* 完整哈希显示：允许任意位置换行，避免溢出 */
.hash-full { word-break: break-all; overflow-wrap: anywhere; line-height: 1.5; }
.muted { color: var(--ink-soft); font-size: .9em; }
.empty { text-align: center; color: var(--ink-soft); padding: 26px 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============ 顶部导航 ============ */
.site-nav {
  background: rgba(13, 110, 138, .96);
  border-top: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 2px 10px rgba(13, 60, 80, .10);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-item {
  color: rgba(255, 255, 255, .82); text-decoration: none;
  padding: 11px 16px; font-size: 14px; white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, background .15s ease;
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .10); }
.nav-item.nav-active { color: #fff; font-weight: 600; border-bottom-color: #fff; }

/* ============ 未开发功能占位页 ============ */
.soon-home {
  color: rgba(255, 255, 255, .9); text-decoration: none;
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .38);
  transition: background .15s ease;
}
.soon-home:hover { background: rgba(255, 255, 255, .16); }
.soon-wrap { max-width: 720px; margin: 64px auto 40px; padding: 0 16px; }
.soon-card {
  text-align: center; padding: 56px 28px 48px;
  animation: fadeUp .35s ease both;
}
.soon-icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; color: var(--teal-deep);
  background: var(--teal-soft); border: 1px solid #b6e7df;
  border-radius: 22px;
}
.soon-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.soon-desc { color: var(--ink-soft); font-size: 14px; max-width: 420px; margin: 0 auto 26px; }
.soon-tip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--amber-soft); border: 1px dashed #fcd34d;
  color: #92400e; font-size: 14px; font-weight: 600;
}
.soon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); animation: pulse 2s ease-in-out infinite;
}
.soon-back {
  display: inline-block; margin-top: 26px;
  color: var(--teal-deep); text-decoration: none;
  font-size: 14px; padding: 9px 22px; border-radius: 10px;
  border: 1px solid #bfe5e0; background: var(--teal-soft);
  transition: background .15s ease;
}
.soon-back:hover { background: #d9f5ef; }
@media (max-width: 640px) {
  .soon-wrap { margin-top: 34px; }
  .soon-card { padding: 40px 18px 34px; }
}

.site-header {
  background: linear-gradient(120deg, #0f766e 0%, #0e7490 55%, #1d4ed8 130%);
  color: #fff; padding: 18px 24px;
  box-shadow: 0 2px 18px rgba(14, 116, 144, .35);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.brand-text h1 { font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: rgba(255, 255, 255, .78); }
.header-right { display: flex; gap: 12px; align-items: center; }
.server-time { font-size: 12.5px; color: rgba(255, 255, 255, .8); }

/* ============ 徽章 ============ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.badge-ok   { background: var(--green-soft); color: var(--green); border-color: #a7f3d0; }
.badge-bad  { background: var(--red-soft);   color: var(--red);   border-color: #fecaca; }
.badge-run  { background: var(--blue-soft);  color: var(--blue);  border-color: #bfdbfe; }
.badge-draw {
  background: var(--amber-soft); color: var(--amber);
  border-color: #fde68a;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, .30); }
  50%      { box-shadow: 0 0 0 7px rgba(217, 119, 6, 0); }
}

/* ============ 主区域 ============ */
main { max-width: 1280px; margin: 0 auto; padding: 20px 16px 6px; }
.top-grid {
  display: grid; grid-template-columns: minmax(310px, 5fr) minmax(430px, 7fr);
  gap: 16px;
}
@media (max-width: 960px) { .top-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(230, 237, 243, .9);
  box-shadow: var(--shadow);
  padding: 18px 20px; margin-bottom: 16px;
  animation: fadeUp .45s ease both;
  transition: box-shadow .25s;
}
.card:hover { box-shadow: var(--shadow-hover); }

.card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px; flex-wrap: wrap;
}
.card-head h2 {
  font-size: 15.5px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.card-head h2::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--teal), var(--blue));
}
.head-note { font-size: 12px; color: var(--ink-soft); }

/* ============ 状态卡 · 大字号高度 ============ */
.hero-height {
  display: flex; align-items: center;
  background: linear-gradient(135deg, #f0fbf8, #eef4ff);
  border: 1px solid #e2efe9; border-radius: 14px;
  padding: 16px 10px; margin-bottom: 14px;
}
.hero-item { flex: 1; text-align: center; }
.hero-label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 4px; }
.hero-value {
  font-family: Consolas, Menlo, monospace;
  font-size: 30px; font-weight: 700; color: var(--ink);
  letter-spacing: .5px; line-height: 1.2;
}
.hero-teal { color: var(--teal-deep); }
.hero-divider { width: 1px; height: 44px; background: #d7e5e0; }

.progress {
  height: 12px; background: #e8eef2; border-radius: 999px;
  margin: 4px 0 12px; overflow: hidden; position: relative;
}
#progress-bar {
  height: 100%; width: 0; border-radius: 999px; transition: width .6s ease, background .4s ease;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  position: relative; overflow: hidden;
}
/* 收集满锁定：金橙渐变，表示本轮已锁定等待开奖 */
#progress-bar.locked {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, .25) inset;
}
#progress-bar::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  animation: shimmer 2.2s linear infinite;
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
/* 开奖瞬间脉冲动画 */
#progress-bar.draw-pulse {
  animation: drawPulse 2.2s ease;
}
@keyframes drawPulse {
  0%   { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); transform: scaleY(1); }
  20%  { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); transform: scaleY(1.3); }
  60%  { transform: scaleY(0.9); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); transform: scaleY(1); }
}

.waiting-tip {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--teal-deep);
  background: #f0fdf8; border: 1px solid #c9f0e3;
  border-radius: 10px; padding: 9px 12px; margin-bottom: 12px;
  line-height: 1.5;
}
.waiting-tip svg { flex-shrink: 0; }
.waiting-tip.waiting {
  color: #b45309; background: #fffbeb; border-color: #fde68a;
}
.waiting-tip.waiting svg { stroke: #f59e0b; }

.kv { list-style: none; }
.kv li {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 7px 2px; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.kv li:last-child { border-bottom: none; }
.kv li span { color: var(--ink-soft); }
.kv li b { font-weight: 600; }

/* ============ 表格 ============ */
.tbl-wrap {
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td {
  padding: 9px 10px; border-bottom: 1px solid var(--line);
  text-align: left; word-break: break-all; font-size: 13.5px;
}
/* 地址列：完整显示 34 字符地址，不省略 */
.tbl .addr-cell { white-space: nowrap; }
.tbl .addr-line { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tbl .addr-line > span:first-child { white-space: nowrap; }
/* TXID 列：完整一行显示，不换行；容器不够宽时由 .scroll-x 横向滚动 */
.tbl .hash-full { white-space: nowrap; word-break: keep-all; }
.tbl thead th {
  background: #f7fafb; color: var(--ink-soft);
  font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover { background: var(--teal-soft); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.scroll-x { overflow-x: auto; }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-thumb { background: #cddbe2; border-radius: 999px; }

.win-row { background: linear-gradient(90deg, #fef9ec, #fffdf8); }
.win-row:hover { background: #fef3d9 !important; }
/* 中奖行文字用金棕色，与普通行区分 */
.win-row td { border-bottom-color: #f6e7bd; color: #b45309; font-weight: 600; }

.win-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 2px 11px; border-radius: 999px;
  box-shadow: 0 1px 5px rgba(217, 119, 6, .4);
  white-space: nowrap; letter-spacing: 1px;
}
.win-tag svg { flex-shrink: 0; }

/* 地址列：奖杯标签居中在地址文字与金额之间的空白处 */
.addr-line { display: flex; align-items: center; }
.addr-line .win-slot {
  flex: 1; display: flex;
  justify-content: center; padding-left: 12px;
}

/* ============ 参与者卡片列表 ============ */
.player-list { display: flex; flex-direction: column; gap: 10px; }
.player-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: linear-gradient(135deg, #fafaff, #f5f7fb);
  border: 1px solid #e8eaf2;
  border-radius: 12px;
  padding: 14px 16px;
  transition: box-shadow .2s, transform .15s, border-color .2s;
  animation: fadeUp .35s ease both;
}
.player-card:hover {
  box-shadow: 0 4px 16px rgba(99, 102, 241, .12);
  transform: translateY(-1px);
  border-color: #c7d2fe;
}
.player-no {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(99, 102, 241, .35);
}
.player-main { flex: 1; min-width: 0; }
.player-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 7px;
}
.player-addr {
  font-size: 14px; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.player-amount {
  flex-shrink: 0;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff; font-size: 12.5px; font-weight: 700;
  padding: 3px 13px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(16, 185, 129, .35);
}
/* 确认数状态徽章 */
.badge {
  flex-shrink: 0; font-size: 11.5px; padding: 2px 9px;
  border-radius: 999px; font-weight: 600; letter-spacing: .2px;
  white-space: nowrap;
}
.badge.pending {
  background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
}
.badge.confirmed {
  background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7;
}
/* 待确认卡片轻微黄调边框 */
.player-card.card-pending { border-color: #fcd34d; }
.player-card.card-confirmed { }

.player-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-soft);
  margin-top: 2px;
}
.player-meta .mono { font-size: 12px; }

/* ============ 历史轮次卡片 ============ */
#history-list { margin-top: 2px; }
.round-item {
  border: 1px solid var(--line); border-left: 4px solid var(--teal);
  border-radius: 12px; padding: 13px 16px; margin-bottom: 12px;
  background: #fcfefe;
  animation: fadeUp .4s ease both;
  transition: box-shadow .2s, transform .2s;
}
.round-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.round-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.round-no {
  font-weight: 700; color: var(--teal-deep); font-size: 15px;
  background: var(--teal-soft); border: 1px solid #c8ece4;
  padding: 2px 12px; border-radius: 999px;
}
.round-head .muted { font-size: 12.5px; }
.round-head .badge { font-size: 12px; padding: 2px 10px; }

.winner-line {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-soft); border: 1px solid #fde68a;
  border-radius: 999px; padding: 4px 14px; margin-bottom: 10px; font-size: 13.5px;
}
.winner-line b { color: var(--amber); }

.hash-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px;
  margin-bottom: 10px; font-size: 12.5px; color: var(--ink);
}
.hash-grid .wide { grid-column: 1 / -1; }
.hash-grid .muted { display: inline-block; min-width: 92px; }

/* ============ 分页 ============ */
.pager {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
  justify-content: center; padding-top: 8px;
}
.pager span { font-size: 13px; color: var(--ink-soft); }
.pager button {
  padding: 7px 16px; border: 1px solid #d4e0e6;
  background: #fff; color: var(--ink); border-radius: 999px;
  cursor: pointer; font-size: 13px; transition: all .2s;
}
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager button:hover:not(:disabled) {
  border-color: var(--teal); color: var(--teal-deep);
  background: var(--teal-soft);
}
.page-numbers { display: inline-flex; gap: 4px; align-items: center; }
.page-numbers .page-num {
  padding: 5px 11px; border: 1px solid #d4e0e6;
  background: #fff; color: var(--ink); border-radius: 999px;
  cursor: pointer; font-size: 12.5px; min-width: 28px;
}
.page-numbers .page-num.active {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.page-numbers .page-dots { color: var(--ink-soft); padding: 0 4px; font-size: 12px; }

/* ============ 页脚 ============ */
.site-footer {
  max-width: 1280px; margin: 0 auto;
  text-align: center; color: var(--ink-soft); font-size: 12.5px;
  padding: 12px 16px 26px; line-height: 1.7;
}
#rule-hint {
  margin: 0 0 4px; font-size: 13px; color: var(--teal-deep); font-weight: 600;
}
.foot-sub { margin: 0; font-size: 12px; color: var(--ink-soft); }

/* ============ 友情链接：深色品牌条 + 圆形图标 ============ */
.fl-bar {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  max-width: none; margin: 0; padding: 16px 22px; text-align: left;
  background: linear-gradient(115deg, #0c2f2d 0%, #134e4a 62%, #0f766e 100%);
  border-radius: 16px; box-shadow: 0 10px 26px rgba(12, 47, 45, .16);
}
.fl-bar .fl-cap {
  flex: none; font-size: 11px; letter-spacing: 2px; line-height: 1.5;
  color: rgba(255, 255, 255, .42);
  padding-right: 22px; border-right: 1px solid rgba(255, 255, 255, .14);
}
.fl-bar .fl-cap b { display: block; margin-top: 2px; font-size: 13px; letter-spacing: 0; color: #fff; font-weight: 600; }
.fl-links { display: flex; flex: 1; gap: 26px; flex-wrap: wrap; justify-content: space-around; }
.fl-links a { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 104px; text-decoration: none; }
.fl-links .ring {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(94, 234, 212, .30);
  color: #5eead4; transition: .2s;
}
.fl-links .ring svg { width: 19px; height: 19px; }
.fl-links .nm { font-size: 12.5px; font-weight: 600; color: #e6f4f1; white-space: nowrap; }
.fl-links .ds { font-size: 10.5px; color: rgba(255, 255, 255, .40); font-family: Consolas, Menlo, monospace; white-space: nowrap; }
.fl-links a:hover .ring {
  background: #5eead4; color: #0c2f2d; border-color: #5eead4;
  transform: translateY(-3px); box-shadow: 0 8px 18px rgba(94, 234, 212, .28);
}
.fl-links a:hover .nm { color: #fff; }
.fl-links a:hover .ds { color: rgba(94, 234, 212, .75); }
@media (max-width: 640px) {
  .fl-bar { gap: 14px; padding: 14px 16px; }
  .fl-bar .fl-cap { padding-right: 14px; }
  .fl-links { gap: 16px; }
  .fl-links a { width: 84px; }
}

/* ============ 运行状态：信息在上 + 二维码在下 ============ */
.status-grid {
  display: flex; flex-direction: column; gap: 14px;
}
.status-main { min-width: 0; }

.qr-box {
  display: flex; align-items: flex-start; justify-content: space-around;
  gap: 14px; flex-wrap: wrap;
  background: var(--teal-soft);
  border: 1px solid #b5e8dd;
  border-radius: 14px;
  padding: 14px 14px 10px;
  margin-top: 4px;
}
/* 三个二维码均分一行：标题在上、120×120 码居中、地址在下 */
.qr-item {
  flex: 1 1 0; min-width: 118px; max-width: 150px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.qr-canvas { width: 120px; height: 120px; }
.qr-canvas img, .qr-canvas canvas {
  display: block; width: 120px; height: 120px;
  border-radius: 10px; background: #fff;
  box-shadow: 0 1px 6px rgba(13, 118, 110, .18);
}
.qr-caption {
  margin: 0 0 6px; font-size: 12.5px; font-weight: 700;
  color: var(--teal-deep); white-space: nowrap;
}
.qr-addr {
  margin: 6px 0 0; font-size: 10.5px; color: var(--ink-soft);
  word-break: break-all; line-height: 1.35; max-width: 120px;
}
/* 捐赠二维码折叠卡片：默认只显示图标占位，点击才展开收款码 */
.qr-fold .qr-toggle {
  width: 120px; height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 0;
  border: 1px dashed #9fd9cd; border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.qr-fold .qr-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--teal-deep);
  box-shadow: 0 4px 12px rgba(13, 118, 110, .16);
}
.qr-fold .qr-icon { font-size: 34px; line-height: 1; }
.qr-fold .qr-toggle-text { font-size: 11px; color: var(--ink-soft); }
.qr-fold.open .qr-toggle { display: none; }
.qr-panel { display: flex; flex-direction: column; align-items: center; }
.qr-panel[hidden] { display: none; }
.qr-copy {
  margin-top: 6px; padding: 3px 10px;
  font-size: 11px; border-radius: 999px;
  border: 1px solid #b5e8dd; background: #fff; color: var(--teal-deep);
  cursor: pointer;
}
.qr-copy:hover { background: var(--teal-soft); }
/* 展开时：当前格放大，其余格变淡，进一步降低扫错概率 */
.qr-box.has-open .qr-item:not(.open) { opacity: .45; transition: opacity .18s ease; }
.qr-box.has-open .qr-fold.open { transform: scale(1.06); transition: transform .18s ease; }
/* 二维码下方：参与金额的人民币估值说明 */
.rate-note {
  margin: 12px 0 0; padding-top: 10px;
  border-top: 1px dashed var(--line, #e2e8f0);
  font-size: 12px; line-height: 1.5; text-align: center;
  color: var(--ink-soft);
}

/* ==================== 支持开发者（页面最后） ==================== */
.dev-body {
  display: flex; flex-wrap: wrap; align-items: flex-start;
  justify-content: space-around; gap: 20px;
  margin-top: 10px;
}
.dev-col {
  flex: 1 1 240px; max-width: 360px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.dev-col .qr-caption { margin-bottom: 8px; }
.addr-box {
  width: 100%; max-width: none; margin: 6px 0 0; padding: 10px 12px;
  background: var(--teal-soft);
  border: 1px solid #b5e8dd; border-radius: 10px;
  font-size: 12px; color: var(--ink); word-break: break-all; line-height: 1.5;
  text-align: center;
}
.dev-tip {
  margin: 8px 0 0; font-size: 11.5px; line-height: 1.5;
  color: var(--ink-soft); max-width: 330px;
}

@media (max-width: 900px) {
  .qr-box { justify-content: center; gap: 12px; }
  .qr-item { max-width: 130px; }
}

/* ==================== 捐赠鸣谢 ==================== */
.donors-total { font-size: 12.5px; color: var(--ink-soft); }
.donors-body { margin-top: 10px; }
.donors-empty {
  margin: 0; padding: 14px 0; text-align: center;
  font-size: 12.8px; color: var(--ink-soft);
}
.donor-table { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.donor-table th {
  text-align: left; font-weight: 600; font-size: 12px; color: var(--ink-soft);
  padding: 6px 10px; border-bottom: 1px solid #eef2f6; white-space: nowrap;
}
.donor-table th.th-amount { text-align: right; }
.donor-table td { padding: 7px 10px; border-bottom: 1px solid #f4f7fa; }
.donor-table tr:last-child td { border-bottom: none; }
.donor-rank { width: 34px; color: var(--ink-soft); font-weight: 700; }
.donor-addr { white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; }
.donor-amt { color: var(--teal-deep); font-weight: 700; white-space: nowrap; text-align: right; }
.donor-times, .donor-time { color: var(--ink-soft); white-space: nowrap; font-size: 12px; }
.donor-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  font-family: inherit; font-size: 10.5px; font-weight: 600; vertical-align: 1px;
}
.donor-tag.tag-grand { color: #7c2d12; background: #fef3c7; border: 1px solid #fcd34d; }
.donor-tag.tag-dev   { color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0; }
.donor-note {
  margin: 9px 0 0; font-size: 11.8px; color: var(--ink-soft); text-align: right;
}

/* 拆分后的子榜（大奖池加码 / 支持开发）—— 折叠展开 */
.donor-sub { margin-top: 12px; }
.donor-sub:first-child { margin-top: 0; }
.donor-sub > summary {
  cursor: pointer;
  list-style: none;
  outline: none;
  display: block;
  user-select: none;
}
.donor-sub > summary::-webkit-details-marker { display: none; }
.donor-sub-arrow {
  display: inline-block; width: 14px; font-size: 11px; color: #94a3b8;
  transition: transform .18s ease;
}
.donor-sub:not([open]) .donor-sub-arrow::before { content: "▶"; }
.donor-sub[open] .donor-sub-arrow::before       { content: "▾"; }
.donor-sub-body { padding: 2px 4px 2px 18px; }  /* 左边缩进对齐箭头之后 */

.donor-sub-title {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; margin-bottom: 4px;
  border-radius: 8px;
  background: #f8fafc;
  border-left: 3px solid #cbd5e1;
  font-size: 12.5px;
}
.donor-sub-badge {
  font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  letter-spacing: 0.3px;
}
.donor-sub-badge.badge-grand { color: #7c2d12; background: #fef3c7; border: 1px solid #fcd34d; }
.donor-sub-badge.badge-dev   { color: #0f766e; background: #ecfdf5; border: 1px solid #a7f3d0; }
.donor-sub-head { font-weight: 600; color: var(--ink); }
.donor-sub-sum { margin-left: auto; color: var(--ink-soft); font-size: 12px; }

@media (max-width: 600px) {
  .donor-sub-title { flex-wrap: wrap; gap: 4px 8px; padding: 7px 10px; }
  .donor-sub-sum { margin-left: 0; width: 100%; }
}
.toast-donate { font-weight: 600; }

@media (max-width: 900px) {
  .donor-time { display: none; }
}

/* ==================== 玩法说明 ==================== */
.rules-wrap { padding: 0; overflow: hidden; }
#rules-box > summary {
  cursor: pointer; list-style: none; outline: none;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px;
  padding: 16px 20px;
}
#rules-box > summary::-webkit-details-marker { display: none; }
#rules-box > summary::before {
  content: "▸"; color: #94a3b8; font-size: 12px; line-height: 1;
}
#rules-box[open] > summary::before { content: "▾"; }
.rules-title { font-size: 15px; font-weight: 700; color: var(--teal-deep); }
.rules-digest { font-size: 12.5px; color: var(--ink-soft); }

.rules-body { padding: 2px 20px 18px; border-top: 1px solid #eef2f6; }
.rule-sec { margin-top: 14px; }
.rule-sec h3 {
  margin: 0 0 6px; font-size: 13.5px; color: var(--teal-deep);
  display: flex; align-items: center; gap: 6px;
}
.rule-sec h3::before {
  content: ""; width: 3px; height: 13px; border-radius: 2px;
  background: var(--teal, #0f766e);
}
.rule-sec ul { margin: 0; padding-left: 18px; }
.rule-sec li { margin: 4px 0; font-size: 12.8px; line-height: 1.7; color: var(--ink); }
.rule-tier { border-collapse: collapse; margin: 8px 0 4px; font-size: 12.5px; }
.rule-tier th, .rule-tier td { border: 1px solid #e6edf3; padding: 4px 14px; text-align: left; }
.rule-tier th { background: #f6faf9; color: var(--ink-soft); font-weight: 600; }
.rule-tip { margin: 6px 0 0; font-size: 12.5px; color: var(--amber); }
.rule-about p { margin: 6px 0; font-size: 12.8px; line-height: 1.75; color: var(--ink); }
.rule-about b { color: var(--teal-deep); }
.rule-warn { color: #b45309; font-size: 12px; }

@media (max-width: 900px) {
  .rules-digest { display: none; }
}

/* ========== 大奖池（通栏横幅） ========== */
.grand-pool-wrap { padding: 18px 22px; }
.grand-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.grand-title { font-size: 18px; font-weight: 700; color: #0f766e; }
.grand-sub { font-size: 12.5px; color: #94a3b8; }

/* 左：金额+进度 | 右：奖档表 */
.grand-cols {
  display: grid; grid-template-columns: minmax(280px, 5fr) minmax(380px, 7fr);
  gap: 24px; align-items: start;
}
.grand-left { display: flex; flex-direction: column; gap: 14px; }
.grand-right { border-left: 1px dashed #e2e8f0; padding-left: 24px; }

.grand-pool-amount { position: relative; padding: 2px 0 0; }
.grand-num { font-size: 42px; font-weight: 800; color: #f59e0b; line-height: 1; letter-spacing: -1px; text-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.grand-unit { font-size: 15px; font-weight: 600; color: #94a3b8; margin-left: 6px; vertical-align: 18px; }
.grand-label { display: inline-block; font-size: 12px; color: #94a3b8; margin-left: 12px; }
/* 满轮预估奖池：让玩家一眼看到整期跑满时的大奖规模 */
.grand-est {
  margin: 8px 0 0; font-size: 12.5px; color: #64748b; line-height: 1.4;
}
.grand-est b { font-size: 15px; font-weight: 800; color: #f59e0b; }

.grand-progress .grand-bar {
  height: 10px; border-radius: 10px; background: #f1f5f9; overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.grand-progress .grand-bar-fill {
  height: 100%; background: linear-gradient(90deg, #fbbf24, #f97316);
  border-radius: 10px; transition: width 0.6s ease;
}
/* 已满轮、等待目标区块：锁定态（琥珀脉冲，和小奖进度条锁定风格一致） */
.grand-progress .grand-bar-fill.locked {
  background: linear-gradient(90deg, #f59e0b, #f97316);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.55);
  animation: grandLockPulse 1.8s ease-in-out infinite;
}
@keyframes grandLockPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.62; }
}
.grand-badge {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .2px;
  color: #7c2d12; background: #fef3c7; border: 1px solid #fcd34d;
  white-space: nowrap;
}
.grand-badge.drawing { color: #4c1d95; background: #ede9fe; border-color: #c4b5fd; }
.grand-bar-text { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; margin-top: 4px; }

.grand-meta { display: flex; gap: 18px; font-size: 12.5px; color: #64748b; }
.grand-meta b { color: #0f766e; font-weight: 600; }

.grand-tier-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.grand-tier-table th { text-align: left; padding: 5px 10px; color: #94a3b8; font-weight: 500; border-bottom: 1px solid #f1f5f9; }
.grand-tier-table td { padding: 6px 10px; border-bottom: 1px solid #f8fafc; }
.grand-tier-table tr:last-child td { border-bottom: none; }
.tier-rank { font-weight: 600; color: #0f766e; }
.tier-prize { color: #f59e0b; font-weight: 600; }
.tier-pct { color: #94a3b8; text-align: right; font-family: Consolas, Menlo, monospace; }

.grand-tip { font-size: 12px; color: #94a3b8; padding-top: 6px; border-top: 1px dashed #e2e8f0; }
.grand-last { font-size: 12px; color: #64748b; text-align: right; }

/* 上期开奖结果 */
.grand-result {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a; border-radius: 10px;
  padding: 10px 14px; margin-bottom: 12px;
}
.gr-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
/* 大奖池右栏顺序：奖档表在上、上期开奖结果在下，间距改由上方控制 */
.grand-right .grand-result { margin-bottom: 0; margin-top: 12px; }
.gr-title { font-size: 13.5px; font-weight: 700; color: #b45309; }
.gr-meta { font-size: 11.5px; color: #a16207; }
.gr-winner { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; }
.gr-medal { font-size: 14px; }
.gr-addr { color: #78350f; word-break: break-all; flex: 1; }
.gr-amt { color: #b45309; font-weight: 700; white-space: nowrap; }
.gr-seed { font-size: 10.5px; color: #a16207; margin-top: 6px; word-break: break-all; opacity: .75; }

/* ========== 大奖池开奖记录 ========== */
.grand-cycle {
  border: 1px solid #e8eef2; border-radius: 10px; margin-bottom: 10px;
  background: #fff; overflow: hidden;
}
.grand-cycle summary {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 14px; cursor: pointer; list-style: none;
  background: #fbfdfc; border-left: 3px solid #f59e0b;
}
.grand-cycle summary::-webkit-details-marker { display: none; }
.grand-cycle summary:hover { background: #f5faf8; }
.grand-cycle[open] summary { border-bottom: 1px dashed #e2e8f0; }
.gc-title { font-weight: 700; color: #b45309; font-size: 14px; }
.gc-meta { font-size: 12px; color: #94a3b8; }
.gc-pool { font-size: 13px; color: #0f766e; font-weight: 600; }
.gc-count { font-size: 12px; color: #64748b; }
.gc-time { font-size: 11.5px; color: #94a3b8; margin-left: auto; }

.gc-body { padding: 10px 14px 14px; }
.gc-hash { display: flex; gap: 8px; align-items: baseline; font-size: 11.5px; color: #64748b; margin-bottom: 4px; }
.gc-hash b { color: #0f766e; font-weight: 600; white-space: nowrap; }
.gc-hash .hash-full { color: #94a3b8; font-size: 11px; }

.gw-table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
.gw-table th { text-align: left; padding: 6px 8px; color: #94a3b8; font-weight: 500; border-bottom: 1px solid #e8eef2; white-space: nowrap; }
.gw-table td { padding: 6px 8px; border-bottom: 1px solid #f4f7f9; vertical-align: middle; }
.gw-table tr:last-child td { border-bottom: none; }
.gw-rank { font-weight: 600; color: #64748b; white-space: nowrap; }
.gw-r1 { color: #b45309; }
.gw-r2 { color: #0f766e; }
.gw-amt { color: #f59e0b; font-weight: 600; white-space: nowrap; }

/* ==================== 黑洞销毁记录 ==================== */
.burn-line {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 8px; padding: 8px 12px;
  background: #fff7ed; border: 1px dashed #fdba74; border-radius: 8px;
  font-size: 12px; color: #9a3412;
}
.burn-tag {
  flex: none; padding: 1px 8px; border-radius: 999px;
  background: #ea580c; color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .5px;
}
.burn-line b { color: #c2410c; }
.burn-line .addr-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.burn-line .hash-full { color: #b45309; font-size: 11px; }
.burn-fail { color: #b91c1c; }

.gw-ok { color: #059669; font-size: 11.5px; }
.gw-fail { color: #dc2626; font-size: 11.5px; }

/* ==================== 排队提示 / 待开奖队列 ==================== */
.head-note.queue-note { color: #b45309; font-weight: 600; }

.queue-box { margin-top: 10px; border-top: 1px dashed #e2e8f0; padding-top: 8px; }
.queue-box > summary {
  cursor: pointer; font-size: 12.5px; color: #0f766e; font-weight: 600;
  list-style: none; outline: none;
}
.queue-box > summary::-webkit-details-marker { display: none; }
.queue-box > summary::before { content: "▸ "; color: #94a3b8; }
.queue-box[open] > summary::before { content: "▾ "; }

.queue-list { max-height: 220px; overflow-y: auto; margin-top: 6px; }
.queue-item {
  display: grid; grid-template-columns: 62px 1fr auto; gap: 8px;
  align-items: center; padding: 5px 4px; font-size: 12.5px;
  border-bottom: 1px solid #f4f7f9;
}
.queue-item:last-child { border-bottom: none; }
.q-pos { color: #94a3b8; white-space: nowrap; }
.q-addr { color: #334155; }
.q-amt { color: #f59e0b; font-weight: 600; white-space: nowrap; }

/* 新交易入队播报 */
.toast-host {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 9px 14px; border-radius: 10px;
  background: #0f172a; color: #f1f5f9;
  font-size: 12.5px; box-shadow: 0 6px 20px rgba(15, 23, 42, .25);
  animation: toastIn .22s ease-out;
}
.toast b { color: #fbbf24; }
.toast.out { opacity: 0; transform: translateY(-6px); transition: all .3s ease; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 960px) {
  .grand-cols { grid-template-columns: 1fr; }
  .grand-right { border-left: none; padding-left: 0; border-top: 1px dashed #e2e8f0; padding-top: 14px; }
  .grand-num { font-size: 34px; }
  .grand-tier-table th:nth-child(2), .grand-tier-table td:nth-child(2) { display: none; }
}
