:root {
  --ink: #f7ecd0;
  --dim: #c6ad82;
  --mute: #8a744f;
  --bg: #120b06;
  --panel: #1e150c;
  --line: #3d2c17;
  --gold: #eec24a;
  --gold-2: #c48a14;
  --gold-soft: #f6dd93;
  --red: #d5432f;
  --blue: #2f79cf;
  --ok: #4bad6a;
  --danger: #de6a4a;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 8% -12%, rgba(238, 194, 74, 0.22), transparent 56%),
    radial-gradient(680px 320px at 100% 0%, rgba(213, 67, 47, 0.14), transparent 52%),
    radial-gradient(760px 420px at 50% 120%, rgba(47, 121, 207, 0.12), transparent 60%),
    linear-gradient(180deg, #1c130a 0%, #130c07 55%, #0e0805 100%);
  background-attachment: fixed;
  font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", "Microsoft YaHei", serif;
}
a { color: var(--gold); }
.wrap { width: min(760px, calc(100% - 28px)); margin: 0 auto; }

/* 底部一层缓缓流转的乾坤气象：金气东升、朱气西沉、青气浮底，永远在动 */
body::after {
  content: "";
  position: fixed;
  inset: -20% -12% -30%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 30% at 20% 108%, rgba(238, 194, 74, .16), transparent 66%),
    radial-gradient(ellipse 36% 26% at 82% 104%, rgba(213, 67, 47, .13), transparent 68%),
    radial-gradient(ellipse 40% 24% at 50% 116%, rgba(47, 121, 207, .12), transparent 70%);
  animation: qiankun 26s ease-in-out infinite;
}
@keyframes qiankun {
  0%, 100% { transform: translate3d(-2.2%, 0, 0) scale(1); opacity: .85; }
  50% { transform: translate3d(2.8%, -1.6%, 0) scale(1.05); opacity: 1; }
}
body > * { position: relative; z-index: 1; }

.site-head {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(58, 34, 20, .96), rgba(28, 18, 10, .92));
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(238, 194, 74, .18), 0 10px 30px rgba(0, 0, 0, .34);
}
.site-head .wrap, .site-foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-ico, .top-mark img {
  width: 34px; height: 34px; display: block; flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .5));
}
.mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(160deg, #f6dd93, #c48a14); color: #5a3a10; font-weight: 800;
}
.brand strong { display: block; font-size: 17px; letter-spacing: .12em; color: var(--gold-soft); }
.brand span { display: block; font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.head-acts a, .btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 0 15px; border-radius: 11px; text-decoration: none;
  border: 1px solid var(--line); background: linear-gradient(160deg, #2c1d10, #201509);
  color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.head-acts a:hover, .btn:hover, button.btn:hover { transform: translateY(-1px); border-color: var(--gold-2); }
.btn-gold, a.doc {
  background: linear-gradient(135deg, #f3d160, #c48a14); color: #2a1a06;
  border-color: transparent; box-shadow: 0 4px 14px rgba(196, 138, 20, .32);
}
.btn-ghost { background: transparent; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
main.wrap { padding: 22px 0 48px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; letter-spacing: .18em; color: var(--dim); }
h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; }
.lead { margin: 0 0 20px; color: var(--dim); line-height: 1.7; }
.panel {
  position: relative;
  background:
    radial-gradient(300px 160px at 100% -30%, rgba(238, 194, 74, .08), transparent 70%),
    linear-gradient(180deg, #221809 0%, #1a1108 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .1), 0 16px 40px rgba(0, 0, 0, .3);
}

/* 看板：本期预测 + 上期一等奖并排，上期号码独占一行，奖池贴右上角 */
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.board .cell {
  position: relative;
  border: 1px solid var(--line); border-radius: 13px; padding: 10px 12px;
  background: linear-gradient(155deg, #30200f 0%, #23170c 48%, #1a1008 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 170, .16),
    inset 0 -1px 0 rgba(0, 0, 0, .4),
    0 6px 16px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.board .cell::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 226, 160, .08) 50%, transparent 62%);
  pointer-events: none;
}
.board .cell-draw { grid-column: 1 / -1; }
.board .cell-issue { padding-right: 76px; }
.board .lab { font-size: 12px; color: var(--dim); letter-spacing: .04em; }
.board .val {
  margin-top: 4px; font-size: 18px; font-weight: 800; color: var(--gold-soft);
  font-family: "DIN Alternate", "Arial Black", "Impact", "Arial Narrow", "SimHei", sans-serif;
  font-variant-numeric: tabular-nums;
}
/* 上期一等奖：注数与单注同一行，省高度 */
.board .cell-first .val-row {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.board .cell-first .cell-note { display: inline; margin: 0; font-size: 12px; color: var(--dim); }
.board .cell-note { display: block; margin-top: 2px; font-size: 12px; color: var(--dim); }
.pool-tag {
  position: absolute; top: 9px; right: 12px; text-align: right; line-height: 1.2;
}
.pool-tag span { display: block; font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.pool-tag b {
  display: block; font-size: 15px; color: var(--gold);
  font-family: "DIN Alternate", "Arial Black", "Impact", "Arial Narrow", "SimHei", sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .5);
}
.issue-date {
  position: absolute; top: 9px; right: 12px; text-align: right; line-height: 1.2; z-index: 1;
}
.issue-date span { display: block; font-size: 11px; color: var(--mute); letter-spacing: .04em; }
.issue-date b {
  display: block; font-size: 13px; color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.board .cell-draw .balls { margin-top: 6px; }

.balls { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* 球：两层高光 + 内影 + 落影，要有体积 */
.ball {
  position: relative;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
  font-family: "DIN Alternate", "Arial Black", "Impact", "Arial Narrow", "SimHei", sans-serif;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  box-shadow:
    inset -5px -6px 9px rgba(0, 0, 0, .34),
    inset 4px 5px 8px rgba(255, 255, 255, .26),
    0 4px 8px rgba(0, 0, 0, .38);
}
.ball::after {
  content: ""; position: absolute; top: 14%; left: 20%; width: 30%; height: 22%;
  border-radius: 50%; background: rgba(255, 255, 255, .5); filter: blur(1.6px);
  pointer-events: none;
}
.ball.red { background: radial-gradient(circle at 32% 28%, #f5978a, #d5432f 58%, #7e2015 100%); }
.ball.blue { background: radial-gradient(circle at 32% 28%, #8cbcf4, #2f79cf 58%, #123258 100%); }
.ball.on { outline: 2px solid #fff3; }
.ball.pop { animation: ball-pop .42s cubic-bezier(.2, 1.5, .5, 1) both; }
@keyframes ball-pop {
  0% { transform: scale(.2) translateY(-18px); opacity: 0; }
  60% { transform: scale(1.12) translateY(0); opacity: 1; }
  100% { transform: scale(1); }
}
.halls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.hall {
  display: block; text-decoration: none; color: inherit; padding: 18px;
  border-radius: 16px; border: 1px solid var(--line); background: #22170d;
}
.hall b { display: block; font-size: 20px; margin-bottom: 6px; }
.hall p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.tabs button {
  border: 1px solid var(--line); background: #22170d; color: var(--dim);
  border-radius: 999px; padding: 8px 12px; font-weight: 700; cursor: pointer;
}
.tabs button.on { background: var(--gold); color: #2a1a06; border-color: transparent; }
.pick-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-grid button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: #2a1d12; color: var(--ink); cursor: pointer; font-weight: 700;
}
.pick-grid button.on.red { background: var(--red); border-color: transparent; color: #fff; }
.pick-grid button.on.blue { background: var(--blue); border-color: transparent; color: #fff; }
textarea, input[type=text], input[type=tel], input[type=password] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #2a1d12; color: var(--ink); font: inherit;
}
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hint, .fhint, .sub { color: var(--dim); font-size: 13px; line-height: 1.6; }
.login-box { margin-top: 12px; }
.login-box label { display: block; font-size: 13px; color: var(--dim); margin: 10px 0 6px; }
.pick-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.prose p, .prose li { color: var(--dim); line-height: 1.75; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.site-foot { border-top: 1px solid var(--line); padding: 18px 0 28px; color: var(--mute); font-size: 12px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 10px; }
.site-foot a { color: var(--dim); text-decoration: none; }

/* 总馆卡片阵 */
.inscribe { margin: 0 0 14px; color: var(--gold); letter-spacing: .12em; font-size: 13px; }
.court { margin: 8px 0 22px; }
.main-halls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card.hall {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: inherit; padding: 20px;
  border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #29190c, #1c130a);
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .08), 0 8px 22px rgba(0, 0, 0, .3);
  transition: transform .16s ease, border-color .16s ease;
}
.card.hall:hover { transform: translateY(-2px); border-color: var(--gold-2); }
.card.hall .card-emblem { width: 32px; height: 32px; display: block; }
.card.hall b { display: block; font-size: 20px; }
.card.hall p { margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.card.hall-me {
  grid-column: 1 / -1;
  background: linear-gradient(160deg, #33230e, #1f150c);
  border-color: #6a4c1c;
}
.card.hall-game {
  gap: 8px;
  padding: 14px 16px;
}
.card.hall-game .hall-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.card.hall-game b { font-size: 18px; }
.card.hall-game .hall-pool {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* 彩种页顶栏：夜金门楣，左馆徽 / 中标题 / 右馆切换+说明 */
.tool-top {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 120px at 50% -60px, rgba(238, 194, 74, .22), transparent 70%),
    linear-gradient(180deg, rgba(66, 38, 22, .97), rgba(28, 18, 10, .92));
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(238, 194, 74, .22), 0 12px 30px rgba(0, 0, 0, .4);
}
.tool-top .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.tool-top .top-mark { text-decoration: none; color: inherit; display: block; }
.tool-top .top-title { text-align: center; min-width: 0; }
.tool-top .top-title h1 {
  margin: 0; font-size: 1.42rem; font-weight: 700; letter-spacing: .18em;
  color: var(--gold-soft);
  font-family: "KaiTi", "STKaiti", "Noto Serif SC", serif;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 18px rgba(238, 194, 74, .18);
}
.tool-top .top-title .sub {
  margin: 3px 0 0; font-size: 12px; color: var(--dim); letter-spacing: .06em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tool-top .top-acts, .site-head .head-acts {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px;
}
.tool-main { padding-top: 18px; }
.help-btn {
  font-size: 13px; line-height: 1; text-align: center;
  color: var(--gold-soft); background: rgba(44, 29, 15, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; text-decoration: none; font-weight: 700;
}
.col-switch { position: relative; }
.col-switch-btn {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-size: 13px; font-weight: 700;
  color: var(--ink); background: rgba(44, 29, 15, .8); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 28px 8px 12px; min-height: 36px;
  max-width: 48vw; cursor: pointer;
}
.col-switch-btn::after {
  content: ""; position: absolute; right: 12px;
  border: 4px solid transparent; border-top-color: var(--gold);
  transform: translateY(2px);
}
.col-switch-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 11.5em; background: #22170d; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.35); padding: 6px; z-index: 40;
}
.col-switch[data-open="1"] .col-switch-menu { display: block; }
.sw-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink);
  padding: 8px 10px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.sw-item:hover, .sw-item[aria-current="page"] { background: #2c2114; color: var(--gold); }
.sw-item, .col-switch-btn { display: flex; align-items: center; gap: 6px; }
.sw-emblem { width: 14px; height: 14px; flex-shrink: 0; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* 主页横屏摇号 */
.draw-gate {
  position: relative;
  width: 100%;
  height: 168px;
  margin: 0 0 16px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #6a4c1c;
  background:
    radial-gradient(80px 40px at 20% 30%, rgba(238, 194, 74, .2), transparent 70%),
    linear-gradient(180deg, #2a140c 0%, #120806 55%, #1a0c08 100%);
  box-shadow: inset 0 0 0 1px rgba(238, 194, 74, .2), 0 12px 28px rgba(0, 0, 0, .35);
}
.draw-glass {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), transparent 38%, rgba(0, 0, 0, .22));
  pointer-events: none;
}
.draw-shine {
  position: absolute; top: 0; bottom: 0; width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 140, .12), transparent);
  animation: draw-shine 4.8s ease-in-out infinite;
  pointer-events: none;
}
.draw-track {
  display: flex; align-items: center; gap: 14px;
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  animation: draw-roll 22s linear infinite;
  will-change: transform;
}
.draw-ball {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  font-size: 18px; font-weight: 800;
  font-family: "DIN Alternate", "Arial Black", "Impact", "Arial Narrow", "SimHei", sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: inset -6px -8px 10px rgba(0, 0, 0, .28), inset 5px 6px 8px rgba(255, 255, 255, .22);
  animation: draw-bob 1.6s ease-in-out infinite;
}
.draw-ball.red { background: radial-gradient(circle at 32% 30%, #f08a7a, #d5432f 62%, #8a2418); }
.draw-ball.blue { background: radial-gradient(circle at 32% 30%, #7eb0ee, #2f79cf 62%, #163e72); }
.draw-ball:nth-child(2n) { animation-delay: -.4s; }
.draw-ball:nth-child(3n) { animation-delay: -.8s; }
.draw-ball:nth-child(4n) { animation-delay: -1.1s; }
@keyframes draw-roll {
  from { transform: translate(-2%, -50%); }
  to { transform: translate(-52%, -50%); }
}
@keyframes draw-bob {
  0%, 100% { transform: translateY(4px); }
  50% { transform: translateY(-8px); }
}
@keyframes draw-shine {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(240%); }
}
@media (prefers-reduced-motion: reduce) {
  .draw-track, .draw-ball, .draw-shine, body::after { animation: none; }
}

.page-hub .prose h2, .page-hub .faq h2, .page-hub .howto h2, .page-hub .related h2 {
  font-size: 18px; letter-spacing: .08em; color: var(--gold);
}
.page-hub .howto ol { color: var(--dim); line-height: 1.75; padding-left: 1.2em; }
.related-list { display: flex; flex-wrap: wrap; gap: 10px; }
.related-list a { color: var(--dim); }

/* 我的甄选 */
.page-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px;
}
.page-tabs button {
  border: 1px solid var(--line); background: #22170d; color: var(--dim);
  border-radius: 999px; padding: 8px 10px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.page-tabs button.on { background: var(--gold); color: #2a1a06; border-color: transparent; }
.filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 12px; }
.filters button {
  border: 1px solid var(--line); background: #22170d; color: var(--dim);
  border-radius: 999px; padding: 7px 10px; font-weight: 700; cursor: pointer; font-size: 13px;
}
.filters button.on { background: var(--gold); color: #2a1a06; border-color: transparent; }
.auto-checks { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 4px; }
.auto-checks .muted { opacity: .55; }
.pick-line1 {
  display: flex; gap: 10px; align-items: flex-start;
  color: var(--dim); font-size: 12px; line-height: 1.5;
}
.pick-meta {
  display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center;
  min-width: 0; flex: 1;
}
.pick-acts {
  margin-left: auto; display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; flex-shrink: 0;
}
.pick-share, .pick-del {
  margin: 0; padding: 0;
  border: 0; background: none;
  font: inherit; font-size: 12px; cursor: pointer; line-height: 1.4;
}
.pick-share { color: var(--gold-soft); font-weight: 700; }
.pick-share:hover, .pick-del:hover { color: var(--gold); }
.pick-del { color: var(--mute); }
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.set-grid .span { grid-column: 1 / -1; }
.set-grid label, .login-box label { display: block; font-size: 13px; color: var(--dim); margin: 0 0 6px; }
select, input[type=number] {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #2a1d12; color: var(--ink); font: inherit;
}
.pick-line1 b { color: var(--ink); font-weight: 700; }
.pick-line2 {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
}
.pick-line2 .balls { margin-top: 0; }
.pick-status {
  display: inline-flex; align-items: baseline; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.pick-status.is-wait {
  flex: 1 1 100%;
  width: 100%;
  justify-content: space-between;
}
.prize-ok { color: var(--gold); font-weight: 800; }
.prize-miss { color: var(--mute); }
.prize-wait { color: var(--gold-soft); font-weight: 700; font-size: 13px; }
.pick-when { color: var(--mute); font-size: 11px; font-weight: 500; }
.wo-link { margin: 8px 0 0; }

/* ---------------- 四个玩法：立体卡 + 推演链 + 蓄力 + 摇珠仓 ---------------- */

/* 四个玩法一行：手机也一次显示完整，释放高度 */
.mode-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 14px 0 12px;
  perspective: 800px;
}
.mode-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px; cursor: pointer; text-align: center;
  border: 1px solid var(--line); border-radius: 13px; color: var(--dim);
  background: linear-gradient(160deg, #2c1c10, #1c1209);
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .1), 0 5px 14px rgba(0, 0, 0, .32);
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
  font: inherit;
}
.mode-card:hover { transform: translateY(-2px) rotateX(6deg); }
.mode-card b { font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.mode-card span { font-size: 10px; line-height: 1.3; color: var(--mute); }
.mode-card.on {
  color: #2a1a06; border-color: transparent;
  background: linear-gradient(160deg, #f3d264, #c48a14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 20px rgba(196, 138, 20, .34);
  transform: translateY(-3px);
}
.mode-card.on span { color: #5a3c08; }

.stage {
  position: relative; overflow: hidden;
  border: 1px solid #4f391b; border-radius: 16px; padding: 16px;
  background:
    radial-gradient(240px 130px at 50% -20%, rgba(238, 194, 74, .18), transparent 70%),
    linear-gradient(180deg, #26180a 0%, #180f07 100%);
  box-shadow: inset 0 0 0 1px rgba(238, 194, 74, .1), 0 14px 32px rgba(0, 0, 0, .36);
}
.stage-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.stage-head h3 { margin: 0; font-size: 15px; letter-spacing: .08em; color: var(--gold); }
.stage-head .sub { font-size: 12px; }
/* ballsHtml 给的是一串裸 span，这里横排 */
.draft-stage, #draft-balls {
  display: flex; flex-wrap: wrap; gap: 6px;
  align-items: center; justify-content: center;
}
.draft-stage { min-height: 72px; }
.draft-stage > div { width: 100%; }
.spin-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.spin-row .ball.whirl { animation: ball-whirl .28s linear infinite; }
@keyframes ball-whirl { to { transform: rotate(360deg); } }
#draft-balls { justify-content: flex-start; min-height: 40px; margin-top: 6px; }
#draft-balls > p { width: 100%; margin: 0; }

/* 推演链：一步一行 */
.chain { margin: 12px 0 0; display: grid; gap: 6px; }
.chain-row {
  display: grid; grid-template-columns: 5.5em 1fr auto; gap: 8px; align-items: baseline;
  font-size: 12px; line-height: 1.5; color: var(--dim);
  padding: 7px 10px; border-radius: 9px; background: rgba(0, 0, 0, .24);
  border-left: 2px solid #4f391b;
}
.chain-row b { color: var(--ink); font-weight: 700; }
.chain-row .from { color: var(--mute); }
.chain-row .left {
  color: var(--gold); font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.chain-row.fit { border-left-color: var(--danger); }
.chain-row.fit .tag { color: var(--danger); }
.chain-row .tag { font-size: 11px; }
.chain-row.done { border-left-color: var(--ok); }
.chain-foot { margin: 10px 0 0; font-size: 12px; color: var(--mute); line-height: 1.6; }

/* 蓄力按钮：按住越久金光越盛 */
.charge {
  position: relative; overflow: hidden;
  width: 100%; min-height: 64px; margin-top: 12px;
  border: 1px solid #6a4c1c; border-radius: 14px; cursor: pointer;
  color: var(--ink); font: inherit; font-weight: 800; font-size: 15px;
  background: linear-gradient(160deg, #38240f, #1f1409);
  box-shadow: inset 0 1px 0 rgba(255, 228, 170, .16), 0 6px 18px rgba(0, 0, 0, .3);
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.charge:disabled { opacity: .45; cursor: not-allowed; }
.charge .fill {
  position: absolute; inset: 0; width: 0%;
  background: linear-gradient(90deg, rgba(238, 194, 74, .28), rgba(243, 210, 100, .62));
  transition: width .06s linear;
}
.charge .cap { position: relative; display: block; }
.charge .ms {
  position: relative; display: block; margin-top: 3px;
  font-size: 12px; font-weight: 700; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.charge.hot { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(238, 194, 74, .45), 0 0 28px rgba(238, 194, 74, .32); }

.press-dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.press-dots i {
  width: 7px; height: 7px; border-radius: 50%; background: #4f391b; display: block;
}
.press-dots i.on { background: var(--gold); box-shadow: 0 0 7px rgba(238, 194, 74, .7); }

/* ---------------- 全屏彩色气泡：蓄力期间铺满可见区域，增加氛围 ---------------- */
.bubbles {
  position: fixed; inset: 0; z-index: 55; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity .3s ease;
}
.bubbles.on { opacity: 1; }
.bubbles .bubble {
  position: absolute; bottom: -80px; border-radius: 50%;
  width: 42px; height: 42px;
  box-shadow: inset -6px -8px 12px rgba(0, 0, 0, .28), inset 5px 6px 10px rgba(255, 255, 255, .5);
  opacity: .82;
  animation: bubble-rise linear forwards;
}
@keyframes bubble-rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  12% { opacity: .85; }
  100% { transform: translateY(-116vh) scale(1.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
}

/* ---------------- 摇珠机：只留圆仓，底部一条连通出球槽 ---------------- */
.shake-stage { position: relative; margin-top: 0; padding: 28px 8px 2px; }
.shake-mute {
  position: absolute; top: 4px; right: 4px; z-index: 5;
  width: 32px; height: 32px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 8px;
  background: transparent; color: var(--gold);
  cursor: pointer;
}
.shake-mute svg { width: 20px; height: 20px; display: block; fill: currentColor; }
.shake-mute .ico-off { display: none; }
.shake-mute[aria-pressed="true"] { color: var(--mute); }
.shake-mute[aria-pressed="true"] .ico-on { display: none; }
.shake-mute[aria-pressed="true"] .ico-off { display: block; }
.shake-machines {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  justify-items: center; align-items: start;
  padding-bottom: 28px;
}
.shaker {
  position: relative;
  width: min(44vw, 188px); height: min(44vw, 188px);
  border-radius: 50%; overflow: visible;
  border: 2px solid rgba(238, 194, 74, .4);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .16), transparent 58%),
    radial-gradient(circle at 50% 18%, rgba(255, 236, 190, .2), transparent 70%),
    radial-gradient(circle at 62% 76%, rgba(0, 0, 0, .42), transparent 62%),
    linear-gradient(180deg, #2c1508 0%, #140a06 60%, #1c0e08 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5), 0 0 22px rgba(238, 194, 74, .12);
  perspective: 560px;
  transition: box-shadow .2s ease, border-color .2s ease, opacity .2s ease;
}
.shaker[data-kind="special"] {
  border-color: rgba(120, 170, 240, .45);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, .14), transparent 58%),
    radial-gradient(circle at 50% 18%, rgba(190, 220, 255, .2), transparent 70%),
    radial-gradient(circle at 62% 76%, rgba(0, 0, 0, .42), transparent 62%),
    linear-gradient(180deg, #0f1c30 0%, #08101c 60%, #0b1524 100%);
  box-shadow: inset 0 0 30px rgba(0, 0, 0, .5), 0 0 22px rgba(80, 150, 240, .16);
}
.shaker.locked { opacity: .48; filter: saturate(.7); }
.shaker.active { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(238, 194, 74, .4), 0 0 28px rgba(238, 194, 74, .28), inset 0 0 30px rgba(0, 0, 0, .5); }
.shaker[data-kind="special"].active { border-color: #7eb0ee; box-shadow: 0 0 0 1px rgba(120, 170, 240, .45), 0 0 28px rgba(80, 150, 240, .3), inset 0 0 30px rgba(0, 0, 0, .5); }
.shaker.spin { animation: tank-turn 1.1s linear infinite; }
@keyframes tank-turn { to { transform: rotate(360deg); } }
.shaker .peas { position: absolute; inset: 0; overflow: hidden; border-radius: 50%; }
.shaker .pea {
  position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -8px;
  width: 16px; height: 16px; border-radius: 50%;
  display: grid; place-items: center; font-size: 8px; font-weight: 800; color: #fff;
  font-variant-numeric: tabular-nums;
  box-shadow: inset -2px -3px 4px rgba(0, 0, 0, .35), inset 2px 2px 3px rgba(255, 255, 255, .28);
  will-change: transform;
  transition: opacity .22s ease;
}
.shaker .pea.gone { opacity: 0; }
.shaker .pea.red { background: radial-gradient(circle at 32% 28%, #f5978a, #d5432f 58%, #7e2015); }
.shaker .pea.blue { background: radial-gradient(circle at 32% 28%, #8cbcf4, #2f79cf 58%, #123258); }
.shaker .lamp {
  position: absolute; left: 0; right: 0; bottom: -22px; z-index: 2;
  text-align: center; font-size: 11px; color: var(--mute);
  letter-spacing: .12em; font-weight: 700; pointer-events: none;
}
.shaker.active .lamp { color: var(--gold); }
.shaker[data-kind="special"].active .lamp { color: #9cc4f4; }
.shake-rail {
  margin-top: 0;
  min-height: 48px;
  display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(28, 16, 8, .2), rgba(8, 5, 3, .72));
  border: 1px solid rgba(238, 194, 74, .22);
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, .28);
}
.shake-rail .ball { width: 30px; height: 30px; font-size: 12px; flex-shrink: 0; }

/* 摇出的号、命盘每颗球的出处 */
.why-list { display: grid; gap: 6px; margin-top: 10px; }
.why-list div {
  font-size: 12px; color: var(--dim); line-height: 1.5;
  padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, .22);
}
.why-list b { color: var(--gold); font-weight: 800; }

/* ---------------- 命盘：横宽太极盘，点中央开始 ---------------- */
.bazi-plate {
  display: block; width: 100%; padding: 8px 8px 18px;
  border: 1px solid #4f391b; border-radius: 16px; cursor: pointer;
  background:
    radial-gradient(320px 120px at 50% -20%, rgba(238, 194, 74, .18), transparent 70%),
    linear-gradient(180deg, #241708 0%, #160e07 100%);
  box-shadow: inset 0 0 0 1px rgba(238, 194, 74, .1);
  color: inherit; font: inherit; text-align: center;
}
.bazi-plate:hover { border-color: var(--gold-2); }
.bazi-art { display: block; width: 100%; height: 132px; }
.bazi-start {
  display: inline-block; margin-top: 2px;
  font-size: 14px; font-weight: 800; letter-spacing: .18em;
  color: var(--gold-soft);
}
.bazi-plate.busy { pointer-events: none; opacity: .72; }
.bazi-stage-anim {
  position: relative; margin-top: 10px;
  border-radius: 14px; border: 1px solid #4f391b; overflow: hidden;
  background: linear-gradient(180deg, #241708 0%, #160e07 100%);
  box-shadow: inset 0 0 0 1px rgba(238, 194, 74, .1);
  padding: 14px 12px;
}
.bazi-pillars {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.bazi-pillar {
  text-align: center; padding: 8px 4px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, .26);
  opacity: .25; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.bazi-pillar.lit {
  opacity: 1; transform: translateY(0);
  border-color: var(--gold-2);
  box-shadow: 0 0 16px rgba(238, 194, 74, .24), inset 0 0 0 1px rgba(238, 194, 74, .2);
}
.bazi-pillar .p-lab { font-size: 11px; color: var(--mute); letter-spacing: .1em; }
.bazi-pillar .p-gan {
  font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--gold-soft);
  font-family: "KaiTi", "STKaiti", "Noto Serif SC", serif;
}
.bazi-flow {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: 12px; min-height: 24px;
  font-size: 12px; color: var(--dim);
}
.bazi-flow .node {
  padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, .28); opacity: 0; transform: scale(.8);
  transition: opacity .35s ease, transform .35s ease;
}
.bazi-flow .node.lit { opacity: 1; transform: scale(1); border-color: var(--gold-2); color: var(--gold-soft); }
.bazi-flow .arrow { color: var(--mute); opacity: 0; transition: opacity .35s ease; }
.bazi-flow .arrow.lit { opacity: 1; }

/* 过渡遮罩 */
.veil {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  background: rgba(10, 6, 3, .88); backdrop-filter: blur(3px);
}
.veil[hidden] { display: none; }
.veil .ring {
  width: 128px; height: 128px; border-radius: 50%;
  border: 2px solid rgba(238, 194, 74, .3); border-top-color: var(--gold);
  animation: veil-turn .9s linear infinite;
}
.veil .word {
  position: absolute; font-size: 13px; letter-spacing: .3em; color: var(--gold);
  text-indent: .3em;
}
@keyframes veil-turn { to { transform: rotate(360deg); } }

/* ---------------- 决策条：认可并保存 / 不认可重试 ---------------- */
.decide-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.decide-bar .btn { min-height: 46px; font-size: 14px; }
.decide-bar .btn-retry { background: linear-gradient(160deg, #2c1d10, #201509); }
.decide-bar.hidden { display: none !important; }

.scoreboard { margin-top: 12px; }
.score-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--dim);
}
.score-row .balls { margin-top: 0; }
.score-row .ball { width: 26px; height: 26px; font-size: 11px; }
.score-row .hit { color: var(--gold); font-weight: 800; }

.agreed-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 4px;
}
.agreed-head h2 { margin: 0; font-size: 16px; }
.share-box { position: relative; }
.share-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
  min-width: 8.5em; padding: 6px;
  background: #22170d; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.share-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--ink);
  padding: 8px 10px; border-radius: 8px; font: inherit; font-weight: 700; cursor: pointer;
}
.share-menu button:hover { background: #2c2114; color: var(--gold); }
.poster-mask {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(10, 6, 3, .88); display: grid; place-items: center; padding: 20px;
}
.poster-mask .poster-box {
  width: min(440px, 100%); max-height: 88vh; overflow: auto;
  background: #1a1208; border: 1px solid var(--line); border-radius: 16px; padding: 14px;
}
.poster-mask img { display: block; width: 100%; border-radius: 8px; user-select: none; -webkit-user-select: none; }
.poster-mask .row { margin-top: 10px; }
.poster-hint { margin: 8px 0 0; color: var(--dim); font-size: 12px; line-height: 1.5; }

.pick-card .pick-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--gold-soft); font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--gold-2); background: rgba(238, 194, 74, .1);
}

@media (prefers-reduced-motion: reduce) {
  .shaker.spin, .veil .ring, .ball.pop, .spin-row .ball.whirl { animation: none; }
}

.toast {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  background: #2c2114; border: 1px solid var(--gold); color: var(--ink);
  padding: 10px 14px; border-radius: 10px; z-index: 70; display: none;
}
.hidden { display: none !important; }
@media (max-width: 640px) {
  .halls, .main-halls { grid-template-columns: 1fr; }
  .page-wo .board, .page-wo .set-grid { grid-template-columns: 1fr 1fr; }
  .page-tabs { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 24px; }
  .tool-top .top-title h1 { font-size: 1.24rem; letter-spacing: .12em; }
  .draw-gate { height: 128px; }
  .draw-ball { width: 42px; height: 42px; font-size: 14px; }
  .board { gap: 8px; }
  .board .cell { padding: 9px 10px; }
  .board .val { font-size: 16px; }
  .pool-tag { top: 8px; right: 10px; }
  .pool-tag b { font-size: 13px; }
  .issue-date { top: 8px; right: 10px; }
  .issue-date b { font-size: 12px; }
  .board .cell-issue { padding-right: 68px; }
  .mode-cards { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .mode-card { padding: 9px 2px; border-radius: 11px; }
  .mode-card b { font-size: 12.5px; }
  .mode-card span { display: none; }
  .chain-row { grid-template-columns: 5em 1fr; }
  .chain-row .left { grid-column: 2; justify-self: end; }
  .shaker { width: min(42vw, 160px); height: min(42vw, 160px); }
  .shaker .pea { width: 14px; height: 14px; margin: -7px 0 0 -7px; font-size: 7px; }
  .bazi-art { height: 112px; }
  .bazi-pillar .p-gan { font-size: 19px; }
}
