.three-color-game{color-scheme:light;--bg:#f5f7fa;--bg-white:#ffffff;--navy:#052659;--steel:#5483B3;--sky:#7DA0CA;--ice:#C1E8FF;--deep:#021024;--sidebar-bg:#BCE6FF;--sidebar-bg-hover:#A9DEFA;--sidebar-active:#7FC0EE;--sidebar-indicator:#052659;--sidebar-text:rgba(2,16,36,.78);--sidebar-text-muted:rgba(2,16,36,.55);--sidebar-text-active:#021024;--sidebar-accent:#5483B3;--sidebar-border:rgba(2,16,36,.1);--ink:#021024;--muted:rgba(2,16,36,.58);--dim:rgba(2,16,36,.38);--glass:rgba(255,255,255,.7);--glass-strong:rgba(255,255,255,.92);--glass-border:rgba(84,131,179,.13);--line:rgba(84,131,179,.12);--shadow-sm:0 8px 24px rgba(2,16,36,.05);--shadow-md:0 18px 44px rgba(2,16,36,.07);--shadow-lg:0 28px 64px rgba(2,16,36,.09);--shadow-glow:0 0 30px rgba(84,131,179,.12);--shadow-sidebar:8px 0 32px rgba(2,16,36,.08);--spring:cubic-bezier(.34,1.56,.64,1);--ease:cubic-bezier(.22,1,.36,1);--ease-slow:cubic-bezier(.65,.05,.36,1);--font-sans:-apple-system,"Microsoft YaHei","PingFang SC","Noto Sans CJK SC",Arial,sans-serif;--font-serif:Georgia,"Times New Roman",serif;--font-mono:"JetBrains Mono",monospace;--nav-h:64px;--maxw:1320px;--side-w:260px;--gap:24px}.three-color-game *,.three-color-game *:before,.three-color-game *:after{box-sizing:border-box;margin:0;padding:0}.three-color-game .principle__formula{overflow-wrap:anywhere}.three-color-game .principle__formula img.enjoy-math-image{max-width:100%!important}.three-color-game .principle__sub{font-size:1.02rem;font-weight:800;color:var(--navy);margin:1.3rem 0 .55rem;letter-spacing:.02em}.three-color-game .principle__sub:first-child{margin-top:.4rem}.three-color-game .principle__desc b{color:var(--navy);font-weight:700}.three-color-game .principle__desc code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9em;background:#5483b31a;padding:.08em .35em;border-radius:5px;color:var(--navy)}.three-color-game .prob-chart{margin:.9rem 0 1.2rem;padding:1rem 1.1rem;background:#edf8ff99;border:1px solid var(--line);border-radius:14px}.three-color-game .prob-chart__title{font-size:.95rem;font-weight:800;color:var(--navy);margin-bottom:.85rem;letter-spacing:.02em}.three-color-game .prob-row{display:grid;grid-template-columns:54px minmax(0,1fr) 88px 50px;align-items:center;gap:.6rem;padding:.22rem 0;font-size:.85rem}.three-color-game .prob-row__key{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-weight:700;color:var(--navy);letter-spacing:.06em}.three-color-game .prob-row__bar{position:relative;height:14px;background:#5483b31f;border-radius:999px;overflow:hidden}.three-color-game .prob-row__fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#7da0ca,#5483b3);min-width:3px}.three-color-game .prob-row__fill--neg{background:linear-gradient(90deg,#e08a8a,#c0504d)}.three-color-game .prob-row__val{text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}.three-color-game .prob-row__rw{text-align:right;font-weight:800;color:var(--steel);font-variant-numeric:tabular-nums}.three-color-game .prob-row__rw--neg{color:#c0504d}.three-color-game .prob-chart__note{margin-top:.85rem;padding-top:.75rem;border-top:1px dashed var(--line);font-size:.85rem;color:var(--dim);line-height:1.75}@media(max-width:560px){.three-color-game .prob-row{grid-template-columns:46px minmax(0,1fr) 74px 42px;gap:.4rem;font-size:.78rem}.three-color-game .prob-chart{padding:.85rem .8rem}}.three-color-game .reveal{opacity:0;transform:translateY(32px);transition:opacity .7s var(--ease),transform .7s var(--ease)}.three-color-game .reveal.visible{opacity:1;transform:translateY(0)}@media(prefers-reduced-motion:reduce){.three-color-game *,.three-color-game *:before,.three-color-game *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.three-color-game #gameContainer{height:auto}.three-color-game .lab-bar__btn--primary{background:var(--navy);color:#fff;border-color:var(--navy)}.three-color-game .lab-bar__btn--primary:hover{background:var(--steel);color:#fff;box-shadow:0 0 20px #5483b34d}.three-color-game .button-group{display:flex;flex-wrap:wrap;gap:.7rem;justify-content:center;margin:.4rem 0}.three-color-game .button-group .lab-bar__btn{flex:1 1 140px}.three-color-game .bankrupt-overlay{position:fixed;inset:0;background:#021024d9;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;z-index:9999;opacity:0;pointer-events:none;transition:opacity .3s ease}.three-color-game .bankrupt-overlay.show{opacity:1;pointer-events:all}.three-color-game .bankrupt-card{background:linear-gradient(135deg,#fff,var(--ice));border-radius:2rem;padding:3rem 4rem;text-align:center;border:1px solid var(--glass-border);box-shadow:var(--shadow-lg)}.three-color-game .bankrupt-title{font-size:2.6rem;font-weight:900;color:var(--navy);margin-bottom:1rem}.three-color-game .bankrupt-text{color:var(--muted);margin-bottom:1.5rem}.three-color-game .bankrupt-btn{padding:1rem 2.5rem;background:var(--navy);color:#fff;border:none;border-radius:999px;cursor:pointer;font-weight:800;font-family:var(--font-sans);transition:transform .4s var(--spring),background .3s}.three-color-game .bankrupt-btn:hover{background:var(--steel)}.three-color-game .bankrupt-btn:active{transform:scale(.85)}.three-color-game .bankrupt-card{max-width:92vw}.three-color-game .bankrupt-chart{margin:0 auto 1.6rem;width:100%;max-width:560px;padding:.9rem 1rem;background:#ffffffb8;border:1px solid var(--line);border-radius:14px}.three-color-game .bankrupt-chart__title{font-size:.9rem;font-weight:800;color:var(--navy);margin-bottom:.6rem;letter-spacing:.02em}.three-color-game canvas#bankruptChart{width:100%;height:auto;display:block;background:#fff;border-radius:10px}@media(max-width:600px){.three-color-game .bankrupt-card{padding:2rem 1.4rem;border-radius:1.4rem}.three-color-game .bankrupt-title{font-size:2rem}.three-color-game .bankrupt-chart{padding:.7rem}}.three-color-game .ball-game{display:block}.three-color-game .ball-layout{display:grid;grid-template-columns:1fr 320px;gap:1.2rem;align-items:start}@media(max-width:900px){.three-color-game .ball-layout{grid-template-columns:1fr}}.three-color-game .title-header{text-align:center;margin-bottom:.6rem}.three-color-game .title-header h1{font-size:2rem;font-weight:900;color:var(--navy)}.three-color-game .title-header p{color:var(--muted);font-size:.92rem}.three-color-game .rule-intro{background:#edf8ff8c;border:1px solid var(--line);border-radius:16px;padding:1rem;font-size:.9rem;line-height:1.7;color:var(--muted);margin-bottom:1rem}.three-color-game .rule-intro strong{color:var(--navy)}.three-color-game .reveal-btn{display:block;margin:1rem auto;padding:.7rem 2rem;font-size:1rem;font-weight:800;border:none;border-radius:999px;background:var(--steel);color:#fff;cursor:pointer;font-family:var(--font-sans);transition:transform .4s var(--spring),background .3s}.three-color-game .reveal-btn:hover{background:var(--navy)}.three-color-game .reveal-btn:active{transform:scale(.85)}.three-color-game .stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.8rem;margin-bottom:1rem}.three-color-game .stat-item{background:#edf8ff8c;border:1px solid var(--line);border-radius:14px;padding:.7rem .8rem;text-align:center}.three-color-game .stat-label{font-size:.72rem;color:var(--muted);margin-bottom:.2rem}.three-color-game .stat-number{font-size:1.6rem;font-weight:900;color:var(--navy);font-family:var(--font-serif);line-height:1.1}.three-color-game .rule-panel{background:#edf8ff8c;border:1px solid var(--line);border-radius:16px;padding:1rem}.three-color-game .rule-title{font-size:.92rem;font-weight:700;margin-bottom:.6rem;color:var(--navy)}.three-color-game .rule-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:.4rem;font-size:.82rem}.three-color-game .rule-item{padding:.35rem .5rem;background:var(--glass);border:1px solid var(--line);border-radius:.5rem;display:flex;justify-content:space-between;gap:.3rem}.three-color-game .rule-positive{color:var(--steel);font-weight:700}.three-color-game .rule-negative{color:#d6455b;font-weight:700}.three-color-game .history-panel{background:#edf8ff8c;border:1px solid var(--line);border-radius:16px;padding:1rem;margin-top:1rem}.three-color-game .history-header{display:flex;justify-content:space-between;font-size:.9rem;font-weight:700;margin-bottom:.5rem;color:var(--navy)}.three-color-game .history-item{display:flex;justify-content:space-between;padding:.4rem 0;border-bottom:1px dashed var(--line);font-size:.85rem}.three-color-game .history-item:last-child{border-bottom:none}.three-color-game .reward-positive{color:var(--steel);font-weight:700}.three-color-game .reward-negative{color:#d6455b;font-weight:700}.three-color-game .chart-wrap{margin-top:1.5rem;display:none;grid-template-columns:1fr;gap:1.5rem}.three-color-game .chart-wrap.show{display:grid}.three-color-game .chart-box{background:#edf8ff8c;border:1px solid var(--line);border-radius:16px;padding:1rem}.three-color-game canvas#lineChart{width:100%;height:auto;display:block;background:#fff;border-radius:10px}.three-color-game .combo-caption{margin-top:.75rem;text-align:center;font-size:1.02rem;font-weight:800;color:var(--navy);letter-spacing:.1em}@media(max-width:680px){.three-color-game .chart-wrap{grid-template-columns:1fr}}.three-color-game .ball-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}.three-color-game .ball-left,.three-color-game .ball-right{min-width:0}.three-color-game .draw-stage{background:radial-gradient(ellipse at 50% 20%,#fff 10%,#eaf4fc 80%);border:1px solid #dae7f1;border-radius:24px;overflow:hidden}.three-color-game .draw-status{display:flex;justify-content:space-between;padding:16px 18px 0;color:#34516d;font-size:13px;gap:8px}.three-color-game .draw-scene{position:relative;width:100%;aspect-ratio:600/520;isolation:isolate}.three-color-game .glass-bowl{position:absolute;left:13%;top:10%;width:74%;height:46%;border-radius:12% 12% 42% 42%;background:linear-gradient(110deg,#c5dcec55,#fff8 35%,#aecde044);border:2px solid #bdd5e6;box-shadow:inset 6px 0 16px #fffc,inset -6px -7px 18px #7ba3bf33,0 22px 16px -18px #344c6a55;z-index:0}.three-color-game .glass-front{position:absolute;inset:10% 13% 44%;border-radius:12% 12% 42% 42%;border-bottom:5px solid #9fbdd166;border-left:4px solid #ffffff99;pointer-events:none;z-index:3;background:linear-gradient(115deg,transparent 20%,#fff3 25%,transparent 32%)}.three-color-game .bowl-rim{position:absolute;left:13%;top:8%;width:74%;height:8%;border:3px solid #b4cfdf;border-radius:50%;background:#fff3;box-shadow:inset 0 3px 5px #fff;z-index:4;pointer-events:none}.three-color-game .tray{position:absolute;left:7%;top:66%;width:86%;height:29%;border:1px solid #c7dbe9;border-radius:22px;background:linear-gradient(#fdfefe,#dfeaf4);box-shadow:inset 0 3px 10px #6f8fab22,0 4px #c4d5e2}.three-color-game .tray-label{position:absolute;top:60%;width:100%;text-align:center;color:#5b7691;font-size:13px;letter-spacing:.12em}.three-color-game .tray-slot{position:absolute;width:7%;aspect-ratio:1;border-radius:50%;background:#aec3d233;box-shadow:inset 0 2px 4px #58748d22;transform:translate(-50%,-50%)}.three-color-game .physical-ball{position:absolute;width:6.5%;aspect-ratio:1;border-radius:50%;transform:translate(-50%,-50%);box-shadow:inset -4px -5px 7px #0003,inset 2px 2px 5px #fff5,0 5px 6px #31435c33;z-index:2}.three-color-game .physical-ball:after{content:"";position:absolute;left:23%;top:15%;width:25%;height:15%;border-radius:50%;background:#ffffffc9;transform:rotate(-30deg);filter:blur(.5px)}.three-color-game .red{background:radial-gradient(circle at 30% 23%,#ffb4a8,#ed5258 37%,#b81935 95%)}.three-color-game .green{background:radial-gradient(circle at 30% 23%,#c4f6ba,#51b978 37%,#16754d 95%)}.three-color-game .blue{background:radial-gradient(circle at 30% 23%,#c1e6ff,#5399ea 37%,#2357ac 95%)}.three-color-game .scene-legend{display:flex;justify-content:center;gap:18px;font-size:12px;color:#5a7186;padding:0 10px 15px}.three-color-game .scene-legend span{display:flex;align-items:center;gap:5px}.three-color-game .mini-ball{display:inline-block;width:9px;height:9px;border-radius:50%;box-shadow:inset -1px -1px 2px #0002;flex-shrink:0}.three-color-game .combo-caption{letter-spacing:0;font-size:14px;margin:14px 0;min-height:24px}.three-color-game .rule-grid{grid-template-columns:1fr;gap:6px}.three-color-game .rule-panel{padding:14px;background:#f6faff}.three-color-game .rule-note{font-size:11px;color:#647990;line-height:1.65;margin-bottom:12px}.three-color-game .rule-item{position:relative;display:grid;grid-template-columns:30px 1fr 42px;align-items:center;padding:9px 8px;gap:7px;transition:background .25s,border-color .25s,box-shadow .25s}.three-color-game .rule-key{font-size:11px;font-weight:700;color:#75889b}.three-color-game .rule-pictures{display:flex;gap:7px;align-items:start;justify-content:space-between}.three-color-game .color-group{display:flex;flex-direction:column;gap:4px;min-width:0}.three-color-game .color-group small{font-size:10px;color:#6b7b8e;white-space:nowrap}.three-color-game .ball-icons{display:flex;flex-wrap:wrap;gap:2px;max-width:43px;min-height:20px;align-content:center}.three-color-game .rule-amount{text-align:right;font-size:14px;font-weight:800}.three-color-game .rule-item.matched{border-color:#318bab;background:#e2f5fc;box-shadow:0 0 0 2px #399ac433,0 4px 14px #378ebc22}.three-color-game .rule-item.matched .rule-key{color:#075e7c}.three-color-game .rule-item.matched.loss{border-color:#d87282;background:#fff0f1;box-shadow:0 0 0 2px #d8728222}.three-color-game .match-label{font-size:11px;color:#26758d;min-height:18px;margin-bottom:7px}.three-color-game .lab-bar__btn:disabled{opacity:.45;cursor:wait;transform:none}.three-color-game .result-chart-scroll{overflow-x:auto;padding-top:12px}.three-color-game .result-bars{display:flex;align-items:flex-end;gap:8px;min-width:490px;height:230px;border-bottom:1px solid #b6ccdf;padding:0 4px 25px}.three-color-game .result-column{flex:1;height:180px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;position:relative}.three-color-game .result-bar{width:75%;height:var(--bar-height);background:linear-gradient(#83bedc,#3d7cae);border-radius:5px 5px 0 0;min-height:1px}.three-color-game .result-column[data-result="543"] .result-bar{background:linear-gradient(#e6a1aa,#c64f67)}.three-color-game .result-column[data-result="840"] .result-bar{background:linear-gradient(#ffe295,#dca13c)}.three-color-game .result-value{font-size:11px;color:#526e86;margin-bottom:4px}.three-color-game .result-label{position:absolute;top:186px;font-size:11px;color:#385874}.three-color-game .jackpot-prob{border:2px solid #d84451;border-radius:6px;padding:8px 6px;margin:7px -6px;background:#fff4f4}.three-color-game .jackpot-explanation{border-left:3px solid #d84451;padding:12px 15px;background:#fff4f4;border-radius:0 10px 10px 0}.three-color-game .jackpot-dialog{position:fixed;inset:0;margin:auto;border:1px solid #ffe4a1;border-radius:28px;padding:36px 28px;width:min(430px,90vw);overflow:visible;background:linear-gradient(145deg,#fffdf5,#fff0cc);color:#735013;box-shadow:0 30px 100px #20180666;text-align:center}.three-color-game .jackpot-dialog::backdrop{background:#091b39a6;backdrop-filter:blur(5px)}.three-color-game .jackpot-content{position:relative;z-index:1}.three-color-game .jackpot-icon{font-size:56px}.three-color-game .jackpot-eyebrow{letter-spacing:.16em;font-size:12px;margin:8px}.three-color-game .jackpot-content h2{font-size:28px;margin:12px 0}.three-color-game .jackpot-content b{font-size:26px;color:#b57918}.three-color-game .jackpot-content button{margin-top:14px;padding:12px 24px}.three-color-game #confetti{position:absolute;inset:-100px -25px;pointer-events:none;overflow:hidden}.three-color-game .confetti-piece{position:absolute;left:50%;top:30%;width:9px;height:15px;background:var(--color);animation:confetti-burst 2.8s var(--delay) cubic-bezier(.12,.6,.4,1) both}@keyframes confetti-burst{0%{transform:translate(0) rotate(0);opacity:0}8%{opacity:1}40%{transform:translate(var(--x),var(--y)) rotate(240deg);opacity:1}to{transform:translate(var(--x),490px) rotate(900deg);opacity:0}}@media(prefers-reduced-motion:reduce){.three-color-game .confetti-piece{display:none}}@media(max-width:1000px){.three-color-game .ball-layout{grid-template-columns:1fr}.three-color-game .rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.three-color-game .rule-grid{grid-template-columns:1fr}.three-color-game .draw-status{font-size:11px}.three-color-game .principle__inner{margin:0 12px;padding:0 5px 20px}.three-color-game .scene-legend{gap:12px}.three-color-game .title-header h1{font-size:1.5rem}}.three-color-game img.enjoy-math-image{display:inline-block!important;max-width:none!important;min-width:0!important;margin:0 .08em!important;object-fit:contain;flex-shrink:0;border:0!important;font-size:1em!important}.three-color-game .enjoy-math-wrap{display:inline-block;max-width:100%;overflow-x:auto;overflow-y:hidden;white-space:nowrap;line-height:1.5}.three-color-game .enjoy-math-block{font-family:inherit!important;font-size:1em!important;line-height:2.15!important;overflow-x:auto!important;max-width:100%}.three-color-game .enjoy-math-block img.enjoy-math-image{margin:.18em .08em!important}.three-color-game .reveal{opacity:1!important;transform:none!important}.three-color-game .formula-tex{display:inline}.three-color-game .formula-tex--display{display:inline-block;max-width:100%;padding:4px 2px 8px 0;overflow-x:auto;overflow-y:hidden;vertical-align:middle;scrollbar-width:thin;scrollbar-color:rgba(84,131,179,.35) transparent}.three-color-game .formula-tex--display::-webkit-scrollbar{height:5px}.three-color-game .formula-tex--display::-webkit-scrollbar-thumb{background:#5483b359;border-radius:999px}.three-color-game .formula-tex--display::-webkit-scrollbar-track{background:transparent}.three-color-game .formula-tex--display .katex-display{display:inline-block;margin:0;text-align:center}.three-color-game .formula-tex--display .katex-display>.katex{text-align:center}
