:root{color-scheme:light;--page:#f5f5f1;--paper:#fff;--ink:#193137;--muted:#65776f;--line:#e6eae5;--mint:#bcf2d8;--mint-strong:#7ed9b1;--navy:#142b31;--red:#bd4a48;--radius:22px;--font:Inter,"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--font);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit}
button,a,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:default}
button,select{color:inherit}
a{color:inherit}
svg{display:block;width:20px;height:20px;flex:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #63b99b;outline-offset:4px}
button{transition:background .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}
[hidden]{display:none!important}
.skip-link{position:fixed;top:12px;left:12px;z-index:100;padding:12px 20px;border-radius:12px;background:var(--navy);color:white;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
.site-header{height:83px;border-bottom:1px solid #e5e9e3;background:rgba(255,255,255,.5)}
.header-inner{max-width:1240px;padding:0 30px;margin:0 auto;height:100%;display:flex;align-items:center;gap:23px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;flex:none}
.brand-mark{width:34px;height:38px;border-radius:10px;display:grid;place-items:center;background:var(--navy);color:var(--mint)}
.brand-mark svg{width:25px;height:25px;stroke:none}
.brand-name{font-size:21px;font-weight:750;letter-spacing:-1px;white-space:nowrap}
.brand-name>span{font-weight:450}
.game-pill{font-size:12px;font-weight:550;border:1px solid #dfe5de;color:#64736f;border-radius:100px;padding:6px 11px;white-space:nowrap}
.header-actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid transparent;border-radius:10px;padding:10px 15px;line-height:1.25;font-weight:600;font-size:13px;text-decoration:none;background:transparent}
.text-button{color:#5c6f6c;background:transparent}
.text-button:hover{background:#e9eee7;color:var(--ink)}
.button svg{width:17px;height:17px}
.history-button{border-color:#dfe5de;background:#fff}
.history-button:hover{border-color:#b4c9be;background:#f9fcf8}
.counter{height:19px;min-width:20px;padding:1px 5px;border-radius:5px;font-size:11px;background:#eff2ed;color:#5f7368;display:grid;place-items:center}
.main-wrap{max-width:1240px;margin:0 auto;padding:35px 30px 20px}
.page-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:27px}
.eyebrow{font-size:11px;letter-spacing:1.65px;font-weight:750;color:#677a6c;margin:0 0 8px}
h1{font-weight:650;font-size:31px;line-height:1.25;letter-spacing:-1.2px;margin:0}
h1>span{font-weight:400;color:#60726d}
.intro-copy{margin:10px 0 0;font-size:13px;color:#66796b}
.version-pill{display:flex;align-items:center;gap:7px;color:#6b7e6f;font-size:11px;white-space:nowrap;margin-bottom:3px}
.version-pill>span{height:5px;width:5px;border-radius:50%;background:#7db598}
.calculator-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(0,1fr);gap:22px;align-items:stretch}
.input-panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 7px 24px #19313703}
.input-section{margin:0 27px;padding:23px 0;border-bottom:1px solid #edf0eb}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;min-height:26px}
.section-title{display:flex;align-items:center;gap:11px}
.step-number{font-size:11px;font-weight:650;color:#73876f;width:23px;height:23px;border-radius:50%;border:1px solid #e5ebe5;display:grid;place-items:center}
h2{font-size:14px;letter-spacing:-.2px;font-weight:650;line-height:1.4;margin:0}
.section-hint{font-size:11px;color:#6d806a}
.hero-selection{display:flex;align-items:center;gap:28px}
.cards-row{display:flex;align-items:center;gap:10px}
.card-slot{position:relative;flex:none;width:76px;height:100px;border:1px solid #d4ded5;border-radius:10px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;box-shadow:0 3px 0 #e9ede7;line-height:1.05;user-select:none;padding:8px;color:var(--ink)}
.card-slot:not(.empty):hover{transform:translateY(-3px);border-color:#80b69d;box-shadow:0 5px 0 #e2eae2}
.card-slot.empty{background:#f9faf7;border:1px dashed #cfd8cf;box-shadow:none;color:#afbbb0}
.card-slot.empty:hover{border-color:#66af8e;background:#f0f8ef;color:#4a9976}
.card-slot.selected{border:2px solid #69b490;box-shadow:0 0 0 3px #d7f0df}
.card-slot.red,.deck-card.red,.suit-tab.red{color:var(--red)}
.card-rank{font-size:29px;font-weight:700;letter-spacing:-1px}
.card-suit{font-size:30px;line-height:1}
.card-slot .card-label{font-size:11px;color:#6c8064}
.empty-symbol{font-family:Arial,sans-serif;font-size:25px;font-weight:300;line-height:1}
.card-slot .remove-card{position:absolute;right:4px;top:4px;font-size:13px;line-height:1;color:#8da194}
.selection-tip{display:flex;gap:11px;align-items:flex-start;padding-top:3px;color:#7b8f71}
.tip-icon{font-size:23px;font-weight:300;line-height:1.2;color:#b1bfb2;transform:rotate(-10deg)}
.selection-tip p{margin:0;font-size:11px;color:#6d8066;font-weight:550}
.selection-tip p>span{display:block;margin-top:4px;color:#71846a;font-size:11px;line-height:1.7;font-weight:400}
.board-section{padding-top:21px;padding-bottom:20px}
.board-section .section-heading{margin-bottom:12px}
.stage-badge{font-size:11px;border-radius:6px;background:#f0f5ee;color:#567a5e;padding:4px 9px;font-weight:550}
.street-controls{display:flex;gap:5px;margin:0 0 17px;flex-wrap:wrap}
.street-btn{font-size:11px;line-height:1.2;min-height:44px;padding:7px 12px;border:1px solid #e8ede6;background:#fff;border-radius:7px;color:#6c8066;font-weight:500}
.street-btn:hover{color:#4b7b5f;border-color:#b8ceba;background:#f7faf4}
.street-btn.active,.street-btn[aria-pressed="true"]{color:#2b6045;background:#eaf4e8;border-color:#dcebd6;font-weight:650}
.board-cards .card-slot{width:calc((100% - 40px)/5);max-width:76px}
.board-cards .card-slot:nth-child(4){margin-left:5px}
.board-cards .card-slot:nth-child(5){margin-left:5px}
.field-note{margin:12px 0 0;font-size:11px;line-height:1.6;color:#6d8066}
.opponents-section{padding-top:20px;padding-bottom:18px}
.opponents-heading{margin-bottom:0}
.opponents-control{display:flex;align-items:center;gap:11px}
.opponents-control label{font-size:11px;color:#6c8064}
select{appearance:none;-webkit-appearance:none;border:1px solid #dce5d9;background-color:#f9fbf7;border-radius:8px;padding:8px 31px 8px 13px;font-size:13px;font-weight:600;line-height:1.2;min-height:44px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%237e9384' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center;cursor:pointer}
#opponents-count{min-width:67px}
.opponents-note{margin-top:7px}
.opponents-details{margin-top:13px}
.opponents-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;font-size:12px;font-weight:550;color:#6d8571;list-style:none;min-height:44px}
.opponents-details>summary::-webkit-details-marker{display:none}
.opponents-details>summary svg{width:15px;height:15px;color:#8da089;transition:transform .15s}
.opponents-details[open]>summary svg{transform:rotate(180deg)}
.details-note{font-size:11px;color:#6c8064;margin:4px 0 13px}
.opponents-hands{display:grid;gap:10px}
.opponent-row{display:flex;align-items:center;gap:9px;padding:12px;background:#f7f9f4;border:1px solid #e9eee4;border-radius:10px}
.opponent-row .opponent-name,.opponent-row>label,.opponent-row>.name{font-size:12px;font-weight:550;color:#697e68;margin-right:auto}
.opponent-row .cards-row{gap:7px}
.opponent-row .card-slot{width:47px;height:62px;border-radius:6px}
.opponent-row .card-rank{font-size:21px}
.opponent-row .card-suit{font-size:20px}
.opponent-row .opponent-reset,.opponent-row .clear-opponent{border:0;background:transparent;font-size:11px;color:#81937b;padding:10px 5px}
.opponent-row .opponent-mode{font-size:11px;color:#6d8065}
.input-bottom{padding:18px 27px 12px;background:#fcfdf9}
.example-strip>span{display:block;font-size:11px;color:#6b8062;margin-bottom:10px}
.example-buttons{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.example-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #e3e9de;border-radius:7px;background:#fff;color:#607854;font-size:11px;font-weight:500;padding:7px 10px;min-height:44px;white-space:nowrap}
.example-btn>span{font-size:12px;font-weight:600;color:#668461;letter-spacing:-.8px}
.example-btn:hover{background:#eff7e8;border-color:#c9d9bd;color:#4d7144}
.input-footer{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-height:44px;margin-top:7px}
.reset-button{font-size:11px;color:#667e59;padding:8px 0;min-height:44px;flex:none}
.reset-button:hover{color:#47663f}
.reset-button svg{width:14px;height:14px}
.error-message{font-size:12px;line-height:1.5;color:#b75542;margin:0 auto 0 0;font-weight:500}
.result-panel{border:1px solid #1b3940;border-radius:var(--radius);background:var(--navy);color:#fff;padding:25px 28px 20px;display:flex;flex-direction:column;box-shadow:0 13px 35px #122b3110;overflow:hidden}
.result-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}
.result-kicker{font-size:11px;letter-spacing:1.25px;color:#7d9698;font-weight:700;white-space:nowrap}
.result-state{display:flex;gap:6px;align-items:center;font-size:11px;color:#87a59f;white-space:nowrap}
.status-dot{width:5px;height:5px;background:#739b8d;border-radius:50%;flex:none}
.result-panel.calculating .status-dot,.result-panel[data-state="calculating"] .status-dot,.result-panel[data-state="busy"] .status-dot{background:var(--mint);animation:pulse 1s ease-in-out infinite}
.win-block{text-align:center;padding:26px 0 23px}
.win-value{color:var(--mint);font-size:82px;font-weight:650;line-height:1.13;letter-spacing:-4px;white-space:nowrap;font-variant-numeric:tabular-nums;min-height:94px}
.win-value .percent{font-size:38px;letter-spacing:-1px;font-weight:400}
.win-block h2{font-size:14px;font-weight:550;margin-top:6px;letter-spacing:0;color:#edf6ee}
.win-block p{font-size:11px;color:#6f9490;margin:5px 0 0}
.probability-bar{height:5px;width:100%;display:flex;overflow:hidden;background:#29454a;border-radius:10px}
.probability-bar>span{display:block;transition:width .25s ease;width:0}
.bar-win{background:var(--mint)}
.bar-tie{background:#d5d4a2}
.bar-lose{background:#56747a}
.secondary-results{display:grid;grid-template-columns:1fr 1fr;margin-top:16px;margin-bottom:21px}
.secondary-result{display:flex;flex-direction:column;gap:6px}
.secondary-result+div{padding-left:22px;border-left:1px solid #2c4549}
.stat-label{display:flex;align-items:center;gap:6px;font-size:11px;color:#94aaa4}
.legend-dot{width:5px;height:5px;display:inline-block;border-radius:50%;flex:none}
.tie-dot{background:#d5d4a2}
.lose-dot{background:#56747a}
.secondary-result>strong{font-size:23px;line-height:1.3;font-weight:500;color:#edf5ed;font-variant-numeric:tabular-nums;letter-spacing:-.5px}
.equity-card{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#203d40;border:1px solid #2b4a4a;border-radius:11px;padding:16px 15px}
.equity-card>div>span{display:block;font-size:11px;color:#d7e9db;font-weight:500}
.equity-card .equity-sublabel{font-size:11px;color:#7da18f;font-weight:400;margin-top:4px}
.equity-card strong{font-size:25px;font-weight:550;color:var(--mint);font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.6px}
.made-hand{margin-top:19px;display:flex;flex-direction:column;gap:5px;padding-bottom:17px;border-bottom:1px solid #2a4546}
.made-hand>span{font-size:11px;color:#77978a}
.made-hand strong{font-size:13px;font-weight:500;color:#bed5c3;line-height:1.45;min-height:18px}
.model-info{display:flex;gap:8px;margin-top:15px;color:#719687;align-items:flex-start}
.model-info svg{width:13px;height:13px;margin-top:2px;stroke-width:1.3}
.model-info p{font-size:11px;line-height:1.7;margin:0;color:#87a596}
.result-actions{margin-top:auto;padding-top:16px}
.precision-row{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:12px}
.precision-row label{font-size:11px;color:#7f9f8c}
.precision-row select{min-height:44px;font-size:11px;font-weight:500;color:#accbb0;border-color:#355047;background-color:#1b3837;border-radius:6px;padding:6px 26px 6px 9px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='m1 1 3 3 3-3' fill='none' stroke='%239ab999' stroke-width='1.2'/%3E%3C/svg%3E")}
.precision-row select option{background:#1b3837;color:#d3e6cc}
.calculate-button{width:100%;min-height:48px;justify-content:flex-start;padding:12px 17px;background:var(--mint);border-color:var(--mint);color:#1b493a;font-size:13px;border-radius:9px}
.calculate-button>svg{width:17px;height:17px;stroke-width:2}
.calculate-button .button-arrow{font-size:19px;line-height:1;margin-left:auto;font-weight:400}
.calculate-button:hover:not(:disabled){background:#d0ffe5;border-color:#d0ffe5;transform:translateY(-1px)}
.calculate-button:disabled{background:#2b4846;border-color:#36564e;color:#6d9480}
.save-button{width:100%;color:#9bbca1;border-color:#355448;margin-top:9px;min-height:44px;font-size:11px;background:#193634;border-radius:8px}
.save-button:hover:not(:disabled){background:#24463d;border-color:#698d72;color:#c8e5c6}
.save-button:disabled{opacity:.43}
.save-button svg{width:13px;height:13px}
.result-detail{font-size:11px;line-height:1.6;color:#6f947d;text-align:center;margin:12px 0 0;min-height:13px}
.assumptions-note{display:flex;align-items:flex-start;gap:9px;margin-top:21px;padding:0 1px;color:#6d8063}
.note-icon{width:15px;height:15px;flex:none;border:1px solid #c5d0be;border-radius:50%;font-size:11px;font-style:normal;display:grid;place-items:center;line-height:1;margin-top:2px}
.assumptions-note p{margin:0;font-size:11px;line-height:1.75}
.assumptions-note strong{font-weight:550;color:#7b8e72}
.site-footer{max-width:1180px;margin:8px auto 0;padding:18px 0 25px;border-top:1px solid #e3e9de;display:flex;justify-content:space-between;align-items:flex-start;gap:20px;color:#6c8060;font-size:11px}
.site-footer>span{font-weight:600;white-space:nowrap}
.site-footer p{margin:0;text-align:right}
.app-dialog{border:1px solid #dbe4d5;border-radius:20px;padding:24px;background:#fff;color:var(--ink);box-shadow:0 30px 100px #001b2730;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);overflow:auto}
.app-dialog::backdrop{background:#102c3c70;backdrop-filter:blur(4px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:24px}
.dialog-heading h2{font-size:22px;letter-spacing:-.6px;font-weight:600}
.dialog-description{font-size:12px;color:#657b5d;margin:6px 0 0}
.dialog-heading .eyebrow{font-size:11px;letter-spacing:1.5px}
.icon-button{display:grid;place-items:center;min-height:44px;min-width:44px;padding:8px;border:1px solid #e6ecdf;border-radius:9px;background:#f7faf2;color:#657a58}
.icon-button:hover{background:#eaf3df;border-color:#c6d9b7;color:#405f31}
.icon-button svg{width:18px;height:18px}
.card-dialog{width:850px}
.suit-tabs{display:flex;gap:6px;margin-bottom:17px}
.suit-tab{display:flex;justify-content:center;align-items:center;gap:6px;border:1px solid #e2e9da;background:#f8faf4;border-radius:8px;padding:8px 15px;min-height:44px;color:#5d7554;font-size:11px;font-weight:550;flex:1}
.suit-tab>span{font-size:21px;line-height:1}
.suit-tab.active,.suit-tab[aria-pressed="true"]{background:#eaf5e2;border-color:#a9c798;color:#385e28}
.suit-tab.red.active,.suit-tab.red[aria-pressed="true"]{color:#b54e48;background:#fff0eb;border-color:#e8b5a9}
.card-grid{display:grid;gap:10px}
.deck-row{grid-column:1/-1;display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:6px}
.card-grid>.deck-card{min-width:0}
.card-grid{grid-template-columns:repeat(13,minmax(0,1fr))}
.deck-card{border:1px solid #dbe4d5;min-width:0;min-height:65px;border-radius:8px;background:white;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--ink);box-shadow:0 2px 0 #edf1e8;padding:8px 4px;line-height:1;font-size:20px;font-weight:600;letter-spacing:-.6px}
.deck-card .card-rank{font-size:21px;line-height:1;letter-spacing:-.6px}
.deck-card .card-suit{font-size:21px;line-height:1}
.deck-card:hover:not(:disabled){border-color:#71a957;background:#f2fae9;transform:translateY(-2px)}
.deck-card:disabled,.deck-card.used{background:#f4f6ef;border-color:#e9eddf;color:#c5cebb;box-shadow:none;opacity:.65;cursor:not-allowed}
.deck-card.current,.deck-card.selected{background:#e6f5d9;border:2px solid #79ac5f;box-shadow:0 0 0 2px #e5f1d8}
.picker-footer{display:flex;justify-content:space-between;align-items:center;gap:15px;padding-top:20px;margin-top:21px;border-top:1px solid #edf0e7}
.picker-footer p{font-size:11px;color:#6b7f5e;margin:0;max-width:320px}
.picker-footer>div{display:flex;gap:7px;flex:none}
.picker-footer .button{font-size:11px;min-height:44px;padding:8px 12px}
.clear-card-button{background:#f5f8ef;border-color:#e3ead9;color:#718864}
.clear-card-button:hover{background:#edf3e2;border-color:#bcccaa}
.history-dialog{width:620px}
.history-list{display:grid;gap:10px}
.empty-history{text-align:center;padding:28px 12px 38px}
.empty-history>span{display:grid;place-items:center;height:60px;width:60px;margin:0 auto 17px;border-radius:16px;background:#f0f5e7;color:#a4b88b;font-size:33px}
.empty-history h3{font-size:15px;font-weight:600;margin:0 0 8px;color:#566e49}
.empty-history p{font-size:12px;color:#687e52;margin:0}
.history-item{border:1px solid #e2ead6;background:#f9fbf5;padding:15px;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.history-item>button,.history-item .history-load{border:0;background:transparent;text-align:left;padding:0;flex:1;color:inherit}
.history-item .history-title{font-size:14px;font-weight:650;color:#345329}
.history-item .history-meta{font-size:11px;color:#6d8155;margin-top:4px}
.history-item .history-equity{color:#6c8c54;font-weight:600;font-size:16px}
.history-item .history-delete{border:1px solid #e1e7d6;background:#fff;border-radius:7px;width:36px;height:36px;flex:none;display:grid;place-items:center;padding:8px;color:#6a7b53}
.history-item:hover{border-color:#b1c499}
.help-dialog{width:610px}
.help-content{display:grid;gap:22px}
.help-item{display:flex;gap:15px}
.help-item-number{font-size:11px;color:#8da476;flex:none;border:1px solid #dae5cd;width:26px;height:26px;border-radius:50%;display:grid;place-items:center}
.help-item h3{font-size:14px;margin:2px 0 6px;font-weight:600;color:#426034}
.help-item p{margin:0;color:#637b50;font-size:13px;line-height:1.75}
.help-callout{border:1px solid #e2ebd6;border-radius:12px;padding:15px 17px;background:#f5f9ed;font-size:12px;line-height:1.8;color:#617a4a}
.dialog-bottom{margin-top:24px;display:flex;justify-content:flex-end}
.dark-button{background:var(--navy);color:var(--mint);padding-left:26px;padding-right:26px}
.dark-button:hover{background:#28493d}
.toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);z-index:200;border:1px solid #365344;border-radius:12px;background:#193a2e;color:#ddf3d1;padding:14px 22px;font-size:13px;box-shadow:0 9px 30px #16312125;text-align:center}
.card-plus{font-family:Arial,sans-serif;font-size:25px;font-weight:300;line-height:1;color:#9caf9b}
.card-slot-hint{font-size:11px;line-height:1.2;color:#6e835f;font-weight:400;letter-spacing:0;margin-top:5px;white-space:nowrap}
.deck-rank{font-size:23px;line-height:1;letter-spacing:-.5px}
.deck-suit{font-size:23px;line-height:1}
.opponent-row{display:block;padding:12px 14px}
.opponent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px}
.opponent-heading>span,.opponent-heading>strong{font-size:12px;font-weight:600;color:#657b5f}
.known-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:11px;color:#607a54;cursor:pointer;white-space:nowrap}
.known-toggle input{width:16px;height:16px;margin:0;accent-color:#4c906b;cursor:pointer}
.known-toggle input:focus-visible{outline:3px solid #63b99b;outline-offset:3px}
.opponent-cards{display:flex;align-items:center;gap:8px;margin-top:8px}
.opponent-random{font-size:11px;color:#6c805e;margin:0 0 5px;line-height:1.6}
.history-item-content{min-width:0;flex:1}
.history-item-content>strong{display:block;font-size:14px;line-height:1.45;color:#345329}
.history-item-content .history-board{font-size:12px;color:#768b69;line-height:1.6;margin-top:5px}
.history-item-content small{display:block;font-size:11px;line-height:1.6;color:#6a7f56;margin-top:4px}
.history-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;flex:none}
.button-secondary,.button-ghost{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 11px;border:1px solid #dce6d1;border-radius:8px;background:#fff;color:#627d4e;font-size:11px;font-weight:550;cursor:pointer}
.button-secondary:hover{background:#eaf5de;border-color:#b4d099}
.button-ghost{background:transparent;color:#6f7f59;border-color:transparent}
.button-ghost:hover{color:#aa6654;background:#fff4ed;border-color:#e9d7c9}
@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}

@media(min-width:1200px){.input-section{margin-left:30px;margin-right:30px}.input-bottom{padding-left:30px;padding-right:30px}.result-panel{padding-left:30px;padding-right:30px}.card-slot{width:80px;height:104px}.board-cards .card-slot{max-width:80px}}
@media(max-width:1100px){h1{font-size:28px}.version-pill{display:none}.calculator-grid{gap:18px}.result-panel{padding-left:22px;padding-right:22px}.input-section{margin-left:23px;margin-right:23px}.input-bottom{padding-left:23px;padding-right:23px}.section-hint{display:none}.board-cards{gap:8px}.board-cards .card-slot{width:calc((100% - 42px)/5)}.card-slot{width:70px;height:93px}.hero-selection{gap:22px}.result-kicker{font-size:11px;letter-spacing:1px}.win-value{font-size:75px}.site-footer{margin-left:30px;margin-right:30px}}
@media(max-width:900px){.calculator-grid{grid-template-columns:minmax(0,1fr);max-width:640px;margin:0 auto;gap:20px}.page-intro{max-width:640px;margin-left:auto;margin-right:auto}.header-inner{padding-left:25px;padding-right:25px}.header-actions{gap:8px}.game-pill{display:none}.main-wrap{padding-top:28px}.input-section{margin-left:27px;margin-right:27px}.input-bottom{padding-left:27px;padding-right:27px}.section-hint{display:block}.hero-selection{gap:28px}.card-slot{width:80px;height:104px}.board-cards{gap:11px}.board-cards .card-slot{width:calc((100% - 54px)/5);max-width:80px}.result-panel{padding:25px 30px 23px}.result-kicker{font-size:11px;letter-spacing:1.3px}.win-block{padding-top:24px;padding-bottom:22px}.win-value{font-size:86px}.result-actions{padding-top:20px}.secondary-results{margin-bottom:21px}.equity-card{padding:16px 19px}.assumptions-note{max-width:640px;margin-left:auto;margin-right:auto;margin-top:20px}.site-footer{max-width:640px;margin-left:auto;margin-right:auto}.suit-tab{min-height:44px}.help-item p{font-size:14px}.result-state{font-size:11px}.model-info p{font-size:12px}.result-detail{font-size:11px}.made-hand>span{font-size:11px}.made-hand strong{font-size:14px}.equity-card>div>span{font-size:13px}.equity-card .equity-sublabel{font-size:11px}.stat-label{font-size:12px}.precision-row label,.precision-row select{font-size:12px}.calculate-button{min-height:50px;font-size:14px}.save-button{min-height:44px;font-size:13px}.win-block h2{font-size:15px}.win-block p{font-size:12px}}
@media(max-width:680px){.header-inner{padding-left:20px;padding-right:20px}.brand-name{font-size:19px}.brand-mark{width:31px;height:35px}.header-actions{gap:7px}.help-button{padding:8px;min-width:44px}.help-button>span{display:none}.history-button{padding:9px 11px;font-size:11px;gap:7px}.site-header{height:72px}.main-wrap{padding:27px 20px 18px}.page-intro{margin-bottom:22px}.eyebrow{font-size:11px;letter-spacing:1.4px}h1{font-size:27px;line-height:1.3;letter-spacing:-.9px}h1>span{display:block}.intro-copy{font-size:12px;line-height:1.7;max-width:290px}.site-footer{margin-left:20px;margin-right:20px;gap:15px}.site-footer p{font-size:11px;max-width:340px}.app-dialog{padding:22px;width:calc(100vw - 24px);max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:17px}.dialog-heading{margin-bottom:20px;gap:12px}.dialog-heading h2{font-size:20px}.card-grid,.deck-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}.deck-card{min-height:64px}.picker-footer{flex-direction:column;align-items:stretch;gap:14px}.picker-footer>div{justify-content:flex-end}.picker-footer p{max-width:none;font-size:11px}.picker-footer .button{min-height:44px}.suit-tabs{gap:5px}.suit-tab{padding:8px 7px;font-size:11px;gap:4px}.suit-tab>span{font-size:22px}.history-item{padding:12px}.input-section{margin:0 24px}.input-bottom{padding-left:24px;padding-right:24px}.street-btn{min-height:44px;font-size:12px}.opponents-control select{min-height:44px}.opponents-details>summary{min-height:44px}.example-btn{min-height:44px}.reset-button{min-height:44px}.field-note{font-size:12px}.section-hint{font-size:11px}.result-panel{padding-left:26px;padding-right:26px}}
@media(max-width:520px){.header-inner{padding-left:16px;padding-right:16px;gap:12px}.brand-name{font-size:18px}.brand{gap:8px}.brand-mark{width:30px;height:33px;border-radius:9px}.history-button>svg{display:none}.header-actions{gap:3px}.history-button{font-size:11px;padding:8px 10px;min-height:44px;border-radius:8px}.counter{font-size:11px;min-width:17px;height:17px}.main-wrap{padding-left:14px;padding-right:14px;padding-top:25px}.page-intro{padding:0 5px;margin-bottom:21px}h1{font-size:25px;letter-spacing:-.8px}.intro-copy{font-size:12px;margin-top:10px}.input-panel,.result-panel{border-radius:18px}.input-section{margin-left:19px;margin-right:19px;padding-top:20px;padding-bottom:20px}.section-heading{gap:8px;margin-bottom:16px}.section-title{gap:8px}.step-number{font-size:11px;width:21px;height:21px}h2{font-size:14px}.section-hint{font-size:11px}.hero-selection{gap:21px}.hero-cards{gap:10px}.hero-cards .card-slot{width:68px;height:92px}.card-rank{font-size:27px}.card-suit{font-size:27px}.selection-tip{gap:6px}.selection-tip p{font-size:11px}.selection-tip p>span{font-size:11px;line-height:1.65}.tip-icon{font-size:20px}.board-cards{gap:6px;width:100%}.board-cards .card-slot{width:calc((100% - 28px)/5);height:81px;min-width:0;max-width:none;border-radius:8px}.board-cards .card-slot:nth-child(4),.board-cards .card-slot:nth-child(5){margin-left:2px}.board-cards .card-rank{font-size:24px}.board-cards .card-suit{font-size:24px}.board-section .field-note{font-size:11px}.street-controls{gap:5px;margin-bottom:15px}.street-btn{flex:1;padding-left:6px;padding-right:6px;min-height:44px;font-size:11px}.opponents-control{gap:7px}.opponents-control label{font-size:11px}.opponents-control select{font-size:13px;padding-left:13px;min-height:44px}#opponents-count{min-width:59px}.opponents-note{font-size:11px;line-height:1.65}.opponents-details>summary{font-size:12px}.input-bottom{padding:16px 19px 11px}.example-strip>span{font-size:11px}.example-buttons{gap:5px}.example-btn{font-size:11px;min-height:44px;padding:7px 8px;gap:4px}.example-btn>span{font-size:11px}.input-footer{margin-top:7px;min-height:44px;gap:10px}.reset-button{font-size:11px;min-height:44px}.error-message{font-size:11px}.result-panel{padding:23px 24px 21px}.win-value{font-size:82px}.win-block{padding-top:21px}.equity-card>div>span{font-size:12px}.equity-card .equity-sublabel{font-size:11px}.equity-card>strong{font-size:26px}.model-info p{font-size:11px}.result-detail{font-size:11px}.assumptions-note{margin-top:17px;padding:0 5px}.assumptions-note p{font-size:11px;line-height:1.8}.site-footer{margin:4px 19px 0;padding-top:15px;padding-bottom:22px;flex-direction:column;gap:7px}.site-footer p{text-align:left;max-width:none;font-size:11px}.app-dialog{padding:20px 16px}.dialog-heading{margin-bottom:17px}.dialog-heading h2{font-size:20px}.dialog-description{font-size:11px}.icon-button{min-width:44px;min-height:44px}.suit-tabs{gap:4px}.suit-tab{font-size:0;min-height:44px}.suit-tab>span{font-size:25px}.deck-row,.card-grid{gap:5px;grid-template-columns:repeat(7,minmax(0,1fr))}.deck-card{border-radius:6px;min-height:57px;font-size:18px}.deck-card .card-rank,.deck-card .card-suit{font-size:20px}.picker-footer{padding-top:16px;margin-top:17px}.picker-footer p{font-size:11px}.help-content{gap:20px}.help-item{gap:10px}.help-item h3{font-size:13px}.help-item p{font-size:12px}.help-item-number{width:23px;height:23px;font-size:11px}.help-callout{padding:13px;font-size:11px}.history-item{padding:11px}.history-item .history-title{font-size:13px}.history-item .history-meta{font-size:11px}.opponent-row{padding:10px;gap:7px}.opponent-row .opponent-name,.opponent-row>label,.opponent-row>.name{font-size:11px}.opponent-row .card-slot{width:45px;height:60px}.toast{bottom:16px;padding:13px 18px;font-size:12px}}
@media(max-width:360px){.history-button{font-size:11px;padding:7px}.brand-name{font-size:16px}.header-inner{padding-left:13px;padding-right:13px}.help-button{min-width:44px;padding:5px}.main-wrap{padding-left:10px;padding-right:10px}.input-section{margin-left:16px;margin-right:16px}.input-bottom{padding-left:16px;padding-right:16px}.section-hint{display:none}.selection-tip p{font-size:11px}.selection-tip p>span{font-size:11px}.hero-selection{gap:15px}.hero-cards .card-slot{width:62px;height:85px}.example-btn{padding-left:6px;padding-right:6px;font-size:11px}.board-cards .card-slot{height:73px}.result-panel{padding-left:20px;padding-right:20px}.result-kicker{font-size:11px;letter-spacing:1px}.result-state{font-size:11px}.win-value{font-size:75px}.equity-card{padding:14px}.equity-card>div>span{font-size:11px}.equity-card .equity-sublabel{font-size:11px}.equity-card>strong{font-size:24px}}
@media(max-width:420px){.card-grid,.deck-row{grid-template-columns:repeat(6,minmax(0,1fr))}.history-item{align-items:flex-start;flex-direction:column}.history-actions{width:100%;justify-content:flex-end}}
@media(max-width:360px){.card-grid,.deck-row{grid-template-columns:repeat(5,minmax(0,1fr))}}
.win-block,.win-value{min-width:0;max-width:100%}
@media(min-width:901px) and (max-width:1100px){.win-value{font-size:clamp(54px,calc(10vw - 36px),74px);letter-spacing:-3px}}
@media(max-width:520px){.win-value{font-size:clamp(48px,calc(20vw - 13px),78px);letter-spacing:-2.8px;min-height:88px}}
@supports(font-size:1cqi){.win-block{container-type:inline-size}.win-value{font-size:clamp(46px,20cqi,82px);letter-spacing:-.045em}}
.mobile-result{display:none}
@media(max-width:900px){body{padding-bottom:92px}.mobile-result{position:fixed;z-index:100;bottom:16px;left:14px;right:14px;max-width:640px;min-height:60px;margin:0 auto;padding:11px 17px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;row-gap:2px;align-items:center;border:1px solid #3f665c;border-radius:14px;background:#142b31;color:var(--mint);box-shadow:0 8px 30px #102b3130;text-decoration:none}.mobile-result:hover{background:#1c393c;border-color:#77ad91}#mobile-win{grid-column:1;grid-row:1;font-size:14px;line-height:1.4;font-weight:650;font-variant-numeric:tabular-nums}#mobile-equity{grid-column:1;grid-row:2;font-size:11px;line-height:1.5;color:#a0c4b2;font-variant-numeric:tabular-nums}.mobile-result-arrow{grid-column:2;grid-row:1 / span 2;font-size:25px;line-height:1;font-weight:400}.toast{bottom:94px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}

/* Public beta: calm surfaces, readable controls and a consistent card picker. */
:root{--page:#f5f7f3;--paper:#fff;--ink:#19312a;--muted:#52675d;--line:#dfe7df;--mint:#d8efe0;--mint-strong:#72bb91;--navy:#183e31;--radius:18px}
body{font-size:14px;color:var(--ink)}
.site-header{background:#fff;height:72px}
.brand-mark{background:#245e43;color:#fff}
.game-pill{min-height:44px;display:inline-flex;align-items:center;text-decoration:none;font-size:14px;color:#365d46;border:0;padding:8px 10px}
.game-pill:hover,.game-pill:focus-visible{background:#eff6ef}
.header-actions .button{font-size:14px}
.main-wrap{padding-top:27px}
.page-intro{margin-bottom:21px;align-items:center}
.eyebrow{color:#3c7655}
h1{font-size:clamp(27px,3.1vw,38px);font-weight:720;max-width:790px;letter-spacing:-.035em}
.intro-copy{font-size:15px;line-height:1.55;color:#53685a;max-width:730px}
.version-pill{font-size:12px}
.calculator-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:18px;align-items:start}
.input-panel{box-shadow:0 8px 28px #163b2110;border-color:#dfe8dd}
.input-section{padding-top:22px;padding-bottom:22px}
.section-heading h2{font-size:17px;color:#1d3829}
.section-hint,.field-note,.opponents-control label,.details-note,.selection-tip p,.selection-tip p>span,.example-strip>span{font-size:13px;color:#53675b}
.section-hint{font-size:12px}
.street-btn,.opponents-details>summary,.example-btn,.reset-button,.known-toggle{font-size:13px}
.card-slot.empty{background:#f7faf6;color:#3b7551;border-color:#a9cbb4}
.card-slot.empty:hover{background:#eaf4ea}
.result-panel{background:#142b31;border-color:#1b3940;color:#edf6ee;overflow:visible;box-shadow:0 13px 35px #122b3110}
.result-kicker{color:#a0c4b2}
.result-state{color:#a0c4b2}
.status-dot{background:#a0c4b2}
.result-panel[data-state="busy"] .status-dot{background:#bcf2d8}
.win-block{padding:17px 0 21px}
.win-value{color:#bcf2d8;font-size:clamp(60px,6vw,80px)}
.win-block h2{color:#edf6ee;font-size:16px}
.win-block p{color:#a0c4b2;font-size:13px}
.probability-bar{background:#29454a;height:7px}
.bar-win{background:#bcf2d8}.bar-tie{background:#d5d4a2}.bar-lose{background:#8ba8ac}
.tie-dot{background:#d5d4a2}.lose-dot{background:#8ba8ac}
.secondary-result+div{border-color:#2c4549}
.stat-label,.made-hand>span{color:#a0c4b2;font-size:13px}
.secondary-result>strong{color:#edf5ed}
.equity-card{background:#203d40;border-color:#2b4a4a}
.equity-card>div>span{color:#d7e9db;font-size:13px}
.equity-card .equity-sublabel{color:#a0c4b2;font-size:12px}
.equity-card strong{color:#bcf2d8}
.made-hand{border-color:#2a4546}
.made-hand strong{color:#bed5c3;font-size:14px}
.model-info,.model-info p{color:#a0c4b2;font-size:13px}
.precision-row label{color:#a0c4b2;font-size:13px}
.precision-row select{background-color:#1b3837;border-color:#355047;color:#accbb0;font-size:13px}
.precision-row select option{background:#1b3837;color:#edf6ee}
.result-detail{color:#a0c4b2;font-size:13px}
.result-panel .calculate-button{background:#203d40;color:#c5e6cf;border-color:#355448}
.result-panel .calculate-button:hover:not(:disabled){background:#2b5148;color:#edf6ee;border-color:#6d9b82}
.result-panel .calculate-button:disabled{background:#263d3f;border-color:#36564e;color:#8ba99c}
.result-save-share{display:grid;gap:8px;margin-top:9px}
.result-panel .save-button{margin-top:0;background:#bcf2d8;color:#1b493a;border-color:#bcf2d8;font-size:13px}
.result-panel .save-button:hover:not(:disabled){background:#d0ffe5;color:#1b493a;border-color:#d0ffe5}
.result-panel .save-button:disabled{background:#314848;color:#a0b5ab;border-color:#47605a;opacity:1}
.result-panel .share-button{width:100%;min-height:44px;background:#193634;color:#c4e5cf;border-color:#355448;font-size:13px}
.result-panel .share-button:hover:not(:disabled){background:#24463d;color:#edf6ee;border-color:#698d72}
.result-panel .share-button:disabled{background:#263d3f;color:#8ba99c;border-color:#36564e}
.mobile-result{background:#142b31;border-color:#3f665c;color:#bcf2d8}
#mobile-win{color:#bcf2d8}
#mobile-equity{color:#a0c4b2;font-size:13px}
.share-dialog{width:min(540px,calc(100vw - 24px))}
.share-dialog label{display:block;font-size:14px;font-weight:600;margin-bottom:8px}
.share-dialog input{width:100%;min-height:44px;border:1px solid #b4c9ba;border-radius:8px;padding:9px 12px;color:#19312a;background:#fff;font-size:14px}
.share-dialog input:focus-visible{outline:3px solid #63b99b;outline-offset:3px}
.share-dialog>p{font-size:13px;line-height:1.55;color:#52675d}
.share-dialog .dialog-bottom{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}
.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:25px}
.guide-card,.faq{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px}
.guide-card h2,.faq>h2{font-size:20px;line-height:1.3;margin-bottom:10px}
.guide-card p,.faq p{font-size:14px;color:#455c4d;line-height:1.65;margin:0}
.faq{margin-top:16px}
.faq details{border-top:1px solid #e5ece4;padding:9px 0}
.faq summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:15px;font-weight:600}
.faq details p{padding:0 0 13px}
.analytics-choice{border:0;background:none;color:#286444;text-decoration:underline;min-height:44px;padding:8px;font-size:13px}
.consent-panel{position:fixed;z-index:150;bottom:16px;left:16px;right:16px;max-width:680px;margin:auto;background:#fff;border:1px solid #b4d5bd;box-shadow:0 14px 42px #183e3128;border-radius:14px;padding:18px;color:#193a29}
.consent-panel p{margin:0 0 12px;font-size:14px;line-height:1.5}
.consent-panel a{color:#205d3e}
.consent-actions{display:flex;gap:10px;flex-wrap:wrap}
.consent-actions button{min-height:44px;padding:10px 14px;border:1px solid #347c51;background:#fff;color:#245c3e;border-radius:8px;font-size:14px;font-weight:600}
.consent-actions button:first-child{background:#246b45;color:#fff}
body:has(.consent-panel:not([hidden])) .mobile-result{bottom:calc(155px + env(safe-area-inset-bottom))}
@media(max-width:900px){.calculator-grid{grid-template-columns:minmax(0,1fr)}.mobile-result{bottom:calc(14px + env(safe-area-inset-bottom))}body{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.guide-grid{max-width:640px;margin-left:auto;margin-right:auto}.faq{max-width:640px;margin-left:auto;margin-right:auto}}
@media(max-width:680px){.game-pill{display:none}.intro-copy{max-width:600px;font-size:14px}.card-grid,.deck-row{grid-template-columns:repeat(7,minmax(0,1fr))}.suit-tabs{display:flex}.input-section{margin-left:20px;margin-right:20px}.input-bottom{padding-left:20px;padding-right:20px}.result-panel{padding:24px}.guide-grid{grid-template-columns:1fr;gap:12px}.guide-card,.faq{padding:19px}}
@media(max-width:520px){.main-wrap{padding-top:20px}.page-intro{margin-bottom:17px}h1{font-size:27px}.result-panel{padding:21px}.win-value{font-size:clamp(54px,17vw,75px)}.section-heading h2{font-size:15px}.field-note,.selection-tip p,.selection-tip p>span{font-size:12px}.guide-card h2,.faq>h2{font-size:18px}}
@media(max-width:420px){.card-grid,.deck-row{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media(max-width:360px){.card-grid,.deck-row{grid-template-columns:repeat(5,minmax(0,1fr))}.board-cards .card-slot{min-width:44px}.board-cards{gap:3px}.board-cards .card-slot{width:calc((100% - 18px)/5)}.board-cards .card-slot:nth-child(4),.board-cards .card-slot:nth-child(5){margin-left:0}}
