/* auto from mini program */
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif}
button{font:inherit}
.hidden{display:none !important}
body.theme-a,body.theme-b,body.theme-c,body.theme-d{min-height:100vh;background:var(--bg);color:var(--text);font-size:var(--fs)}
body.theme-a {
  --bg: #eef2f6;
  --card: #ffffff;
  --text: #111827;
  --text2: #334155;
  --muted: #64748b;
  --muted2: #94a3b8;
  --border: #d8e0ea;
  --border2: #c5d0dc;
  --input: #ffffff;
  --chip: #ffffff;
  --chip-hot-bg: #e8f1fc;
  --chip-hot-bd: #1f6feb;
  --chip-hot-fg: #1a56c4;
  --accent: #1f6feb;
  --accent2: #1a56c4;
  --gold: #b45309;
  --gold-bg: rgba(240, 198, 116, 0.18);
  --gold-bd: rgba(180, 83, 9, 0.35);
  --sv: #0f172a;
  --zone-cell: #f8fafc;
  --today-bg: linear-gradient(135deg, #e8f1fc 0%, #eef2f6 100%);
  --today-title: #1a56c4;
  --fs: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  --fs-num: 40px;
}
body.theme-b {
  --bg: #f7f4ef;
  --card: #fffdf9;
  --text: #1f1810;
  --text2: #5c4e3a;
  --muted: #8a7a66;
  --muted2: #a89884;
  --border: #e8dfd2;
  --border2: #ddd2c2;
  --input: #fffdf9;
  --chip: #fffdf9;
  --chip-hot-bg: #fff3e0;
  --chip-hot-bd: #e8913a;
  --chip-hot-fg: #b45f06;
  --accent: #c9782c;
  --accent2: #b45f06;
  --gold: #b45f06;
  --gold-bg: rgba(201, 120, 44, 0.14);
  --gold-bd: rgba(180, 95, 6, 0.4);
  --sv: #1f1810;
  --zone-cell: #faf7f2;
  --today-bg: linear-gradient(135deg, #fff3e0 0%, #f7f4ef 100%);
  --today-title: #b45f06;
  --fs: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  --fs-num: 40px;
}
body.theme-c {
  --bg: #eef7f3;
  --card: #ffffff;
  --text: #0f241c;
  --text2: #2d5a4a;
  --muted: #5a7d70;
  --muted2: #7a9a8c;
  --border: #cfe3da;
  --border2: #b7d4c8;
  --input: #ffffff;
  --chip: #ffffff;
  --chip-hot-bg: #e0f2ea;
  --chip-hot-bd: #1a9b6c;
  --chip-hot-fg: #0d6b48;
  --accent: #1a9b6c;
  --accent2: #0d6b48;
  --gold: #0d6b48;
  --gold-bg: rgba(26, 155, 108, 0.14);
  --gold-bd: rgba(13, 107, 72, 0.35);
  --sv: #0f241c;
  --zone-cell: #f5fbf8;
  --today-bg: linear-gradient(135deg, #e0f2ea 0%, #eef7f3 100%);
  --today-title: #0d6b48;
  --fs: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;
  --fs-lg: 17px;
  --fs-xl: 22px;
  --fs-num: 40px;
}
body.theme-d {
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #0f172a;
  --text2: #1e293b;
  --muted: #64748b;
  --muted2: #94a3b8;
  --border: #e2e8f0;
  --border2: #cbd5e1;
  --input: #ffffff;
  --chip: #ffffff;
  --chip-hot-bg: #e8f1fc;
  --chip-hot-bd: #1f6feb;
  --chip-hot-fg: #1a56c4;
  --accent: #1f6feb;
  --accent2: #1a56c4;
  --gold: #b45309;
  --gold-bg: rgba(240, 198, 116, 0.18);
  --gold-bd: rgba(180, 83, 9, 0.35);
  --sv: #0f172a;
  --zone-cell: #f8fafc;
  --today-bg: linear-gradient(135deg, #e8f1fc 0%, #f5f7fa 100%);
  --today-title: #1a56c4;
  --fs: 16px;
  --fs-sm: 14px;
  --fs-xs: 13px;
  --fs-lg: 18px;
  --fs-xl: 24px;
  --fs-num: 44px;
}
.theme-picker {
  margin: 14px 16px 0;
  padding: 10px 11px;
  background: var(--card);
  border: 0.50px solid var(--border);
  border-radius: 8px;
}
.theme-picker-label {
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-bottom: 6px;
}
.theme-picker-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.theme-chip {
  padding: 5px 11px;
  border-radius: 14px;
  border: 0.50px solid var(--border2);
  background: var(--chip);
  color: var(--text2);
  font-size: var(--fs-sm);
}
.theme-chip.on {
  background: var(--chip-hot-bg);
  border-color: var(--chip-hot-bd);
  color: var(--chip-hot-fg);
  font-weight: 700;
}
.page {
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
  padding: 16px 14px 40px;
}
.hero { margin-bottom: 12px; }
.title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 1px;
}
.hero-sub {
  margin-top: 6px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #fff7e6;
  border: 0.50px solid #f5c26b;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.career {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.career-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.career-title { font-size: 20px; font-weight: 800; color: var(--text); }
.career-reset {
  color: #0d6b48;
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}
.reset-btn {
  margin-top: 10px;
  text-align: center;
  padding: 11px;
  border-radius: 7px;
  background: #d8f3e7;
  color: #0d6b48;
  border: 1px solid #0d6b48;
  font-size: 17px;
  font-weight: 800;
}
.career-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.career-row .up { color: #c62828; }
.career-row .down { color: #1b7a4a; }
.career-sub { margin-top: 4px; color: var(--muted); font-size: 13px; }
.rank-entry {
  margin-top: 8px;
  text-align: center;
  padding: 9px;
  border-radius: 6px;
  background: #fff8e7;
  color: #9b1c1c;
  border: 1px solid #c62828;
  font-size: 15px;
  font-weight: 800;
}
.career-line { margin-top: 4px; color: var(--text2); font-size: 14px; }
.career-empty { margin-top: 5px; color: var(--muted); font-size: 14px; }
.level {
  margin-top: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.level.done { border-color: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; }
.name { font-size: 22px; font-weight: 800; color: var(--text); }
.stars { color: var(--gold); font-size: 18px; font-weight: 700; }
.goal { margin-top: 8px; color: var(--text2); font-size: 17px; line-height: 1.7; }
.meta { margin-top: 7px; color: var(--muted); font-size: 16px; font-weight: 600; }
.go {
  margin-top: 14px;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 14px;
  border-radius: 8px;
  font-size: 20px;
}
.link-row {
  margin-top: 12px;
  text-align: center;
}
.link {
  color: var(--accent2);
  font-size: 14px;
  text-decoration: underline;
}
.link-sep {
  margin: 0 6px;
  color: var(--muted);
}

.page {
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px 40px;
}
.sim-banner {
  margin-bottom: 6px;
  padding: 7px 8px;
  border-radius: 5px;
  background: #fff7e6;
  border: 0.50px solid #f5c26b;
  color: #8a5a00;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}
.stats {
  margin-top: 2px;
  background: var(--card);
  border: 0.50px solid var(--border);
  border-radius: 6px;
  padding: 5px 8px 6px;
}
.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 2px 0;
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.k { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.v { font-size: 17px; font-weight: 800; color: var(--text); }
.v.up { color: #c62828; }
.v.down { color: #1b7a4a; }
.v.pct { font-size: 15px; font-weight: 800; }
.theta-bar {
  margin: 2px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1e1b4b;
  color: #e2e8f0;
  border: 0.50px solid #facc15;
  border-radius: 5px;
  padding: 5px 6px;
  font-size: 13px;
  font-weight: 700;
}
.theta-dte { display: flex; align-items: baseline; gap: 4px; }
.theta-lab { color: #fde68a; font-size: 14px; }
.dte-num {
  color: #facc15;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 6px rgba(250, 204, 21, 0.65);
}
.dte-unit { color: #facc15; font-size: 14px; font-weight: 800; }
.chart-wrap {
  margin-top: 8px;
  background: #0b1220;
  border-radius: 8px;
  padding: 4px;
  border: 0.50px solid #1e293b;
  overflow: hidden;
}
.chart-wrap.opt { border-color: #7c3aed; }
.chart { width: 100%; display: block; }
.barinfo { color: #cbd5e1; font-size: 14px; padding: 5px 5px 4px; }
.pos-card {
  margin-top: 7px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 0.50px solid var(--gold-bd);
  border-radius: 7px;
  padding: 9px 10px;
  font-size: 15px;
  line-height: 1.6;
}
.pos-title { font-weight: 700; margin-bottom: 3px; font-size: 16px; color: var(--text); }
.pos-float { margin-top: 4px; font-size: 17px; font-weight: 700; }
.pos-float.up { color: #c62828; }
.pos-float.down { color: #1b7a4a; }
.lot-bar {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}
.lot-k { font-size: 15px; font-weight: 700; color: var(--text); margin-right: 3px; }
.lot-pm {
  width: 28px;
  height: 28px;
  line-height: 26px;
  text-align: center;
  border-radius: 5px;
  background: var(--card);
  border: 0.50px solid var(--border2);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.lot-n { font-size: 20px; font-weight: 800; min-width: 24px; text-align: center; color: var(--text); }
.lot-chip {
  padding: 4px 8px;
  border-radius: 499.50px;
  border: 0.50px solid var(--border2);
  background: var(--card);
  color: var(--text2);
  font-size: 14px;
  font-weight: 700;
}
.lot-chip.on {
  background: var(--chip-hot-bg);
  border-color: var(--chip-hot-bd);
  color: var(--chip-hot-fg);
}
.ops { display: flex; flex-direction: row; margin-top: 8px; }
.ops .tap { margin-right: 6px; }
.ops .tap:last-child { margin-right: 0; }
.settle-row {
  display: flex;
  flex-direction: row;
  margin-top: 8px;
  width: 100%;
}
.settle-btn {
  flex: 1;
  box-sizing: border-box;
  text-align: center;
  padding: 12px 4px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  border: 0.50px solid var(--border2);
  white-space: nowrap;
}
.settle-btn.ghost { background: var(--card); color: var(--text2); }
.settle-btn.off { opacity: 0.35; }
.settle-btn + .settle-btn { margin-left: 6px; }
.mask {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  box-sizing: border-box;
  background: var(--card);
  border-radius: 14px 14px 0 0;
  padding: 14px 14px 24px;
}
.sheet-title { font-size: 20px; font-weight: 800; color: var(--text); }
.sheet-line { margin-top: 5px; color: var(--text2); font-size: 14px; }
.sheet-money { margin-top: 6px; font-size: 17px; font-weight: 700; color: var(--text); }
.sheet-total { margin-top: 9px; font-size: 20px; font-weight: 800; color: var(--accent2); }
.sheet-left { margin-top: 4px; font-size: 14px; color: var(--muted); }
.tap {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  border-radius: 7px;
  font-size: 16px;
  font-weight: 700;
  background: var(--chip);
  color: var(--text);
  border: 0.50px solid var(--border2);
}
.tap.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.tap.ghost { background: var(--card); color: var(--text2); }
.ops.trade .tap:first-child { background: #c62828; color: #fff; border-color: #c62828; }
.ops.trade .tap:nth-child(2) { background: #1a9b6c; color: #fff; border-color: #1a9b6c; }
.ops.trade .tap.ghost { background: var(--card); color: var(--text); }
.tap.off { opacity: 0.35; }
.msg {
  margin-top: 9px;
  padding: 8px 9px;
  background: var(--chip-hot-bg);
  color: var(--accent2);
  border: 0.50px solid var(--chip-hot-bd);
  border-radius: 6px;
  font-size: 15px;
  min-height: 20px;
  line-height: 1.5;
}
.warn {
  margin-top: 7px;
  padding: 8px 9px;
  background: var(--gold-bg);
  color: var(--gold);
  border: 0.50px solid var(--gold-bd);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
}
.broke-sheet { padding-bottom: 24px; }
.broke-btn {
  margin-top: 10px;
  text-align: center;
  padding: 13px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
}
.broke-btn.reset {
  background: #d8f3e7;
  color: #0d6b48;
  border: 1px solid #0d6b48;
}
.broke-btn.report {
  background: #fff;
  color: #1f2937;
  border: 1px solid #94a3b8;
}

.page {
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
  padding: 20px 14px 40px;
}
.head-card {
  background: var(--card);
  border: 0.50px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}
.head-card.jackpot {
  background: #fff4e8;
  border: 2px solid #c62828;
}
.title { font-size: 21px; font-weight: 700; color: #0f241c; }
.head-card.jackpot .title {
  color: #9b1c1c;
  font-size: 26px;
  letter-spacing: 4px;
  text-align: center;
}
.badge { display: inline-block; margin-top: 8px; padding: 4px 9px; border-radius: 499.50px; font-size: 15px; }
.badge.ok { background: #e8f6ef; color: #0d6b48; border: 0.50px solid #9ad9bf; }
.badge.bad { background: #fff3e0; color: #b45f06; border: 0.50px solid #f0c48a; }
.badge.joy {
  display: block;
  text-align: center;
  background: #c62828;
  color: #fff8e7;
  border: 0;
  font-weight: 800;
}
.jackpot-line {
  margin-top: 9px;
  text-align: center;
  color: #9b1c1c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}
.ops { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.rank-card {
  margin-top: 12px;
  background: #fff8e7;
  border: 1px solid #c62828;
  border-radius: 8px;
  padding: 12px;
}
.rank-main {
  font-size: 18px;
  font-weight: 800;
  color: #9b1c1c;
  line-height: 1.5;
}
.rank-sub {
  margin-top: 4px;
  color: #7a4a12;
  font-size: 14px;
  font-weight: 700;
}
.rank-go {
  margin-top: 6px;
  color: #0d6b48;
  font-size: 14px;
  font-weight: 800;
}
.report {
  margin-top: 12px;
  background: var(--card);
  border: 0.50px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.sec {
  font-size: 15px;
  font-weight: 800;
  color: #0d6b48;
  margin-bottom: 6px;
}
.bad-sec { margin-top: 10px; color: #9b1c1c; }
.row { color: #1f2937; font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.sum {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 0.50px solid var(--border);
  color: #b45f06;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
}
.btn { text-align: center; padding: 13px; border-radius: 8px; font-size: 18px; font-weight: 700; }
.btn.primary {
  background: #d8f3e7;
  color: #0d6b48;
  border: 1px solid #0d6b48;
}
.btn.ghost {
  background: #fff;
  color: #1f2937;
  border: 1px solid #94a3b8;
}
.share-tip {
  margin-top: 18px;
  text-align: center;
  color: #0d6b48;
  font-size: 15px;
  font-weight: 700;
}

.nick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.nick-label {
  font-size: 14px;
  color: #0d6b48;
  font-weight: 700;
  white-space: nowrap;
}
.nick-save {
  flex-shrink: 0;
  background: #c62828;
  color: #fff8e7;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.nick-input {
  flex: 1;
  background: #fff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 15px;
  color: #1f2937;
}
.poster-box {
  background: #1a0a0a;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  min-height: 180px;
}
.poster-img {
  width: 100%;
  display: block;
}
.poster-wait {
  color: #fff8e7;
  text-align: center;
  padding: 40px 10px;
  font-size: 14px;
}
.poster-canvas {
  position: fixed;
  left: -3000px;
  top: -3000px;
  width: 750px;
  height: 1000px;
}

.page {
  min-height: 100vh;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--text);
  padding: 16px 14px 40px;
}
.head { margin-bottom: 10px; }
.title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}
.rule {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.mine {
  background: #fff8e7;
  border: 1px solid #c62828;
  border-radius: 8px;
  padding: 12px;
}
.mine-main {
  font-size: 17px;
  font-weight: 800;
  color: #9b1c1c;
  line-height: 1.5;
}
.mine-sub {
  margin-top: 4px;
  color: #7a4a12;
  font-size: 14px;
  font-weight: 700;
}
.list {
  margin-top: 10px;
  background: var(--card);
  border: 0.50px solid var(--border);
  border-radius: 8px;
  padding: 4px 10px 8px;
}
.loading, .empty {
  padding: 20px 4px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.row {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 0.50px solid var(--border);
  font-size: 15px;
}
.row:last-child { border-bottom: 0; }
.mine-row { background: #fff4e8; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.no {
  width: 36px;
  font-weight: 800;
  color: #9b1c1c;
}
.nick {
  flex: 1;
  font-weight: 700;
  color: var(--text);
}
.mult {
  font-weight: 800;
  color: #0d6b48;
}


.poster-canvas{position:fixed;left:-9999px;top:-9999px;width:1px;height:1px}
.view{min-height:100vh}
.mask{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:1000;display:flex;align-items:flex-end;justify-content:center}
.mask.hidden{display:none !important}
