:root {
  --gold: #e2aa00;
  --gold-dark: #bd8600;
  --gold-soft: #fff4cf;
  --cream: #fdf6df;
  --paper: #fffdfa;
  --border: #f0d98a;
  --text: #4c432d;
  --muted: #82775c;
  --green: #16a34a;
  --red: #ef4444;
  --blue: #3b82f6;
  --shadow: 0 1px 3px rgba(78, 55, 0, .28);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { background: #ede9dc; min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

#app { min-height: 100vh; }
.shell { max-width: 768px; min-height: 100vh; margin: 0 auto; padding-bottom: calc(68px + env(safe-area-inset-bottom)); background: var(--cream); }
.topbar {
  position: sticky; top: 0; z-index: 30; height: calc(48px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top); color: white;
  background: linear-gradient(180deg, #ebb900 0%, #d49c00 100%);
  box-shadow: 0 1px 0 rgba(116, 78, 0, .22);
}
.topbar-inner { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; }
.site-logo { max-width:108px; max-height:34px; object-fit:contain; }
.topbar h1 { margin: 0; min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; font-weight: 750; text-shadow: 0 1px 1px #7c5500; }
.back { width: 32px; height: 40px; display: grid; place-items: center; margin-left: -8px; color: #fff; font-size: 31px; line-height: 1; text-shadow: 0 1px 2px #5f4500; }
.header-action { min-width: 44px; height: 32px; padding: 0 10px; border: 1px solid rgba(255,255,255,.55); border-radius: 16px; color: #fff; background: rgba(255,255,255,.17); }
.guest-actions { display:flex; align-items:center; gap:5px; white-space:nowrap; font-size:13px; font-weight:700; }.guest-actions a { padding:5px 2px; }.guest-actions i { opacity:.65; font-style:normal; }.member-action { max-width:120px; padding:5px 9px; display:flex; align-items:center; gap:4px; overflow:hidden; border:1px solid rgba(255,255,255,.55); border-radius:16px; white-space:nowrap; text-overflow:ellipsis; font-size:12px; font-weight:700; background:rgba(255,255,255,.16); }.coin-balance{min-width:78px;justify-content:center;background:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.12));box-shadow:inset 0 1px rgba(255,255,255,.22)}.coin-balance span{font-size:15px}.coin-balance b{overflow:hidden;text-overflow:ellipsis}

.banner { width: 100%; aspect-ratio: 1600/688; overflow: hidden; background: var(--gold-dark); }
.banner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner.natural { aspect-ratio:auto; }.banner.natural img { height:auto; object-fit:contain; }

.lottery-box { background: white; padding: 8px 12px 10px; }
.lottery-tabs { display: flex; gap: 2px; padding: 2px; height: 48px; background: #fcf2d9; border-radius: 8px; }
.lottery-tab { flex: 1; border: 0; border-radius: 6px; color: var(--muted); background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; }
.lottery-tab.active { color: white; background: var(--green); box-shadow: 0 1px 2px rgba(0,0,0,.16); }
.draw-meta { height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
.draw-meta strong { color: var(--green); font-size: 12px; margin-right: 6px; }
.history-link { height: 44px; padding: 0 4px 0 10px; display: flex; align-items: center; color: var(--muted); font-size: 12px; white-space: nowrap; }
.balls { display: flex; align-items: stretch; gap: 4px; height: 58px; }
.ball { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 6px; color: #fff; }
.ball-num { font-size: 24px; line-height: 1; font-weight: 800; }
.ball-meta { max-width: 100%; margin-top: 5px; padding: 1px 4px; border-radius: 4px; color: #333; background: #fff; font-size: 11px; line-height: 15px; white-space: nowrap; }
.ball.red { background: #ef5350; }.ball.blue { background: #4285e1; }.ball.green { background: #26a65b; }
.ball.special { margin-left: 6px; outline: 2px solid #f1bd2d; }

.filters { margin-top: 4px; background: #fff; border-bottom: 1px solid var(--border); }
.home-ad-text { margin-top:4px; padding:10px 16px; overflow-wrap:anywhere; white-space:normal; border-top:1px solid #f4e6b5; border-bottom:1px solid var(--border); background:#fff; }
.lottery-partner-ad{margin:4px 8px 8px;padding:8px;border:1px solid #f0d27d;border-radius:8px;background:linear-gradient(180deg,#fffdf6,#fff7d9)}
.lottery-partner-title{margin-bottom:7px;display:flex;align-items:center;justify-content:center;gap:5px;color:#9a6700;font-size:13px}.lottery-partner-title span{font-size:14px}.lottery-partner-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.lottery-partner-links a{min-width:0;min-height:34px;padding:7px 8px;display:grid;place-items:center;overflow:hidden;border:1px solid #e7ba42;border-radius:7px;color:#8a4b00;background:#fff;font-size:13px;font-weight:700;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;box-shadow:0 1px 2px #c7941a1f}.lottery-partner-links a:active{transform:translateY(1px);background:#fff2bd}.lottery-partner-empty{padding:8px;border:1px dashed #e6ca78;border-radius:6px;color:#b38b37;background:#fff;text-align:center;font-size:12px}
@media(max-width:480px){.lottery-partner-links{grid-template-columns:repeat(2,minmax(0,1fr))}.lottery-partner-links a{min-height:32px;font-size:12px}}
.category-row { padding: 8px 16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-row::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 7px 14px; border: 0; border-radius: 999px; color: var(--text); background: #fcf2d9; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.active { color: #fff; background: #eab308; }
.search-row { padding: 8px 16px; display: flex; gap: 8px; }
.search-control { width: 100%; height: 37px; display: flex; overflow: hidden; border: 1px solid var(--border); border-radius: 4px; }
.search-control select { width: 86px; padding: 0 8px; border: 0; outline: 0; color: var(--muted); background: #fcf2d9; font-size: 12px; }
.search-control input { min-width: 0; flex: 1; padding: 0 12px; border: 0; outline: 0; color: var(--gold-dark); background: white; }

.post-groups { padding: 8px 5px 0; }
.post-group { margin-bottom: 8px; overflow: hidden; border: 1px solid #dc9d00; border-radius: 2px; background: #fff; }
.group-title { height: 30px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(180deg,#ffc400,#e4a700); font-size: 15px; font-weight: 800; letter-spacing: .5px; }
.post-list { list-style: none; margin: 0; padding: 0; }
.post-row { min-height: 30px; border-top: 1px solid #e7b946; }
.post-row:first-child { border-top: 0; }
.post-link { min-height: 30px; padding: 4px 8px; display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 20px; }
.post-link span:first-child { flex: 1; min-width: 0; }
.post-link .lock { flex: 0 0 auto; font-size: 12px; }
.post-group.sale .post-link { color: #ff3848; }
.post-group.hot .post-link { color: #159447; }
.post-group.recommended .post-link { color: #315fff; }
.post-group.expert .post-link { color: #222; }
.no-results { padding: 35px 15px; text-align: center; color: var(--muted); }

.poster-stack {
  width: calc(100% - 10px); margin: 0 5px 12px; padding: 5px;
  display: grid; gap: 6px; overflow: hidden;
  border: 1px solid var(--border); border-radius: 6px; background: #fff;
}
.poster-stack img {
  width: 100%; max-width: 100%; height: auto; display: block;
  object-fit: contain; border-radius: 3px; background: #fff;
  content-visibility: auto; contain-intrinsic-size: auto 260px;
}
@media (max-width: 520px) {
  .poster-stack { width: calc(100% - 8px); margin: 0 4px 8px; padding: 3px; gap: 4px; border-radius: 4px; }
  .poster-stack img { border-radius: 2px; }
}

.bottom-nav {
  position: fixed; z-index: 50; left: 50%; bottom: 0; width: min(100%, 768px); height: calc(64px + env(safe-area-inset-bottom));
  transform: translateX(-50%); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 2px solid #e5aa00; background: rgba(255,255,255,.97); box-shadow: 0 -2px 8px rgba(87,61,0,.08); grid-template-columns: repeat(5,1fr);
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #6e634c; font-size: 12px; }
.nav-icon { height: 27px; display: grid; place-items: center; font-size: 23px; line-height: 1; }
.nav-item.active { color: #d49b00; font-weight: 700; }
.home-intro { margin:8px 10px;padding:12px;overflow-wrap:anywhere;border:1px solid var(--border);border-radius:7px;background:#fff; }
.maintenance { min-height:calc(100vh - 112px);padding:100px 24px;text-align:center;background:#fffdf5; }.maintenance b{font-size:24px}.maintenance p{color:var(--muted)}.maintenance a{display:inline-grid;place-items:center;min-height:42px;padding:0 20px;border-radius:8px;color:#fff;background:var(--gold)}
body[data-theme="classic-red"] .topbar,body[data-theme="classic-red"] .group-title{background:linear-gradient(#ef4444,#b91c1c)}body[data-theme="classic-red"]{--border:#fecaca;--cream:#fff7f7}
body[data-theme="dark"]{--cream:#151515;--paper:#222;--text:#f3f4f6;--muted:#a1a1aa;--border:#3f3f46;background:#111}.shell,body[data-theme="dark"] .lottery-box,body[data-theme="dark"] .filters,body[data-theme="dark"] .post-group,body[data-theme="dark"] .paper{background:var(--cream)}body[data-theme="dark"] .home-ad-text,body[data-theme="dark"] .home-intro{background:var(--paper)}body[data-theme="dark"] .post-row{border-color:#444}
body[data-theme="clean"]{--cream:#f8fafc;--paper:#fff;--border:#e2e8f0}body[data-theme="clean"] .topbar{box-shadow:none}
body[data-theme="soft-gold"]{--cream:#fff9eb;--paper:#fffdf8;--border:#ead9ae}body[data-theme="soft-gold"] .topbar,body[data-theme="soft-gold"] .group-title{background:linear-gradient(#dca331,#b97708)}body[data-theme="soft-gold"] .post-group{border-radius:10px;box-shadow:0 3px 12px rgba(146,94,0,.08)}
body[data-theme="knowledge-gold"]{--cream:#fffaf0;--paper:#fff;--border:#ead9b0;background:#fff7e8}body[data-theme="knowledge-gold"] .topbar,body[data-theme="knowledge-gold"] .group-title{background:linear-gradient(#c98b00,#936100)}body[data-theme="knowledge-gold"] .post-group{border-radius:10px;box-shadow:0 3px 14px rgba(120,75,0,.1)}body[data-theme="knowledge-gold"] .post-row{padding-top:12px;padding-bottom:12px}
body[data-theme="classic-gold"] .post-group{box-shadow:0 2px 7px rgba(149,103,0,.07)}
body[data-theme="minimal-gray"]{--cream:#f8fafc;--paper:#fff;--text:#1e293b;--muted:#64748b;--border:#e2e8f0;background:#f1f5f9}body[data-theme="minimal-gray"] .topbar,body[data-theme="minimal-gray"] .group-title{background:#64748b}body[data-theme="minimal-gray"] .post-group,body[data-theme="minimal-gray"] .lottery-box{border-radius:10px;box-shadow:none}

.info-page { min-height: calc(100vh - 48px); padding: 7px 4px 90px; background: #fff9e6; }
.paper { padding: 14px 10px; border: 1px solid #ddd4bd; border-radius: 5px; background: white; box-shadow: var(--shadow); font-size: 15px; line-height: 1.75; overflow-wrap:anywhere; }
.paper p { margin: 0 0 14px; }
.paper h2 { margin: 20px 0 3px; font-size: 15px; }
.paper h2:first-child { margin-top: 0; }
.paper ul, .paper ol { margin: 0 0 19px; padding-left: 20px; }
.paper li { margin: 2px 0; }

.history-toolbar { padding: 9px 12px; background: #fff; border-bottom: 1px solid var(--border); }
.history-tabs { display: flex; padding: 2px; background: #fcf2d9; border-radius: 8px; }
.history-tabs a { flex: 1; height: 40px; display: grid; place-items: center; border-radius: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.history-tabs a.active { color: white; background: var(--green); }
.year-row { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.year-row a { min-width: 52px; padding: 6px 10px; text-align: center; border-radius: 99px; color: var(--muted); background: #fff6dc; font-size: 13px; }
.year-row a.active { color: white; background: #eab308; }
.draw-list { padding: 8px; display: grid; gap: 7px; }
.draw-card { padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: white; }
.draw-title { margin-bottom: 7px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.draw-title strong { color: #755b0a; font-size: 14px; }
.mini-balls { display: flex; align-items: center; gap: 4px; }
.mini-ball { flex: 1; min-width: 0; text-align: center; }
.mini-ball b { width: 34px; height: 34px; margin: auto; display: grid; place-items: center; border-radius: 50%; color: white; font-size: 15px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.mini-ball b.red { background: #ef5350; }.mini-ball b.blue { background: #4285e1; }.mini-ball b.green { background: #26a65b; }
.mini-ball small { margin-top: 3px; display: block; color: var(--muted); font-size: 10px; }
.history-summary { padding: 15px 10px 25px; text-align: center; color: var(--muted); font-size: 13px; }

.post-head .topbar-inner { gap: 4px; }
.post-head h1 { font-size: 14px; }
.author-strip { padding: 6px 11px; display: flex; align-items: center; gap: 7px; color: var(--muted); background: #fff; border-bottom: 1px solid var(--border); font-size: 12px; }
.avatar { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: linear-gradient(145deg,#e7b000,#c58a00); font-weight: 800; }
.author-strip .tag { padding: 2px 5px; border-radius: 3px; color: #bd8700; background: #fff4c7; }
.post-notice { padding: 10px 13px; color: #12a24b; background: white; font-size: 13px; font-weight: 700; }
.streak-line { margin: 6px; padding: 9px 11px; display: flex; justify-content: space-between; color: #ec541f; border-radius: 6px; background: #fff3db; font-size: 12px; font-weight: 700; }
.unlock-card { margin: 6px; padding: 10px; border: 1px solid #f3d276; border-radius: 10px; background: linear-gradient(180deg,#fffaf0,#fff4c6); }
.unlock-title { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.stats-row { margin: 10px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.stat { padding: 8px 3px; text-align: center; border-radius: 6px; background: rgba(255,255,255,.8); }
.stat b { display: block; color: #e8503d; font-size: 15px; white-space:nowrap; }.stat small { color: var(--muted); font-size: 10px; }
.reliability-card{margin:8px 6px 10px;padding:12px;border:1px solid #e7c35f;border-radius:9px;background:linear-gradient(180deg,#fffef8,#fff9e6);box-shadow:0 2px 8px rgba(125,90,0,.06)}
.reliability-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}.reliability-card header b{display:block;font-size:14px;color:#725000}.reliability-card header small{display:block;margin-top:3px;color:#8a7b60;font-size:10px}.sample-grade{padding:3px 8px;border-radius:999px;background:#fff0b8;color:#9a6800;font-size:11px;font-weight:800;white-space:nowrap}
.reliability-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.reliability-grid>div{padding:8px 3px;text-align:center;border:1px solid #f0e2bd;border-radius:6px;background:#fff}.reliability-grid small{display:block;color:#8b816d;font-size:9px}.reliability-grid strong{display:block;margin-top:4px;color:#24201a;font-size:12px;white-space:nowrap}
.backtest-row{margin-top:8px;padding:8px;display:flex;align-items:center;gap:8px;overflow-x:auto;border-radius:6px;background:#f5f8ff;color:#3c526e;font-size:10px}.backtest-row span{font-weight:800;white-space:nowrap}.backtest-row b{white-space:nowrap}
.confidence-row{margin-top:8px;display:flex;justify-content:space-between;gap:8px;color:#6c614d;font-size:10px}.reliability-card>p{margin:7px 0 0;color:#9a7c3d;font-size:9px;line-height:1.45}
.prediction { padding: 13px; text-align: center; border-radius: 7px; background: rgba(255,255,255,.75); font-size: 16px; font-weight: 800; letter-spacing: 2px; }
.current-prediction-lines { display:grid; gap:9px; text-align:left; letter-spacing:0; }
.current-prediction-line { display:flex; align-items:flex-start; gap:7px; line-height:1.7; }
.current-prediction-line>b { flex:0 0 auto; color:#302817; font-size:15px; }
.prediction-items { display:inline-flex; flex-wrap:wrap; align-items:flex-start; gap:6px; }
.prediction-items>i { align-self:center; color:#ab9a71; font-size:12px; font-style:normal; }
.prediction-token { display:inline-flex; align-items:center; gap:2px; font-size:15px; font-weight:900; }
.prediction-token small { display:block; color:#776d58; font-size:10px; font-weight:600; line-height:1.15; }
.prediction-token.ball-red,.prediction-token.ball-blue,.prediction-token.ball-green { min-width:34px; min-height:30px; padding:4px 7px; justify-content:center; flex-direction:column; border-radius:7px; color:#fff; line-height:1.12; text-align:center; text-shadow:0 1px 1px rgba(0,0,0,.18); box-shadow:inset 0 -2px 0 rgba(0,0,0,.14),0 2px 5px rgba(40,31,13,.13); }
.prediction-token.ball-red { background:linear-gradient(#ff625c,#e92c25); }
.prediction-token.ball-blue { background:linear-gradient(#55a9ed,#2184d4); }
.prediction-token.ball-green { background:linear-gradient(#21ba43,#07932b); }
.prediction-token.ball-red small,.prediction-token.ball-blue small,.prediction-token.ball-green small { color:#fff; opacity:.9; }
.prediction-token.token-hit { outline:2px solid #ef233c; outline-offset:1px; }
.manual-current { white-space:normal; text-align:left; letter-spacing:0; line-height:2.15; font-size:15px; font-weight:650; }
.reward-feed{margin-top:9px;overflow:hidden;border:1px solid #f6d77b;border-radius:9px;background:#fff}.reward-feed>header{min-height:52px;padding:9px 11px;display:flex;align-items:center;gap:9px;color:#a86400;background:linear-gradient(90deg,#fff4cf,#fffaf0)}.reward-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#fff;font-size:22px;box-shadow:0 2px 8px rgba(197,116,0,.15)}.reward-feed header div{min-width:0;display:grid}.reward-feed header b{font-size:13px}.reward-feed header small{margin-top:2px;color:#bb8b32;font-size:9px}.reward-feed header em{margin-left:auto;padding:4px 8px;border-radius:99px;color:#fff;background:linear-gradient(#ff7043,#ef3d27);font-size:10px;font-style:normal;font-weight:800}.reward-toggle{margin-left:auto;padding:4px 8px;border:0;border-radius:99px;color:#fff;background:linear-gradient(#ff7043,#ef3d27);display:flex;align-items:center;gap:5px;cursor:pointer}.reward-toggle b{font-size:10px!important}.reward-toggle span{padding-left:5px;border-left:1px solid rgba(255,255,255,.45);font-size:9px}.reward-list{padding:3px 10px}.reward-feed.is-collapsed .reward-row:nth-child(n+4){display:none}.reward-feed.is-expanded .reward-list{max-height:282px;overflow-y:auto;scrollbar-width:thin}.reward-row{min-height:47px;display:flex;align-items:center;gap:8px;border-top:1px dashed #f1e4c2}.reward-row:first-child{border-top:0}.reward-avatar{width:29px;height:29px;display:grid;place-items:center;flex:0 0 29px;border-radius:50%;color:#fff;background:linear-gradient(145deg,#ffb629,#e96916);font-weight:800}.reward-row p{min-width:0;flex:1;margin:0;display:grid}.reward-row p b{color:#9f5f00;font-size:11px}.reward-row p small{margin-top:2px;color:#aa9570;font-size:9px}.reward-row time{color:#b6a78d;font-size:9px}.reward-row i{padding:2px 4px;border-radius:3px;color:#fff;background:#ef4444;font-size:8px;font-style:normal}.reward-empty{padding:14px 5px;text-align:center;color:#b28a44;font-size:11px}.paid-pending{padding:5px 0;display:flex;align-items:center;justify-content:center;gap:10px;letter-spacing:0}.paid-pending>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff6db;font-size:21px}.paid-pending div{display:grid;text-align:left}.paid-pending b{color:#df5c22;font-size:16px}.paid-pending small{margin-top:4px;color:#9b845b;font-size:10px;font-weight:500;line-height:1.55}
.primary-button { width: 100%; height: 44px; margin-top: 9px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(180deg,#ffad00,#ff8400); box-shadow: 0 2px 4px rgba(205,101,0,.25); font-weight: 800; cursor: pointer; }
.secondary-button { width: 100%; height: 39px; margin-top: 7px; border: 1px solid #f0b700; border-radius: 8px; color: #aa7400; background: white; font-weight: 700; }
.waiting-card { margin:6px; padding:10px; border:1px solid #edcf78; border-radius:8px; background:#fff9e8; }.waiting-card>div { display:flex; align-items:center; justify-content:space-between; gap:8px; }.waiting-card b { color:#8a6810; font-size:12px; }.waiting-card span { padding:3px 7px; border-radius:4px; color:#ef4451; background:#ffe7e9; font-size:11px; font-weight:800; }.waiting-card p { margin:10px 0 4px; padding:11px; border-radius:6px; text-align:center; color:#8c7740; background:#fff; font-size:13px; font-weight:700; }.waiting-card small { display:block; text-align:center; color:#b09b68; font-size:10px; }
.history-heading { margin: 14px 0 8px; text-align: center; color: var(--muted); font-size: 13px; }
.record-list { padding: 0 6px 14px; display: grid; gap: 5px; }
.record { position: relative; overflow: hidden; padding: 9px; border: 1px solid #ff707a; border-radius: 5px; background: #fff; font-size: 12px; line-height: 1.65; }
.record.miss { border-color: #e6d59a; background: #fffdf5; }
.record-head { margin-bottom: 3px; display: flex; justify-content: space-between; }
.record-head b { padding: 1px 6px; border-radius: 3px; color: #fff; background: #ff5764; }
.record strong { color: #ef3f48; font-size: 15px; word-spacing: 3px; }
.record .open { color: #c63232; }
.origin-content { padding: 0 6px 16px; display: grid; gap: 5px; }
.origin-content .period-block { position: relative; overflow: hidden; padding: 11px; border: 1px solid #ead69a; border-radius: 7px; background: #fffdf5; font-size: 14px; line-height: 1.8; }
.origin-content .period-block.is-win { border-color: #ff707a; background: #fff; }
.origin-content .period-block.is-win::after { content:"命中"; position:absolute; z-index:0; left:48%; top:45%; transform:rotate(-18deg); color:rgba(239,68,68,.075); border:4px solid rgba(239,68,68,.065); border-radius:6px; padding:1px 9px; font-size:30px; font-weight:900; }
.origin-content.with-watermark .period-block::before { content:attr(data-watermark); position:absolute; z-index:0; right:8%; bottom:18%; transform:rotate(-18deg); color:rgba(190,132,0,.075); font-size:22px; font-weight:900; pointer-events:none; }
.origin-content .period-header { margin-bottom: 4px; display: flex; align-items: center; justify-content: space-between; }
.origin-content .period-badge { padding: 1px 6px; border-radius: 3px; color: #fff; background: #e4a900; font-weight: 700; }
.origin-content .period-block.is-win .period-badge { background: #ff5764; }
.origin-content .result-badge { margin-left:auto; margin-right:8px; padding:0 5px; border:1px solid #e2c66f; border-radius:3px; color:#9a7411; background:#fff9df; font-size:10px; font-weight:700; }.origin-content .is-win .result-badge { border-color:#ff9199; color:#ff4451; background:#fff; }.origin-content .period-date { color: var(--muted); font-size:10px; }
.origin-content p { margin: 3px 0 !important; }
.origin-content .period-body { position:relative; z-index:1; }.origin-content .prediction-line { display:flex; align-items:flex-start; gap:7px; font-size:15px; }.origin-content .prediction-line>b { flex:0 0 auto; color:#302817; }.origin-content .prediction-token { font-weight:900; }.origin-content .prediction-token.token-hit:not(.ball-red):not(.ball-blue):not(.ball-green) { color:#ef233c; font-size:16px; }.origin-content .draw-result { margin-top:8px!important;color:#6b604a;font-size:13px; }.origin-content .draw-result b { margin-left:7px; color:#9d8c61; }.origin-content .is-win .draw-result,.origin-content .is-win .draw-result b { color:#ef3340; }.manual-period-content{font-size:15px;font-weight:650;line-height:2.15}.manual-period-content .prediction-token{margin:1px 2px;vertical-align:middle}
.origin-content .period-locked { padding: 12px; border-radius: 5px; text-align: center; background: #fff7da; }

.chat-list { height: calc(100vh - 190px); padding: 14px; overflow-y: auto; }
.chat-message { max-width: 78%; margin: 8px 0; padding: 9px 11px; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); font-size: 14px; }
.chat-message.visitor { margin-left: auto; color: white; background: #e4aa00; }
.chat-compose { position: fixed; left: 50%; bottom: calc(64px + env(safe-area-inset-bottom)); width: min(100%,768px); transform: translateX(-50%); padding: 8px; display: flex; gap: 7px; background: white; border-top: 1px solid var(--border); }
.chat-compose input { min-width: 0; flex: 1; height: 38px; padding: 0 12px; border: 1px solid #ddd; border-radius: 19px; outline: 0; }
.chat-compose button { width: 64px; border: 0; border-radius: 19px; color: white; background: #e1a600; }

.auth-shell { background:linear-gradient(180deg,#fff8dd,#fdf6df); }.auth-card { width:calc(100% - 30px); max-width:480px; margin:34px auto 90px; padding:25px 20px; border:1px solid var(--border); border-radius:14px; background:#fff; box-shadow:0 10px 30px rgba(115,79,0,.1); }.auth-logo { width:54px; height:54px; margin:auto; display:grid; place-items:center; border-radius:15px; color:#fff; background:linear-gradient(145deg,#f2bd19,#bf8200); font-size:27px; font-weight:900; box-shadow:0 7px 18px rgba(190,130,0,.25); }.auth-card h2 { margin:13px 0 5px; text-align:center; font-size:21px; }.auth-card>p { margin:0 0 20px; text-align:center; color:var(--muted); font-size:13px; }.auth-form { display:grid; gap:13px; }.auth-form label { display:grid; gap:6px; color:#665b42; font-size:13px; font-weight:700; }.auth-form input { height:43px; padding:0 12px; border:1px solid #ded4bc; border-radius:8px; outline:0; color:var(--text); background:#fffdf8; }.auth-form input:focus { border-color:#dfa900; box-shadow:0 0 0 3px rgba(223,169,0,.12); }.auth-error { min-height:18px; color:#dc2626; font-size:12px; }.auth-switch { margin-top:18px; text-align:center; color:var(--muted); font-size:13px; }.auth-switch a { color:#c88d00; font-weight:800; }
.profile-card { margin:14px; padding:18px; display:flex; align-items:center; gap:13px; border-radius:12px; color:#fff; background:linear-gradient(135deg,#d9a000,#efaE00); box-shadow:0 5px 16px rgba(168,113,0,.2); }.profile-avatar { width:54px; height:54px; display:grid; place-items:center; border:2px solid rgba(255,255,255,.7); border-radius:50%; background:rgba(255,255,255,.2); font-size:24px; font-weight:900; }.profile-card h2 { margin:0 0 5px; font-size:19px; }.profile-card p { margin:0; opacity:.85; font-size:12px; }.balance-card { margin:0 14px 12px; padding:18px; display:grid; grid-template-columns:1fr auto; align-items:center; border:1px solid var(--border); border-radius:12px; background:#fff; }.balance-card span { color:var(--muted); font-size:13px; }.balance-card strong { grid-row:2; margin-top:5px; color:#d99500; font-size:30px; }.balance-card a { grid-column:2; grid-row:1/3; padding:8px 13px; border-radius:18px; color:#fff; background:#e6a700; font-size:13px; font-weight:700; }.account-list { margin:0 14px; overflow:hidden; border:1px solid var(--border); border-radius:12px; background:#fff; }.account-list>a,.account-list>div { min-height:50px; padding:0 15px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid #f0eadb; font-size:14px; }.account-list b { color:#b7aa8b; font-size:23px; }.account-list em { color:var(--muted); font-style:normal; font-size:13px; }.account-list button { width:100%; height:50px; border:0; color:#d33b32; background:#fff; font-weight:700; }

/* Member account and purchased-material ledger */
.member-summary{margin-left:auto;display:flex;align-items:center;gap:6px;white-space:nowrap}.member-identity{max-width:92px;display:grid;line-height:1.05;text-align:right}.member-identity small{overflow:hidden;opacity:.82;text-overflow:ellipsis;font-size:9px}.member-identity b{overflow:hidden;text-overflow:ellipsis;font-size:11px}.member-summary .member-action{margin-left:0;max-width:118px}.member-summary .coin-balance span{font-size:10px}.member-exit{padding:5px 2px;font-size:10px;text-decoration:underline;text-underline-offset:2px}.account-page{padding-bottom:12px}.account-list>a{gap:8px}.account-list>a span{margin-right:auto}.account-list .logout-row{color:#d33b32}.account-section-head{margin:14px;padding:14px;border:1px solid #f0d691;border-radius:12px;background:#fff9e8}.account-section-head h2{margin:0 0 5px;color:#8a5b00;font-size:18px}.account-section-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.55}.unlock-history{margin:0 14px;display:grid;gap:9px}.unlock-history>a,.unlock-history>.disabled{padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid var(--border);border-radius:11px;background:#fff}.unlock-history>.disabled{opacity:.62}.unlock-history div>div,.unlock-history a>div{min-width:0;display:grid;gap:4px}.unlock-history b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.unlock-history span,.unlock-history small{color:var(--muted);font-size:11px}.unlock-history aside{display:grid;justify-items:end;gap:5px;white-space:nowrap}.unlock-history aside strong{color:#d97706;font-size:12px}.unlock-history aside em{padding:3px 7px;border-radius:10px;color:#925f00;background:#fff3cd;font-size:10px;font-style:normal}.unlock-history aside em.win{color:#c81e1e;background:#fff1f2}.unlock-history aside em.loss{color:#667085;background:#f2f4f7}.ledger-card{margin:0 14px 12px;overflow:hidden;border:1px solid var(--border);border-radius:12px;background:#fff}.ledger-card h3{margin:0;padding:11px 13px;border-bottom:1px solid #f2ead5;color:#8a5b00;background:#fffaf0;font-size:13px}.ledger-row{padding:12px 13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #f4f0e5}.ledger-row:last-child{border-bottom:0}.ledger-row div{min-width:0;display:grid;gap:3px}.ledger-row b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.ledger-row small{color:var(--muted);font-size:10px}.ledger-row>strong{font-size:14px}.ledger-row>strong.credit{color:#039855}.ledger-row>strong.debit{color:#d92d20}.account-empty{padding:30px 15px;color:var(--muted);text-align:center;font-size:13px}.archive-purchase{margin:0 0 9px;padding:8px 10px;display:flex;justify-content:space-between;border:1px solid #e6d18b;border-radius:8px;background:#fffaf0;font-size:12px}.archive-purchase b.win{color:#e11d48}.archive-purchase b.loss{color:#667085}
@media(max-width:520px){.member-identity{max-width:66px}.member-summary{gap:4px}.member-summary .member-action{min-width:0;padding:4px 6px}.member-exit{font-size:9px}.topbar-inner h1{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
.member-identity{max-width:98px;padding:4px 7px;border:1px solid rgba(255,255,255,.38);border-radius:9px;line-height:1.08;text-align:left;background:rgba(255,255,255,.12)}.member-identity small{opacity:.88;font-size:10px}.member-identity b{font-size:12px}.member-summary .coin-balance b{font-size:12px}@media(max-width:520px){.member-identity{max-width:70px;padding:3px 5px}.member-identity small{font-size:9px}.member-identity b{font-size:10px}}

.toast { position: fixed; z-index: 100; left: 50%; bottom: 86px; max-width: 85%; transform: translateX(-50%); padding: 9px 15px; border-radius: 22px; color: white; background: rgba(35,28,12,.9); font-size: 13px; box-shadow: 0 3px 12px rgba(0,0,0,.2); }
.page-loader { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--muted); background: var(--cream); }
.page-loader span { width: 27px; height: 27px; border: 3px solid #f1d985; border-top-color: #d99e00; border-radius: 50%; animation: spin .8s linear infinite; }
.page-loader p { margin: 0; font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.support-widget { position:fixed; z-index:90; right:22px; bottom:82px; font-family:inherit; }
.support-launch { min-width:116px; height:44px; padding:0 14px; display:flex; align-items:center; gap:7px; border:1px solid #f4c638; border-radius:24px; color:#fff; background:linear-gradient(135deg,#f0b700,#d79100); box-shadow:0 5px 20px rgba(129,86,0,.28); cursor:pointer; }
.support-launch span { font-size:18px; }.support-launch b { font-size:13px; }.support-launch i,.support-panel header small i { width:7px; height:7px; display:inline-block; border-radius:50%; background:#20c878; box-shadow:0 0 0 2px rgba(255,255,255,.65); }
.support-panel { position:absolute; right:0; bottom:54px; width:330px; overflow:hidden; border:1px solid #e5c865; border-radius:14px; background:#fff; box-shadow:0 14px 45px rgba(67,48,7,.24); transform:translateY(12px) scale(.97); transform-origin:bottom right; opacity:0; pointer-events:none; transition:.18s ease; }
.support-widget.open .support-panel { transform:none; opacity:1; pointer-events:auto; }.support-widget.open .support-launch { box-shadow:0 0 0 4px rgba(233,177,0,.15),0 5px 20px rgba(129,86,0,.28); }
.support-panel header { height:62px; padding:0 15px; display:flex; align-items:center; justify-content:space-between; color:#fff; background:linear-gradient(135deg,#d99e00,#edba12); }.support-panel header>div { display:grid; gap:3px; }.support-panel header b { font-size:16px; }.support-panel header small { font-size:10px; opacity:.95; }.support-panel header small i { margin-right:4px; }.support-close { width:28px; height:28px; border:0; border-radius:50%; color:#fff; background:rgba(255,255,255,.18); font-size:20px; cursor:pointer; }
.support-welcome { margin:10px 11px 6px; padding:9px 10px; display:grid; gap:3px; border-radius:8px; color:#715313; background:#fff8dc; }.support-welcome b { font-size:12px; }.support-welcome span { color:#9a8654; font-size:10px; }
.support-messages { height:210px; padding:4px 11px 9px; overflow:auto; background:#fff; }.support-message { max-width:82%; margin:7px 0; display:grid; gap:2px; justify-items:start; }.support-message span { padding:8px 10px; border-radius:4px 12px 12px 12px; color:#544a34; background:#f4f1e8; font-size:12px; line-height:1.45; }.support-message small { color:#b0a58b; font-size:9px; }.support-message.visitor { margin-left:auto; justify-items:end; }.support-message.visitor span { color:#fff; border-radius:12px 4px 12px 12px; background:#dfa600; }
.support-quick { padding:7px 10px; display:flex; gap:5px; overflow:auto; border-top:1px solid #f2ead2; }.support-quick button { flex:none; padding:5px 8px; border:1px solid #ead48d; border-radius:13px; color:#94700d; background:#fffaf0; font-size:10px; cursor:pointer; }
#support-form { padding:7px 9px; display:flex; gap:6px; border-top:1px solid #f2ead2; background:#fff; }#support-form input { min-width:0; flex:1; height:35px; padding:0 10px; border:1px solid #ded6bf; border-radius:18px; outline:0; }#support-form button { width:58px; border:0; border-radius:18px; color:#fff; background:#dfa600; font-weight:700; cursor:pointer; }.support-panel>a { padding:0 12px 8px; display:block; text-align:center; color:#b08000; font-size:10px; }

@media (min-width: 769px) {
  body { background: #e8e3d4; }
  .shell { box-shadow: 0 0 26px rgba(75,57,15,.13); }
}
@media (max-width:768px){.support-widget{right:12px;bottom:76px}.support-launch{min-width:48px;width:48px;padding:0;justify-content:center}.support-launch b{display:none}.support-panel{position:fixed;left:10px;right:10px;bottom:72px;width:auto}.support-messages{height:min(290px,38vh)}}

/* Rich customer-service entry and media chat */
.service-entry{margin:0 0 10px;padding:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #edca63;border-radius:9px;background:linear-gradient(135deg,#fff8da,#fff)}.service-entry>div{display:flex;align-items:center;gap:10px}.service-entry>div>span{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;background:#fff0b8;font-size:22px}.service-entry p{margin:0;display:grid;gap:3px}.service-entry p b{color:#7d5900;font-size:14px}.service-entry p small{color:#9d8b60;font-size:10px}.service-entry i{width:8px;height:8px;border-radius:50%;background:#19b76b;box-shadow:0 0 0 3px #daf8e8}.service-entry>a{padding:10px 13px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#e9b300,#ce8f00);font-size:12px;font-weight:800;white-space:nowrap}.service-entry>a b{font-size:18px;vertical-align:-1px}
.chat-service-state{margin:9px 12px 0;padding:9px 11px;display:flex;align-items:center;gap:8px;border:1px solid #eee3c2;border-radius:9px;background:#fffdf6}.chat-service-state>i{width:9px;height:9px;border-radius:50%;background:#1fc878;box-shadow:0 0 0 3px #d8f8e7}.chat-service-state div{display:grid;gap:2px}.chat-service-state b{font-size:12px}.chat-service-state small{color:#9b927b;font-size:9px}.chat-shell{padding-bottom:142px}.chat-list{height:calc(100dvh - 250px);padding:10px 13px 18px}.chat-message{padding:8px 10px;display:grid;gap:4px}.chat-message small{display:block;color:#a49c88;font-size:9px}.chat-message.visitor small{color:rgba(255,255,255,.78);text-align:right}.chat-message p{margin:4px 0 0}.chat-media{display:block;max-width:100%;border-radius:8px}.chat-media.image{max-height:260px;object-fit:contain}.chat-media.video{width:min(100%,340px);max-height:280px;background:#111}.chat-media-link{display:block}.chat-audio{min-width:220px;display:grid;gap:6px}.chat-audio>span{font-size:11px}.chat-audio audio{width:220px;max-width:100%;height:34px}.chat-dock{position:fixed;z-index:30;left:50%;bottom:calc(64px + env(safe-area-inset-bottom));width:min(100%,768px);transform:translateX(-50%);border-top:1px solid var(--border);background:#fff;box-shadow:0 -4px 14px rgba(73,54,10,.06)}.chat-tool-row{height:39px;padding:5px 10px;display:flex;align-items:center;gap:5px}.chat-tool-row button,.chat-tool-row label{width:31px;height:29px;padding:0;display:grid;place-items:center;border:0;border-radius:7px;color:#5f5744;background:#f8f5ec;font-size:18px;cursor:pointer}.chat-tool-row label input{display:none}.chat-tool-row span{margin-left:3px;color:#b08720;font-size:10px}.chat-tool-row button.recording{color:#fff;background:#ef4444;animation:voicePulse 1s infinite}.chat-emoji-panel{padding:8px 10px;display:flex;flex-wrap:wrap;gap:5px;border-bottom:1px solid #f2ead5;background:#fffaf0}.chat-emoji-panel[hidden]{display:none}.chat-emoji-panel button{width:32px;height:32px;border:1px solid #eee2bd;border-radius:7px;background:#fff;font-size:18px}.chat-compose{position:static;width:auto;transform:none;padding:7px 9px}.support-message span a{color:inherit;text-decoration:underline;text-underline-offset:2px}@keyframes voicePulse{50%{transform:scale(.9);opacity:.72}}
@media(max-width:520px){.service-entry{align-items:stretch;flex-direction:column}.service-entry>a{text-align:center}.chat-audio{min-width:190px}.chat-audio audio{width:190px}}
.chat-service-state>button{margin-left:auto;padding:6px 9px;border:1px solid #e5c968;border-radius:14px;color:#966c00;background:#fffaf0;font-size:10px;white-space:nowrap}.chat-service-state>button:disabled{color:#16945a;border-color:#b9e9ce;background:#effcf5}.chat-live-alert{margin:7px 12px 0;padding:9px 12px;border:1px solid #ffbf33;border-radius:9px;color:#b56a00;background:#fff5cf;box-shadow:0 4px 14px rgba(223,170,44,.18);font-size:13px;font-weight:800;text-align:center;position:relative;z-index:3}.chat-live-alert[hidden]{display:none}.chat-live-alert.pulse{animation:chatReplyPulse .58s ease-in-out 2}@keyframes chatReplyPulse{0%,100%{transform:scale(1);background:#fff5cf}50%{transform:scale(1.015);background:#ffe58d}}.nav-item{position:relative}.nav-unread,.support-unread{min-width:17px;height:17px;padding:0 4px;display:grid;place-items:center;border:2px solid #fff;border-radius:10px;color:#fff;background:#ef4444;font-size:9px;font-style:normal;font-weight:800;line-height:1}.nav-unread{position:absolute;top:3px;left:calc(50% + 7px)}.support-launch{position:relative}.support-unread{position:absolute;right:-4px;top:-5px}.nav-unread[hidden],.support-unread[hidden]{display:none}
