.coin-toss-2-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}.coin-toss-2-game *,.coin-toss-2-game *:before,.coin-toss-2-game *:after{box-sizing:border-box;margin:0;padding:0}.coin-toss-2-game .reveal{opacity:0;transform:translateY(32px);transition:opacity .7s var(--ease),transform .7s var(--ease)}.coin-toss-2-game .reveal.visible{opacity:1;transform:translateY(0)}@media(max-width:1200px){.coin-toss-2-game #gameContainer{min-height:480px}}@media(max-width:768px){.coin-toss-2-game #gameContainer{min-height:400px}}@media(prefers-reduced-motion:reduce){.coin-toss-2-game *,.coin-toss-2-game *:before,.coin-toss-2-game *:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}.coin-toss-2-game .coin-game .stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-bottom:.8rem}.coin-toss-2-game .coin-game .stat-tile{background:#0526590a;border-radius:12px;padding:.7rem;text-align:center}.coin-toss-2-game .coin-game .stat-label{font-size:.75rem;color:var(--muted)}.coin-toss-2-game .coin-game .stat-number{font-size:1.5rem;font-weight:800;color:var(--navy)}.coin-toss-2-game .coin-game .stat-number.small{font-size:1.1rem}.coin-toss-2-game .coin-game .profit-positive{color:#10b981;font-weight:800}.coin-toss-2-game .coin-game .profit-negative{color:#ef4444;font-weight:800}.coin-toss-2-game .coin-game .chart-container{background:#fff;border-radius:12px;padding:.4rem;border:1px solid var(--glass-border)}.coin-toss-2-game .coin-game #profitChart{width:100%;height:auto;display:block}.coin-toss-2-game .coin-game .chart-note{display:flex;gap:1rem;margin-top:.5rem;font-size:.78rem;color:var(--muted)}.coin-toss-2-game .coin-game .ref-line{display:flex;align-items:center;gap:.3rem}.coin-toss-2-game .coin-game .ref-line span{width:14px;height:4px;border-radius:2px;display:inline-block}@keyframes pulse{0%,to{box-shadow:0 0 #5483b380}50%{box-shadow:0 0 0 8px #5483b300}}.coin-toss-2-game .coin-game .btn{border:none;border-radius:9999px;padding:.6rem 1.3rem;font-weight:700;font-size:.92rem;cursor:pointer;transition:transform .08s ease,background .15s ease,box-shadow .15s ease;box-shadow:var(--shadow-sm);background:#ffffffd9;color:var(--navy);border:1px solid var(--glass-border)}.coin-toss-2-game .coin-game .btn:hover{box-shadow:var(--shadow-md);transform:translateY(-1px)}.coin-toss-2-game .coin-game .btn:active{transform:scale(.85)}.coin-toss-2-game .coin-game .btn-primary{background:var(--navy);color:#fff;border:none}.coin-toss-2-game .coin-game .btn:disabled{opacity:.5;cursor:not-allowed}.coin-toss-2-game #principle .principle__inner{margin:0 1.9rem;padding:0 0 1.9rem}.coin-toss-2-game #principle .theory-lead{margin:1.25rem 0 .2rem;padding:1rem 1.1rem;border:1px solid #c7dceb;border-radius:14px;color:#294b69;background:linear-gradient(135deg,#c1e8ff8c,#edf8ffd1);line-height:1.85}.coin-toss-2-game #principle .theory-lead strong{display:block;margin-bottom:.3rem;color:var(--navy)}.coin-toss-2-game #principle .theory-step{padding:1.3rem 0;border-bottom:1px solid var(--line);color:#38546f;font-size:.95rem;line-height:1.9}.coin-toss-2-game #principle .theory-step:last-child{border-bottom:0;padding-bottom:0}.coin-toss-2-game #principle .theory-step h3{margin:0 0 .65rem;color:var(--navy);font-size:1.08rem}.coin-toss-2-game #principle .theory-step p+p{margin-top:.7rem}.coin-toss-2-game #principle .theory-step b{color:var(--navy)}.coin-toss-2-game #principle .theory-formula{margin:.85rem 0;padding:.85rem 1rem;border:1px solid var(--line);border-radius:11px;background:#f2f7fb;color:var(--navy);text-align:center;overflow-x:auto;line-height:1.9}.coin-toss-2-game #principle .theory-tip{margin:.85rem 0 0;padding:.75rem .9rem;border-left:4px solid var(--steel);border-radius:0 9px 9px 0;background:#f6faff}@media(max-width:600px){.coin-toss-2-game #principle .principle__inner{margin:0 1.1rem}.coin-toss-2-game #principle .theory-step{font-size:.9rem}.coin-toss-2-game #principle .theory-step h3{font-size:1rem}}.coin-toss-2-game #principle .markov-figure{margin:18px 0;padding:12px;border:1px solid #cbddeb;border-radius:14px;background:#f6faff}.coin-toss-2-game #principle .markov-scroll{overflow-x:auto}.coin-toss-2-game #principle .markov-diagram{display:block;width:640px;max-width:none;height:auto;margin:0 auto;font-family:var(--font-sans)}.coin-toss-2-game #principle .chain-h{fill:none;stroke:#5483b3;stroke-width:2.5}.coin-toss-2-game #principle .chain-t{fill:none;stroke:#ad8040;stroke-width:2.5}.coin-toss-2-game #principle .chain-node{fill:#e8f2fa;stroke:#7da0ca;stroke-width:2}.coin-toss-2-game #principle .chain-end{fill:#e8f5ef;stroke:#5e9581;stroke-width:2}.coin-toss-2-game #principle .chain-end-inner{fill:none;stroke:#5e9581;stroke-width:1.5}.coin-toss-2-game #principle .chain-label{font-size:17px;fill:#38546f;text-anchor:middle}.coin-toss-2-game #principle .chain-return{fill:#986e31}.coin-toss-2-game #principle .chain-state{font-size:19px;font-weight:700;fill:#052659;text-anchor:middle}.coin-toss-2-game #principle .chain-small{font-size:16px;fill:#38546f;text-anchor:middle}.coin-toss-2-game #principle figcaption{font-size:12px;color:#597087;line-height:1.8;padding:4px 8px}.coin-toss-2-game #principle .theory-subtitle{font-size:15px;color:#052659;margin:20px 0 8px}.coin-toss-2-game #principle .theory-equations{display:grid;gap:5px;justify-items:center}.coin-toss-2-game #principle .extension-chain{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin:16px 0;padding:16px;background:#f2f7fb;border-radius:12px}.coin-toss-2-game #principle .extension-chain span{padding:8px 13px;background:#e8f2fa;border:1px solid #c5d9e9;border-radius:10px;color:#052659;font-weight:600}.coin-toss-2-game #principle .extension-chain i{font-style:normal;color:#5483b3;font-size:13px}.coin-toss-2-game #principle .extension-chain .extension-end{background:#e8f5ef;border-color:#a3c9b9}.coin-toss-2-game #principle .theory-extension-note{color:#688298;font-size:12px;margin-top:12px}.coin-toss-2-game #rules{color:#38546f;font-size:14px;line-height:1.8}.coin-toss-2-game #rules .rules-intro{font-size:16px;color:#052659;margin-bottom:18px}.coin-toss-2-game #rules .rules-steps{list-style:none;display:grid;gap:16px;padding:0;margin:0}.coin-toss-2-game #rules .rules-steps li{display:flex;align-items:flex-start;gap:12px}.coin-toss-2-game #rules .rules-number{flex:0 0 28px;height:28px;border-radius:50%;background:#e3eff8;color:#052659;text-align:center;font-weight:700;line-height:28px}.coin-toss-2-game #rules .rules-steps h3{font-size:15px;color:#052659;margin:0 0 3px}.coin-toss-2-game #rules .rules-payoff{margin-top:20px;padding:16px 18px;border:1px solid #cbddeb;border-radius:12px;background:#edf5fb}.coin-toss-2-game #rules .rules-payoff>strong{display:block;color:#052659}.coin-toss-2-game #rules .rules-outcomes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:10px}.coin-toss-2-game #rules .rules-outcomes b{display:block;color:#052659}.coin-toss-2-game #rules .rules-example{margin-top:18px;padding:16px 18px;border:1px solid #dce7f0;border-radius:12px;background:#ffffffa6}.coin-toss-2-game #rules .rules-example>b{color:#052659}.coin-toss-2-game #rules .rules-example p{margin-top:8px}.coin-toss-2-game #rules .rules-sequence{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}.coin-toss-2-game #rules .rules-sequence>span{min-width:48px;padding:5px;border:1px solid #e4cd9d;border-radius:8px;background:#fff4da;color:#8b641d;text-align:center;font-weight:700}.coin-toss-2-game #rules .rules-sequence small{display:block;font-size:10px;font-weight:400}.coin-toss-2-game #rules .rules-sequence .tail{background:#eaf3fa;border-color:#c5d9e9;color:#426c93}.coin-toss-2-game #rules .rules-sequence .finish{border:2px solid #c69a43}.coin-toss-2-game #rules .rules-sequence strong{color:#258471;font-size:14px;margin-left:4px}.coin-toss-2-game #rules .rules-important{padding:12px 14px;border-left:3px solid #c69a43;background:#fff8e9;margin-top:16px;border-radius:0 8px 8px 0}.coin-toss-2-game #rules .rules-batch{font-size:12px;color:#688298;margin-top:12px}@media(max-width:540px){.coin-toss-2-game #rules{padding:20px 16px}.coin-toss-2-game #rules .rules-outcomes{grid-template-columns:1fr;gap:8px}.coin-toss-2-game #rules .rules-outcomes b{display:inline;margin-right:12px}.coin-toss-2-game #rules .rules-sequence strong{flex-basis:100%;margin:4px 0 0}}.coin-toss-2-game .coin-game{color:#38546f;font-size:14px;line-height:1.7}.coin-toss-2-game .coin-game .play-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:18px;align-items:stretch}.coin-toss-2-game .coin-game .panel{min-width:0;padding:20px;border:1px solid #d6e5f0;border-radius:18px;background:#ffffffdb;box-shadow:0 8px 24px #0526590b;margin-bottom:18px}.coin-toss-2-game .coin-game .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}.coin-toss-2-game .coin-game h3{font-size:16px;color:#052659;line-height:1.5;margin:0}.coin-toss-2-game .coin-game .eyebrow{font-size:11px;letter-spacing:.1em;color:#688298;margin-bottom:3px}.coin-toss-2-game .coin-game .status-pill{font-size:12px;color:#426683;background:#edf5fb;border:1px solid #d6e5f0;border-radius:999px;padding:4px 11px}.coin-toss-2-game .coin-game #coinCanvas{display:block;width:100%;height:auto;border-radius:14px;border:1px solid #d6e5f0;background:#edf5fb;box-shadow:none}.coin-toss-2-game .coin-game .face-key{display:flex;justify-content:center;gap:20px;font-size:12px;margin:10px 0;color:#597087}.coin-toss-2-game .coin-game .face-key i{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px;background:#ce9e43}.coin-toss-2-game .coin-game .face-key .tail-key{background:#7da0ca}.coin-toss-2-game .coin-game .result-message{min-height:48px;text-align:center;color:#052659;padding:8px 4px;font-size:14px}.coin-toss-2-game .coin-game .actions{display:grid;grid-template-columns:1.5fr 1fr;gap:10px}.coin-toss-2-game .coin-game .secondary-actions{display:flex;gap:10px;justify-content:space-between;margin-top:10px;flex-wrap:wrap}.coin-toss-2-game .coin-game .secondary-actions .btn{padding:8px 14px;font-size:12px}.coin-toss-2-game .coin-game .sound-toggle{background:#f5f8fb;color:#597087;border:1px solid #d6e5f0}.coin-toss-2-game .coin-game .simulation-progress{padding:12px 14px;background:#edf5fb;border:1px solid #d6e5f0;border-radius:12px;margin-bottom:14px}.coin-toss-2-game .coin-game .simulation-progress[hidden],.coin-toss-2-game .coin-game #stopSimulationBtn[hidden]{display:none}.coin-toss-2-game .coin-game .progress-heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:#38546f;font-size:13px;margin-bottom:8px}.coin-toss-2-game .coin-game .progress-heading strong{margin-left:auto;font-variant-numeric:tabular-nums}.coin-toss-2-game .coin-game .progress-heading .btn{padding:4px 10px;font-size:12px}.coin-toss-2-game .coin-game progress{width:100%;height:9px;display:block;accent-color:#5483b3;border:0;border-radius:99px;overflow:hidden;background:#dbe7f0}.coin-toss-2-game .coin-game progress::-webkit-progress-bar{background:#dbe7f0;border-radius:99px}.coin-toss-2-game .coin-game progress::-webkit-progress-value{background:linear-gradient(90deg,#5483b3,#7da0ca);border-radius:99px;transition:width .04s linear}.coin-toss-2-game .coin-game .btn{border-radius:12px;font-family:inherit;font-size:14px;line-height:1.5;padding:12px 14px;box-shadow:none;transition:background .15s,transform .15s}.coin-toss-2-game .coin-game .btn:disabled{opacity:.45;transform:none;cursor:not-allowed}.coin-toss-2-game .coin-game .btn:focus-visible,.coin-toss-2-game .coin-game .history-wrap:focus-visible{outline:3px solid #7da0ca;outline-offset:3px}.coin-toss-2-game .coin-game .btn-secondary{background:#e7f1f9;color:#052659;border:1px solid #c5d9e9}.coin-toss-2-game .coin-game .btn-reset{background:#f7eded;color:#a24d4b;border:1px solid #ebd0ce}.coin-toss-2-game .coin-game .round-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.coin-toss-2-game .coin-game .round-summary>div{padding:12px;border-radius:12px;background:#f2f7fb}.coin-toss-2-game .coin-game .round-summary span{display:block;color:#688298;font-size:12px}.coin-toss-2-game .coin-game .round-summary strong{font-size:25px;font-weight:700;color:#052659;font-variant-numeric:tabular-nums}.coin-toss-2-game .coin-game .sequence-title{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:13px;color:#052659;margin:10px 0}.coin-toss-2-game .coin-game .sequence{display:flex;align-content:flex-start;flex-wrap:wrap;gap:7px;min-height:130px;max-height:240px;overflow:auto;padding:12px;background:#f6f9fc;border:1px solid #e0eaf2;border-radius:12px}.coin-toss-2-game .coin-game .flip-token{display:flex;flex-direction:column;align-items:center;justify-content:center;width:36px;min-height:46px;border-radius:9px;border:1px solid #e4cd9d;background:#fff4da;color:#8b641d;font-size:15px;font-weight:700}.coin-toss-2-game .coin-game .flip-token.T{border-color:#c5d9e9;background:#eaf3fa;color:#426c93}.coin-toss-2-game .coin-game .flip-token small{font-size:9px;line-height:1.3;font-weight:400;opacity:.75}.coin-toss-2-game .coin-game .flip-token.matched{outline:2px solid #c69a43;outline-offset:1px}.coin-toss-2-game .coin-game .empty{color:#7c91a3;font-size:13px;padding:16px 0;text-align:center;width:100%;align-self:center}.coin-toss-2-game .coin-game .round-note{font-size:12px;color:#688298;margin:12px 0}.coin-toss-2-game .coin-game .settlement{border-left:3px solid #7da0ca;border-radius:0 10px 10px 0;padding:12px;background:#edf5fb;color:#38546f;min-height:72px}.coin-toss-2-game .coin-game .settlement strong{display:block;color:#052659;font-size:14px;margin-bottom:3px}.coin-toss-2-game .coin-game .history-wrap{overflow:auto;max-height:300px;border:1px solid #dce7f0;border-radius:12px}.coin-toss-2-game .coin-game .history-table{width:100%;border-collapse:collapse;font-size:13px;min-width:580px}.coin-toss-2-game .coin-game .history-table th{position:sticky;top:0;background:#eaf3fa;color:#052659;z-index:1;font-weight:600}.coin-toss-2-game .coin-game .history-table td,.coin-toss-2-game .coin-game .history-table th{padding:10px 14px;text-align:left;border-bottom:1px solid #e0eaf2}.coin-toss-2-game .coin-game .history-table tbody tr:last-child td{border-bottom:0}.coin-toss-2-game .coin-game .history-seq{font-family:Consolas,monospace;letter-spacing:.12em;overflow-wrap:anywhere;max-width:330px;font-size:12px}.coin-toss-2-game .coin-game .history-seq b{color:#9c691a;background:#fff0ca;border-radius:3px;padding:1px 3px}.coin-toss-2-game .coin-game .muted{color:#688298;font-size:12px}.coin-toss-2-game .coin-game .stats-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0}.coin-toss-2-game .coin-game .stat-tile{background:#f2f7fb;padding:16px 10px}.coin-toss-2-game .coin-game .stat-number{font-size:25px;font-variant-numeric:tabular-nums}.coin-toss-2-game .coin-game .stat-label{font-size:12px}.coin-toss-2-game .coin-game .stat-sub{font-size:11px;color:#688298;min-height:19px}.coin-toss-2-game .coin-game .stats-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;align-items:center}.coin-toss-2-game .coin-game .stats-actions .btn{padding:9px 16px;font-size:13px}.coin-toss-2-game .coin-game .profit-positive{color:#258471}.coin-toss-2-game .coin-game .profit-negative{color:#b66159}.coin-toss-2-game .coin-game .chart-note{flex-wrap:wrap;gap:8px 18px;line-height:1.7}.coin-toss-2-game .coin-game .chart-container{padding:8px}.coin-toss-2-game .coin-game #profitChart,.coin-toss-2-game .coin-game #cumulativeChart{width:100%;height:280px;display:block}.coin-toss-2-game .coin-game .footnote{font-size:12px;color:#688298;margin-top:12px}@media(max-width:1100px){.coin-toss-2-game .coin-game .play-grid{grid-template-columns:1fr}.coin-toss-2-game .coin-game .sequence{min-height:90px}}@media(max-width:540px){.coin-toss-2-game #gameContainer{padding:8px}.coin-toss-2-game .coin-game .panel{padding:14px}.coin-toss-2-game .coin-game .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.coin-toss-2-game .coin-game .btn{font-size:13px;padding:11px}.coin-toss-2-game .coin-game .stat-number{font-size:23px}.coin-toss-2-game .coin-game .face-key{gap:12px;font-size:11px}}.coin-toss-2-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}.coin-toss-2-game .enjoy-math-block{font-family:inherit!important;font-size:1em!important;line-height:2.15!important;overflow-x:auto!important;max-width:100%}.coin-toss-2-game .theory-equations.enjoy-math-block{display:block!important}.coin-toss-2-game .enjoy-math-block img.enjoy-math-image{margin:.18em .08em!important}.coin-toss-2-game .reveal{opacity:1!important;transform:none!important}
