/* V6哈希开奖网
 * 颜色、边框、圆角按最终原型的计算样式还原；PC（≥900px）与 H5 分开设置比例和密度。 */

:root {
  color-scheme: dark;
  --bg: #020b15;
  --bg-soft: #061323;
  --panel: #07192c;
  --panel-2: #0b2037;
  --line: #1c4a78;
  --line-soft: rgba(73, 142, 217, 0.34);
  --text: #eef6ff;
  --muted: #91a5bd;
  --muted-2: #647b95;
  --blue: #2e7bff;
  --blue-2: #6563ff;
  --cyan: #21dbc2;
  --green: #12caa8;
  --red: #ff4d6b;
  --radius: 8px;
  --grad-active: linear-gradient(135deg, #2d78ff, #6250ee);
  --page-pad: 14px;
  --page-w: 430px;
  --font: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 0%, rgba(77, 58, 194, 0.28), transparent 28rem),
    linear-gradient(180deg, #020b15 0%, #04101d 48%, #020b15 100%);
  -webkit-font-smoothing: antialiased;
}

/* 星点 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.7px) 0 0 / 160px 160px,
    radial-gradient(circle at 34% 72%, rgba(175, 210, 255, 0.78) 0 1px, transparent 1.8px) 38px 28px / 220px 220px,
    radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.82) 0 1px, transparent 1.8px) 86px 42px / 280px 280px,
    radial-gradient(circle at 82% 62%, rgba(137, 176, 255, 0.78) 0 1px, transparent 1.8px) 16px 92px / 190px 190px,
    radial-gradient(circle at 74% 12%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.7px) 120px 18px / 330px 330px,
    radial-gradient(circle at 18% 86%, rgba(116, 209, 255, 0.68) 0 1px, transparent 1.8px) 72px 124px / 260px 260px,
    radial-gradient(circle, rgba(63, 111, 214, 0.24), transparent 34rem) center / 100% 100%;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #6ea5ff; outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }

em { font-style: normal; font-weight: 700; }
.single, .big, .banker { color: var(--red); }
.double, .win { color: var(--cyan); }
.small, .player { color: #70a8ff; }
.tie { color: #20c46b; }
.lose, .muted { color: var(--muted-2); }
.t-red { color: var(--red); }
.t-cyan { color: var(--cyan); }
.t-blue { color: #62a0ff; }
.mono { font-family: var(--mono); word-break: break-all; }
.pc-only { display: none; }

/* ---------- 外壳 ---------- */

.app-shell {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 0 var(--page-pad) calc(24px + env(safe-area-inset-bottom));
}

.app-main { display: grid; gap: 12px; }

/* 网格轨道不随内容撑宽，宽表格在自身容器内横向滚动 */
.app-main, .hash-column, .lottery-layout, .verify-panel, .history-panel { grid-template-columns: minmax(0, 1fr); }
#tab-content { min-width: 0; }

.card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(8, 25, 43, 0.88);
  box-shadow: inset 0 0 0 1px rgba(47, 111, 178, 0.06);
}

/* ---------- 顶部 ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  margin: 0 calc(-1 * var(--page-pad)) 12px;
  padding: 14px var(--page-pad) 12px;
  border-bottom: 1px solid rgba(69, 126, 189, 0.48);
  background:
    radial-gradient(circle at 77% 0%, rgba(87, 67, 205, 0.3), transparent 17rem),
    rgba(3, 13, 25, 0.84);
  backdrop-filter: blur(10px);
}

/* Logo 整组居中：装饰线在品牌主行两侧，副标题在主行正下方 */
.brand-logo {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  justify-content: center;
  column-gap: 14px;
  row-gap: 1px;
  font-weight: inherit;
}

.logo-text { display: flex; align-items: baseline; gap: 8px; }

.logo-mark {
  font-size: 30px;
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  letter-spacing: -1px;
  padding-right: 3px;
  background: linear-gradient(180deg, #ffffff 0%, #c6d8ff 40%, #688cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 7px rgba(76, 115, 255, 0.5));
}

.logo-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #eaf3ff;
  text-shadow: 0 0 10px rgba(104, 140, 255, 0.45), 0 2px 0 rgba(0, 0, 0, 0.24);
}

.logo-subtitle {
  grid-column: 2;
  justify-self: center;
  font-size: 11px;
  letter-spacing: 1px;
  color: #9caac7;
}

.logo-line {
  position: relative;
  width: 44px;
  height: 2px;
  opacity: 0.96;
}
.logo-line.is-left { background: linear-gradient(90deg, #8b42ff, rgba(45, 120, 255, 0.34), transparent 82%); }
.logo-line.is-right { background: linear-gradient(90deg, transparent 18%, rgba(139, 66, 255, 0.34), #2d78ff); }
.logo-line::before {
  content: "";
  position: absolute;
  top: -1.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.logo-line.is-left::before { left: 0; background: #8b42ff; box-shadow: 0 0 10px rgba(139, 66, 255, 0.8); }
.logo-line.is-right::before { right: 0; background: #2d78ff; box-shadow: 0 0 10px rgba(45, 120, 255, 0.8); }
.logo-line::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 16px;
  height: 7px;
  opacity: 0.66;
}
.logo-line.is-left::after {
  right: 2px;
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(167, 96, 255, 0.72) 3px 4px, transparent 4px 7px);
}
.logo-line.is-right::after {
  left: 2px;
  background: repeating-linear-gradient(135deg, transparent 0 3px, rgba(98, 87, 255, 0.72) 3px 4px, transparent 4px 7px);
}

/* ---------- 三种玩法导航：整段填充选中态 ---------- */

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 12, 22, 0.86);
}

.mode-tab {
  position: relative;
  height: 46px;
  font-size: 16px;
  font-weight: 700;
  color: #cbd8e7;
}
/* 相邻未选中项之间的分隔线 */
.mode-tab + .mode-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 12px;
  transform: translateY(-50%);
  background: rgba(91, 143, 197, 0.44);
}
.mode-tab.is-active {
  color: var(--text);
  background: linear-gradient(135deg, #2c76f1, #5b3fd0);
  box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.16);
}
.mode-tab.is-active::before,
.mode-tab.is-active + .mode-tab::before { display: none; }

/* ---------- 当前玩法栏 ---------- */

.current-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px;
  background: linear-gradient(90deg, rgba(9, 33, 57, 0.92), rgba(16, 21, 63, 0.82)), rgba(8, 25, 43, 0.9);
}

.current-copy { display: flex; align-items: center; gap: 10px; min-width: 0; }
.current-copy > span:last-child { display: grid; min-width: 0; }
.current-label { font-size: 12px; color: var(--muted); }
.current-name { font-size: 18px; font-weight: 800; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.game-icon {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #4b8bff, #3e61df);
}
.game-icon.is-hash { background: linear-gradient(135deg, #ffa22b, #ff7b31); }
.game-icon.is-lottery { background: linear-gradient(135deg, #c06bff, #6e38d8); }

.current-side { display: flex; align-items: center; gap: 8px; }

.pill-group { display: flex; gap: 6px; }
.pill-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(68, 125, 194, 0.64);
  background: rgba(4, 18, 33, 0.72);
  font-size: 12px;
  font-weight: 700;
  color: #a9bed4;
  white-space: nowrap;
}
.pill-btn.is-active {
  color: #fff;
  border-color: rgba(105, 149, 255, 0.9);
  background: var(--grad-active);
  box-shadow: 0 7px 15px rgba(45, 120, 255, 0.18);
}

.chain-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(80, 135, 194, 0.46);
  background: rgba(2, 11, 21, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: #c7d4e5;
  white-space: nowrap;
}

.block-mode-tabs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(var(--mode-count, 4), 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius);
  border: 1px solid rgba(48, 95, 147, 0.74);
  background: rgba(1, 12, 23, 0.5);
}
.block-mode-tab {
  height: 26px;
  border-radius: 6px;
  border: 1px solid rgba(68, 125, 194, 0.64);
  background: rgba(4, 18, 33, 0.72);
  font-size: 12px;
  font-weight: 700;
  color: #a9bed4;
}
.block-mode-tab.is-active {
  color: #fff;
  border-color: rgba(105, 149, 255, 0.9);
  background: var(--grad-active);
}

/* ---------- 按钮 ---------- */

.chip-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(68, 129, 208, 0.78);
  background: rgba(27, 72, 132, 0.7);
  font-size: 13px;
  font-weight: 700;
  color: #e7f2ff;
  white-space: nowrap;
}
.chip-btn.tiny {
  height: 24px;
  padding: 0 9px;
  border-radius: 6px;
  border-color: rgba(94, 160, 255, 0.7);
  background: rgba(30, 77, 141, 0.62);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: #dcebff;
}

.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}
.btn-primary {
  border: 1px solid rgba(83, 143, 255, 0.8);
  background: linear-gradient(135deg, #2f78ff, #5864f2);
  color: #fff;
}
.btn-outline {
  border: 1px solid var(--line);
  background: rgba(7, 25, 44, 0.74);
}
.btn-primary.small, .btn-outline.small { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-outline.is-reset {
  color: #8ebcff;
  border-color: rgba(82, 142, 217, 0.58);
  background: rgba(50, 101, 167, 0.32);
}
.btn-primary.block {
  width: 100%;
  height: 44px;
  border: 0;
  background: linear-gradient(135deg, #2d7cff, #6f4dff);
}

.icon { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- 开奖概览 ---------- */

.dashboard {
  padding: 8px 8px 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(46, 123, 255, 0.18), transparent 9rem),
    radial-gradient(circle at 84% 8%, rgba(111, 63, 242, 0.22), transparent 9rem),
    linear-gradient(135deg, rgba(8, 30, 52, 0.94), rgba(5, 17, 31, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(47, 111, 178, 0.05);
}

/* 左：已开奖；中：圆环；右：当前下注。三部分整体垂直居中 */
.bet-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 10px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(66, 124, 200, 0.36);
  background:
    radial-gradient(circle at 50% 48%, rgba(96, 154, 255, 0.08), transparent 8rem),
    linear-gradient(90deg, rgba(10, 36, 62, 0.86), rgba(4, 16, 29, 0.78) 48%, rgba(18, 20, 68, 0.82)),
    rgba(2, 12, 22, 0.32);
}

.opened-block, .betting-block { display: grid; gap: 4px; min-width: 0; }
.betting-block { text-align: right; }

.bet-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #a9bbd0;
  white-space: nowrap;
}
.betting-block .bet-label { justify-content: flex-end; color: #6ea5ff; font-weight: 700; }

.block-number {
  font-size: min(24px, 5.7vw);
  font-weight: 900;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #edf6ff;
}
.block-number.accent { color: #5f98ff; }
.block-number.is-period { font-size: min(15px, 3.8vw); letter-spacing: 0; word-break: break-all; }

.result-mini {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.result-mini.single, .result-mini.big, .result-mini.banker { background: linear-gradient(135deg, #ff4d6b, #f33359); }
.result-mini.double, .result-mini.win { background: linear-gradient(135deg, #28dfc3, #10b99b); }
.result-mini.small, .result-mini.player { background: linear-gradient(135deg, #5fa0ff, #2e76ff); }
.result-mini.tie { background: linear-gradient(135deg, #3fd98a, #1aa35a); }
.result-mini.lose { background: #4b5f7a; }

.countdown-ring {
  --ring: 0%;
  position: relative;
  width: 46px;
  height: 46px;
  margin: 0 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(238, 246, 255, 0.98) 0 56%, transparent 57%),
    conic-gradient(#5f83ff var(--ring), rgba(238, 246, 255, 0.2) 0);
  box-shadow: 0 0 0 1px rgba(95, 131, 255, 0.16), 0 6px 14px rgba(0, 0, 0, 0.2);
}
/* 圆环两侧的细分隔线 */
.countdown-ring::before, .countdown-ring::after {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: linear-gradient(transparent, rgba(91, 143, 197, 0.38), transparent);
}
.countdown-ring::before { left: -10px; }
.countdown-ring::after { right: -10px; }
.countdown-ring b { color: #07182a; font-size: 15px; font-weight: 900; font-variant-numeric: tabular-nums; }
.countdown-ring b.is-long { font-size: 12px; }

.block-result-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.block-result-line .arrow { color: var(--red); font-size: 18px; line-height: 1; }
.hash-tail { color: var(--text); }
.hash-tail.muted { font-weight: 400; color: var(--muted); }

/* ---------- 走势 ---------- */

/* H5：第一行期数 + 大小单双，第二行最新开奖，其后只显示选中的一张图 */
.trend-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas:
    "range type"
    "latest latest"
    "boards boards";
  gap: 10px 8px;
  padding: 12px;
}
#trend-body { display: contents; }
.trend-range-tabs { grid-area: range; }
.trend-type-switch { grid-area: type; }
.trend-latest { grid-area: latest; }
.trend-boards { grid-area: boards; display: grid; gap: 12px; min-width: 0; }

.segmented {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(2, 11, 21, 0.46);
}
.segment {
  flex: 1;
  height: 30px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.segment.is-active { color: var(--text); background: linear-gradient(135deg, #2c76f1, #6145db); }

.trend-kind-label {
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(2, 11, 21, 0.46);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.trend-latest {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(67, 122, 190, 0.58);
  background: rgba(4, 18, 33, 0.62);
  font-size: 13px;
  color: #a9bad0;
}
.trend-latest-label { font-size: 12px; color: #8fa7c0; }
.trend-latest strong { color: #eef7ff; font-variant-numeric: tabular-nums; margin-right: 2px; }
.trend-latest-result { display: inline-flex; gap: 3px; font-size: 12px; }

.trend-board { display: none; min-width: 0; }
.trend-board.is-active { display: block; }
.trend-board-title { display: none; }

.trend-scroll {
  position: relative;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(58, 109, 164, 0.56);
  background: rgba(6, 22, 38, 0.58);
  scrollbar-width: thin;
}

.trend-grid {
  --cell: 26px;
  display: grid;
  grid-template-columns: repeat(var(--trend-columns), minmax(var(--cell), 1fr));
  grid-auto-rows: 28px;
  min-width: max-content;
}
.trend-cell {
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(44, 83, 128, 0.52);
  border-bottom: 1px solid rgba(44, 83, 128, 0.52);
}
.trend-token {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #f3fbff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.trend-token.big, .trend-token.single, .trend-token.banker { background: linear-gradient(135deg, #ff6578, #ef334f); }
.trend-token.small, .trend-token.player { background: linear-gradient(135deg, #5fa0ff, #2e76ff); }
.trend-token.double, .trend-token.win { background: linear-gradient(135deg, #25e0c8, #11bba2); }
.trend-token.tie { background: linear-gradient(135deg, #3fd98a, #1aa35a); }
.trend-token.lose { background: linear-gradient(135deg, #7d8ca6, #4b5f7a); }

/* 倒计时格：紧跟在最新结果后面 */
.trend-cell.is-countdown {
  border: 1px solid rgba(89, 145, 255, 0.9);
  background: rgba(5, 20, 36, 0.92);
  box-shadow: inset 0 0 0 1px rgba(112, 168, 255, 0.12), 0 0 12px rgba(46, 123, 255, 0.2);
}
.trend-cell.is-countdown b { font-size: 12px; color: #70a8ff; font-variant-numeric: tabular-nums; }
.trend-cell.is-countdown b.is-long { font-size: 10px; }

.trend-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--muted);
  background: rgba(2, 11, 21, 0.35);
  pointer-events: none;
}

/* ---------- 验证 ---------- */

.verify-panel { padding: 14px 12px 12px; display: grid; gap: 10px; align-content: start; }

/* H5：标题和查询工具同一行，窄屏放不下时工具行自动换到下一行 */
.verify-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.section-title { font-size: 18px; font-weight: 800; white-space: nowrap; }
.section-title small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 6px; }

.verify-toolbar { flex: 1 1 200px; display: flex; gap: 6px; min-width: 0; }
.verify-toolbar input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(73, 112, 172, 0.32);
  background: rgba(238, 246, 255, 0.1);
  outline: none;
  font-size: 13px;
}
.verify-toolbar input:focus { border-color: #6ea5ff; }
.verify-toolbar input::placeholder { color: #889bb1; }

.table-shell {
  overflow: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(35, 79, 124, 0.7);
  background: rgba(2, 12, 22, 0.28);
  scrollbar-width: thin;
}
.verify-table-shell { max-height: 360px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 38px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  background: #112d4b;
}
.data-table td {
  padding: 8px 6px;
  text-align: center;
  border-top: 1px solid rgba(40, 79, 119, 0.7);
  white-space: nowrap;
}
.data-table .empty-row td { padding: 28px 8px; color: var(--muted); }

.verify-table th:first-child, .verify-table td:first-child { text-align: left; padding-left: 10px; }
.hash-cell { max-width: 120px; }
.hash-main { display: block; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.hash-sub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #6f86a2;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-text { display: inline-flex; gap: 6px; font-weight: 800; }
.result-text b { color: #dbe8ff; }
.result-text .small { color: #66a2ff; }
.time-cell { font-variant-numeric: tabular-nums; color: #c9d7e8; }
.time-cell small { display: block; font-size: 11px; color: var(--muted-2); }

.verify-note { text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- 彩票：当期开奖 ---------- */

.lottery-layout { display: grid; gap: 12px; }

/* H5：标题与期号同一行，号码在下一行居中成组 */
.lottery-draw {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title timer"
    "numbers numbers";
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-color: rgba(60, 123, 200, 0.78);
  background:
    radial-gradient(circle at 16% 0%, rgba(45, 120, 255, 0.18), transparent 9rem),
    radial-gradient(circle at 100% 0%, rgba(111, 63, 242, 0.2), transparent 10rem),
    linear-gradient(145deg, rgba(7, 27, 48, 0.98), rgba(4, 15, 29, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 0 0 1px rgba(88, 152, 235, 0.08);
}
.lottery-draw::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  opacity: 0.85;
  background: linear-gradient(90deg, transparent, rgba(80, 148, 255, 0.75), transparent);
}

.lottery-title-group { grid-area: title; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lottery-number-row { grid-area: numbers; }

/* 下一期开奖倒计时：浅色数字方块 */
.lottery-timer { grid-area: timer; display: flex; align-items: center; gap: 8px; }
.timer-label { display: none; font-size: 12px; color: var(--muted); white-space: nowrap; }
.timer-digits { display: flex; align-items: center; gap: 3px; }
.timer-digits b {
  display: grid;
  place-items: center;
  width: 20px;
  height: 26px;
  border-radius: 4px;
  border: 2px solid #4a5fc4;
  background: #f4f7ff;
  color: #2c3a8c;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer-digits i { font-style: normal; font-size: 16px; font-weight: 800; color: #9db4ff; }
.lottery-title { font-size: 17px; font-weight: 800; color: #f4f9ff; white-space: nowrap; }
.period-badge {
  min-width: 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(72, 126, 190, 0.42);
  background: rgba(3, 14, 26, 0.42);
  font-size: 11px;
  color: #8fa7c2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lottery-number-row {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid rgba(47, 99, 158, 0.62);
  background: linear-gradient(90deg, rgba(2, 12, 23, 0.78), rgba(13, 34, 65, 0.58), rgba(2, 12, 23, 0.78));
}
.lottery-number-label { display: none; }
.lottery-empty { font-size: 12px; color: var(--muted); }

/* 号码球：两端尺寸分开设置。360 宽 26px，430 宽 28px，PC 42px */
.balls { --ball: 28px; display: flex; flex-wrap: nowrap; justify-content: center; gap: calc(var(--ball) * 0.28); }
.ball {
  flex: none;
  width: var(--ball);
  height: var(--ball);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  font-size: calc(var(--ball) * 0.46);
  font-weight: 800;
  line-height: 1;
}
.ball.double {
  color: #effffb;
  border-color: rgba(33, 219, 194, 0.55);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(145deg, #23d5b7, #088d75);
  box-shadow: inset 0 calc(var(--ball) * -0.1) 0 rgba(0, 70, 54, 0.22), 0 0 0 2px rgba(33, 219, 194, 0.14);
}
.ball.single {
  color: #fff6f8;
  border-color: rgba(255, 77, 107, 0.55);
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(145deg, #ff6b7f, #d91f45);
  box-shadow: inset 0 calc(var(--ball) * -0.1) 0 rgba(90, 0, 20, 0.2), 0 0 0 2px rgba(255, 77, 107, 0.14);
}
.ball-plus { flex: none; align-self: center; font-size: calc(var(--ball) * 0.5); font-weight: 800; color: var(--muted); }
.ball.is-empty { color: var(--muted-2); border-color: rgba(72, 126, 190, 0.42); background: rgba(3, 14, 26, 0.6); }
.balls.is-lhc { gap: calc(var(--ball) * 0.2); }
.balls.small { --ball: 19px; gap: 2px; }
.balls.small .ball { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.16); }

/* ---------- 彩票：历史走势 ---------- */

.history-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  background:
    radial-gradient(circle at 82% 0%, rgba(93, 76, 233, 0.14), transparent 150px),
    linear-gradient(rgba(8, 25, 43, 0.95), rgba(4, 17, 31, 0.94));
}
.history-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.live-badge {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(33, 219, 194, 0.28);
  background: rgba(33, 219, 194, 0.08);
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
}
.history-meta {
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(42, 85, 132, 0.72);
  background: rgba(3, 14, 26, 0.58);
  font-size: 12px;
  font-weight: 700;
  color: #c9d8ea;
}

.history-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  /* 横向滚动会连带裁切纵向：留出边框和聚焦描边的空间，负外边距保持原布局 */
  padding: 4px 3px;
  margin: -4px -3px;
}
.history-tabs::-webkit-scrollbar { display: none; }
.history-tab {
  flex: none;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(65, 117, 174, 0.62);
  background: rgba(3, 14, 26, 0.74);
  font-size: 12px;
  font-weight: 700;
  color: #a9bbcf;
}
.history-tab.is-active {
  color: #f3f8ff;
  border-color: rgba(111, 150, 255, 0.88);
  background: linear-gradient(135deg, rgba(45, 120, 255, 0.95), rgba(111, 63, 242, 0.92));
}

#lottery-history-body .table-shell {
  border-color: rgba(38, 83, 130, 0.86);
  background: rgba(2, 12, 22, 0.58);
}
.lottery-table th { height: 32px; color: #b8c9dd; background: rgba(13, 35, 60, 0.95); }
.lottery-table th, .lottery-table td { border-left: 1px solid rgba(42, 85, 132, 0.58); }
.lottery-table th:first-child, .lottery-table td:first-child { border-left: 0; }
.lottery-table td { padding: 6px; color: #c9d7e8; border-top-color: rgba(42, 85, 132, 0.58); }
.lottery-table tbody tr:nth-child(even) td { background: rgba(12, 34, 57, 0.32); }
.lottery-table .small { color: #62a0ff; }
.lottery-table.is-wide { min-width: 720px; }
.lottery-table.is-lhc { min-width: 560px; }
.lottery-table .zodiacs { letter-spacing: 1px; }

.shape-number {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), 0 0 0 1px rgba(143, 188, 255, 0.1);
}
.shape-number.double { background: linear-gradient(#2ee3cf, #0da896); }
.shape-number.single { background: linear-gradient(#ff6683, #f0345b); }

.shape-tag { color: #c9d7e8; }

.shape-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(128, 165, 206, 0.62);
  background: rgba(8, 28, 48, 0.9);
}
.shape-dot.is-hit { border: 0; box-shadow: 0 0 0 3px rgba(74, 130, 255, 0.08); }
.shape-dot.blue { background: #2e7bff; }
.shape-dot.red { background: #ff4d6b; }
.shape-dot.orange { background: #ff9c2c; }
.shape-dot.green { background: #20c46b; }
.shape-dot.violet { background: #a45dff; }

.ball-trend {
  position: relative;
  background: linear-gradient(90deg, rgba(46, 123, 255, 0.08), transparent 42%), rgba(3, 14, 26, 0.36);
}
.ball-trend-grid {
  display: grid;
  grid-template-columns: var(--period-w) repeat(var(--digits, 10), 32px);
  grid-auto-rows: 28px;
}
.bt-head, .bt-cell {
  display: grid;
  place-items: center;
  font-size: 12px;
  border-right: 1px solid rgba(42, 85, 132, 0.62);
  border-bottom: 1px solid rgba(42, 85, 132, 0.62);
}
.bt-head { background: rgba(13, 35, 60, 0.95); color: #b8c8db; font-weight: 700; }
.bt-period { color: #b8c8db; }
.bt-miss { color: #7189a3; font-size: 11px; }
.bt-hit {
  position: relative;
  z-index: 1;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.3), transparent 26%),
    linear-gradient(145deg, #ff5869, #d92936);
  box-shadow: 0 0 0 2px rgba(255, 77, 107, 0.14);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
}
.ball-trend-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ball-trend-line polyline { fill: none; stroke: rgba(255, 202, 91, 0.92); stroke-width: 1.5; }
.ball-trend .trend-empty { top: 28px; }

.history-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- 弹层 ---------- */

.sheet-backdrop, .modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  background: rgba(0, 6, 12, 0.72);
  animation: fade 0.2s ease;
}
.sheet-backdrop { align-items: flex-end; }
.modal-backdrop { align-items: center; padding: 16px; }

/* H5：底部弹窗，两列选项；确认区固定在底部，不遮住列表 */
.sheet {
  width: 100%;
  max-width: var(--page-w);
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(61, 113, 169, 0.82);
  border-bottom: 0;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  animation: rise 0.25s ease;
}
.sheet-handle { flex: none; width: 48px; height: 4px; border-radius: 2px; margin: 8px auto 0; background: rgba(145, 165, 189, 0.5); }
.sheet-head { flex: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; }
.sheet-title { font-size: 18px; font-weight: 800; }
.sheet-subtitle { margin-top: 2px; font-size: 12px; color: var(--muted); }
/* H5 彩票弹窗不重复显示当前游戏（页面上的当前游戏栏已经有了） */
.sheet.is-lottery .sheet-subtitle { display: none; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 12px; }
.sheet-section h3 { margin: 10px 0 8px; font-size: 14px; font-weight: 700; color: #cfdef2; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.option-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid rgba(65, 125, 194, 0.58);
  background: rgba(3, 16, 30, 0.76);
  font-size: 13px;
  font-weight: 600;
  color: #b9c7d9;
}
.option-btn.is-active {
  color: #fff;
  border-color: rgba(111, 150, 255, 0.9);
  background: linear-gradient(135deg, rgba(45, 120, 255, 0.96), rgba(98, 75, 237, 0.96));
  box-shadow: 0 10px 22px rgba(45, 120, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.option-tag {
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.06);
}
.option-btn.is-active .option-tag { color: rgba(255, 255, 255, 0.82); background: rgba(255, 255, 255, 0.15); }
.coin-dot {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}
.coin-dot.trx { background: linear-gradient(135deg, #ffa22b, #ff7b31); }
.coin-dot.bnb { background: linear-gradient(135deg, #ffca2e, #f0a61d); color: #3a2600; }
.sheet-action {
  flex: none;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(49, 101, 162, 0.72);
  background: rgba(2, 12, 22, 0.42);
}

.modal {
  width: 100%;
  max-width: 420px;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(77, 136, 199, 0.76);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.44);
  animation: pop 0.2s ease;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.verify-list { margin: 0; display: grid; gap: 8px; }
.verify-list > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid rgba(42, 88, 137, 0.7);
  background: rgba(2, 12, 22, 0.4);
}
.verify-list dt { font-size: 12px; color: var(--muted); }
.verify-list dd { margin: 0; font-weight: 600; }
.verify-list em { margin-left: 2px; }
.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 12%;
  z-index: 80;
  transform: translateX(-50%);
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(77, 136, 199, 0.76);
  background: rgba(7, 25, 44, 0.96);
  font-size: 13px;
  white-space: nowrap;
  animation: toast-in 0.2s ease;
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes pop { from { transform: scale(0.96); opacity: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 窄屏（≤380px） ---------- */

@media (max-width: 380px) {
  :root { --page-pad: 12px; }
  .mode-tab { font-size: 15px; }
  .current-name { font-size: 16px; }
  .pill-btn { padding: 0 8px; }
  .countdown-ring { width: 40px; height: 40px; margin: 0 3px; }
  .countdown-ring::before { left: -5px; }
  .countdown-ring::after { right: -5px; }
  .balls { --ball: 26px; }
  .balls.small { --ball: 17px; }
  /* 标签行（已开奖区块 + 结果 + 验证）不能压到中间的圆环 */
  .bet-status-row { padding: 10px 8px; gap: 4px; }
  .bet-label { font-size: 11px; gap: 3px; }
  .result-mini { width: 16px; height: 16px; font-size: 10px; }
  .chip-btn.tiny { height: 22px; padding: 0 6px; font-size: 11px; }
  .trend-grid { --cell: 22px; grid-auto-rows: 26px; }
  .trend-token { width: 20px; height: 20px; font-size: 10px; }
  .logo-line { width: 30px; }
  .segment { font-size: 12px; }
}

/* ---------- PC（≥900px） ---------- */

@media (min-width: 900px) {
  :root { --page-pad: 24px; --page-w: 1280px; }

  body {
    background:
      radial-gradient(circle at 16% 0%, rgba(46, 123, 255, 0.22), transparent 30rem),
      radial-gradient(circle at 86% 8%, rgba(111, 63, 242, 0.28), transparent 34rem),
      linear-gradient(180deg, #020b15 0%, #06111f 52%, #020b15 100%);
  }

  .pc-only { display: inline; }
  .h5-only { display: none; }

  .app-shell { padding-top: 18px; padding-bottom: 40px; }
  .app-main { gap: 10px; }

  /* 顶部：带边框的导航容器，Logo 相对整个容器居中 */
  .app-header {
    position: static;
    margin: 0 0 10px;
    padding: 12px 20px;
    border: 1px solid rgba(69, 126, 189, 0.48);
    border-radius: var(--radius);
    background:
      radial-gradient(circle at 78% 0%, rgba(87, 67, 205, 0.28), transparent 18rem),
      rgba(3, 13, 25, 0.88);
    backdrop-filter: none;
  }
  .brand-logo { column-gap: 56px; row-gap: 2px; }
  .logo-mark { font-size: 36px; }
  .logo-name { font-size: 15px; }
  .logo-subtitle { font-size: 12px; }
  .logo-line { width: 46px; }

  .mode-tab { height: 46px; font-size: 17px; }

  /* 当前玩法栏一行排开：名称 | 链切换 | 模式 */
  .current-strip { padding: 10px 16px; }
  .current-strip.is-block { grid-template-columns: minmax(180px, 1fr) auto minmax(0, 1.55fr); gap: 10px; }
  .current-strip.is-block .block-mode-tabs { grid-column: auto; }
  .current-name { font-size: 22px; }
  .pill-btn { height: 30px; min-width: 96px; font-size: 13px; }
  .block-mode-tab { height: 28px; font-size: 13px; }
  .chain-badge { height: 26px; }

  /* 主要空间给开奖和走势，右侧验证栏约 430px */
  .hash-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(340px, 35%, 430px);
    gap: 14px;
    align-items: stretch;
  }
  .hash-column { display: grid; gap: 12px; align-content: start; }

  .dashboard { padding: 8px 8px 0; }
  .bet-status-row { padding: 9px 18px 10px; gap: 12px; }
  .bet-label { font-size: 13px; gap: 8px; }
  .block-number { font-size: 34px; }
  .block-number.is-period { font-size: 18px; }
  .chip-btn.tiny { height: 26px; padding: 0 10px; }
  .countdown-ring { width: 58px; height: 58px; margin: 0 10px; }
  .countdown-ring::before { left: -12px; }
  .countdown-ring::after { right: -12px; }
  .countdown-ring b { font-size: 18px; }
  .countdown-ring b.is-long { font-size: 14px; }
  .block-result-line { padding: 8px 0 10px; font-size: 14px; }

  /* 走势：第一行左侧最新开奖、右侧期数；下面两张图上下排列（大小在上，单双在下） */
  .trend-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "latest range"
      "boards boards";
    gap: 14px 12px;
    padding: 20px;
  }
  .trend-type-switch { display: none; }
  .trend-latest { justify-self: start; height: 32px; }
  .trend-range-tabs { width: 230px; }
  .segment { height: 30px; }

  .trend-board, .trend-board.is-active { display: block; }
  .trend-board-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #dceaff;
  }
  .trend-board-title small { font-size: 11px; font-weight: 400; color: #8ea5bf; }
  .trend-boards { gap: 16px; }
  .trend-grid { --cell: 34px; grid-auto-rows: 30px; }

  /* 右栏高度跟随左栏，列表在内部滚动 */
  .verify-panel {
    height: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
  }
  .verify-head { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
  .verify-toolbar { flex: none; }
  .section-title { font-size: 22px; }
  .verify-table-shell { flex: 1; min-height: 0; max-height: none; }
  .verify-table td { padding: 12px 6px; }
  .verify-table th:first-child, .verify-table td:first-child { padding-left: 8px; }
  .hash-main { font-size: 16px; }
  .hash-cell { max-width: 150px; }
  .result-text { font-size: 16px; }

  /* 彩票当期开奖：左侧标题与期号，右侧号码区；没有第三列 */
  .lottery-draw {
    grid-template-columns: minmax(200px, 232px) minmax(0, 1fr) auto;
    grid-template-areas: "title numbers timer";
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background:
      radial-gradient(circle at 15% 0%, rgba(45, 120, 255, 0.2), transparent 13rem),
      radial-gradient(circle at 92% 16%, rgba(111, 63, 242, 0.24), transparent 15rem),
      linear-gradient(135deg, rgba(7, 26, 46, 0.98), rgba(6, 17, 36, 0.96));
  }
  .lottery-title-group { flex-direction: column; align-items: flex-start; gap: 6px; }
  .lottery-title { font-size: 22px; }
  .period-badge { max-width: 100%; padding: 3px 10px; font-size: 12px; }
  .lottery-number-row {
    min-height: 66px;
    padding: 8px 110px;
    background:
      radial-gradient(circle at 50% 0%, rgba(45, 120, 255, 0.16), transparent 9rem),
      linear-gradient(90deg, rgba(3, 14, 27, 0.88), rgba(14, 38, 75, 0.72), rgba(3, 14, 27, 0.84));
  }
  .lottery-number-label {
    display: block;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    padding: 5px 11px;
    border-radius: var(--radius);
    border: 1px solid rgba(70, 129, 199, 0.45);
    background: rgba(8, 27, 48, 0.72);
    font-size: 12px;
    color: #a9bed7;
  }
  .lottery-timer { flex-direction: column; gap: 6px; padding: 0 8px; }
  .timer-label { display: block; }
  .timer-digits { gap: 4px; }
  .timer-digits b { width: 28px; height: 36px; border-radius: 5px; font-size: 22px; }
  .timer-digits i { font-size: 22px; }
  .lottery-draw .balls { --ball: 42px; gap: 16px; }
  .lottery-draw .balls.is-lhc { gap: 12px; }

  .history-panel { padding: 18px 20px; gap: 12px; }
  .history-panel .section-title { font-size: 22px; }
  .history-tab { height: 30px; font-size: 13px; }
  .lottery-table th { height: 28px; }
  .lottery-table td { padding: 5px 6px; }
  .balls.small { --ball: 20px; gap: 6px; }

  /* 游戏选择：居中弹窗 */
  .sheet-backdrop {
    align-items: center;
    padding: 16px;
    background: radial-gradient(circle at 50% 34%, rgba(46, 123, 255, 0.18), transparent 28rem), rgba(0, 6, 12, 0.72);
  }
  .sheet {
    max-width: 560px;
    max-height: 86vh;
    border-radius: 12px;
    border: 1px solid rgba(76, 137, 210, 0.62);
    background:
      radial-gradient(circle at 78% 0%, rgba(93, 76, 233, 0.18), transparent 17rem),
      linear-gradient(rgba(9, 31, 54, 0.98), rgba(4, 16, 29, 0.98));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation-name: pop;
  }
  .sheet-handle { display: none; }
  .sheet-head {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(49, 101, 162, 0.72);
    background: rgba(2, 12, 22, 0.36);
    border-radius: 12px 12px 0 0;
  }
  .sheet.is-lottery .sheet-subtitle { display: block; }
  .sheet-body { padding: 4px 18px 16px; }
  .option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .option-btn { min-height: 40px; }
  .sheet-action { padding: 12px 18px; border-radius: 0 0 12px 12px; }
}

@media (hover: hover) {
  .option-btn:not(.is-active):hover,
  .history-tab:not(.is-active):hover,
  .block-mode-tab:not(.is-active):hover,
  .pill-btn:not(.is-active):hover { color: var(--text); border-color: #6ea5ff; }
  .segment:not(.is-active):hover,
  .mode-tab:not(.is-active):hover { color: var(--text); }
  .chip-btn:hover { border-color: #6ea5ff; }
}
