/* Poker v2.0. Page-scoped; no global heading, header or other-tool changes. */
#poker{--pkr-ink:#263d33;--pkr-muted:#6d786f;--pkr-line:#dce2d9;--pkr-accent:#365e4b;--pkr-soft:#f4f7f2;--pkr-red:#b34d4a;max-width:1200px;width:100%;padding:24px 28px 36px;margin:0 auto;box-sizing:border-box;color:var(--pkr-ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.65;text-align:left}
#poker *,#poker *::before,#poker *::after{box-sizing:border-box}
#poker [hidden]{display:none!important}
#poker h1,#poker h2,#poker h3,#poker p,#poker dl,#poker dd{margin:0;padding:0;border:0}
#poker button,#poker input,#poker select,#poker textarea{font:inherit;color:inherit}
#poker button{border:1px solid transparent;background:none;cursor:pointer;touch-action:manipulation}
#poker button:focus-visible,#poker select:focus-visible,#poker summary:focus-visible,#poker a:focus-visible{outline:2px solid #456e58;outline-offset:3px}
#poker button:disabled{opacity:.5;cursor:default}
#poker .pkr-intro{display:flex;align-items:baseline;gap:20px;margin:0 0 20px}
#poker h1{font-size:26px;line-height:1.4;font-weight:650;letter-spacing:0}
#poker .pkr-intro p{color:var(--pkr-muted);font-size:13px}
#poker h2{font-size:16px;font-weight:600}
#poker h3{font-size:14px;font-weight:600}
#poker .pkr-layout{display:grid;grid-template-columns:minmax(0,1fr) 318px;gap:20px;align-items:start}
#poker .pkr-panel{min-width:0;border:1px solid var(--pkr-line);border-radius:10px;padding:22px;background:#fff}
#poker .pkr-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}
#poker .pkr-inline{display:flex;align-items:center;gap:16px}
#poker .pkr-badge{border:1px solid var(--pkr-line);border-radius:4px;padding:2px 8px;color:var(--pkr-muted);font-size:12px;white-space:nowrap}
#poker .pkr-text{font-size:12px;padding:4px 0;color:var(--pkr-muted);white-space:nowrap;text-decoration:none}
#poker .pkr-text:hover{color:var(--pkr-accent);text-decoration:underline}
#poker .pkr-selected{display:grid;grid-template-columns:155px minmax(0,1fr);gap:26px}
#poker .pkr-group-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px;gap:6px}
#poker .pkr-target{font-weight:600;padding:4px 7px;border-radius:4px;margin-left:-7px;white-space:nowrap}
#poker .pkr-target.is-active{background:#eef4ed;color:var(--pkr-accent)}
#poker .pkr-target span{font-size:11px;font-weight:400;color:var(--pkr-muted);margin-left:5px}
#poker .pkr-slots{display:grid;gap:7px}
#poker #hand-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
#poker #flop-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
#poker .pkr-slot{height:88px;min-width:0;border:1px dashed #cfd8cc;background:#fafbf9;border-radius:6px;position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;line-height:1.2;padding:5px}
#poker .pkr-slot.is-focus{border:1.5px solid var(--pkr-accent);background:#f0f5ee;box-shadow:0 0 0 2px #eef3ea}
#poker .pkr-slot.is-filled{border:1px solid #cbd5c8;background:#fff}
#poker .pkr-slot.is-filled:hover{background:#f4f7f1;border-color:#55765c}
#poker .pkr-slot strong{font-size:29px;font-weight:600;font-variant-numeric:tabular-nums}
#poker .pkr-slot .pkr-symbol{font-size:21px;margin-top:3px}
#poker .pkr-slot .pkr-remove{position:absolute;right:4px;top:3px;color:#8b948c;font-size:12px}
#poker .pkr-slot .pkr-placeholder{font-size:11px;font-weight:400;color:#a0a99f}
#poker .pkr-slot .pkr-plus{font-size:23px;color:#b6c0b2;font-weight:300;margin-bottom:3px}
#poker .suit-h,#poker .suit-d{color:var(--pkr-red)}
#poker .suit-s,#poker .suit-c{color:#273c32}
#poker .pkr-deck-heading{margin:25px 0 10px;display:flex;align-items:center;justify-content:space-between;gap:10px}
#poker .pkr-deck-heading span{font-size:12px;color:var(--pkr-muted)}
#poker #card-selector{display:grid;gap:8px}
#poker .suit-row{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:5px}
#poker .card{position:relative;min-width:0;min-height:55px;padding:6px 0;border:1px solid var(--pkr-line);border-radius:5px;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.25;user-select:none}
#poker .card b{font-size:17px;letter-spacing:-.3px;font-weight:600;font-variant-numeric:tabular-nums}
#poker .card span{font-size:15px}
#poker .card:hover{background:var(--pkr-soft);border-color:#91a48b}
#poker .card.selected{background:#eef4eb;border-color:#99af95;box-shadow:inset 0 -2px 0 #91ac8a;opacity:.52}
#poker .pkr-suit-tabs{display:none}
#poker .pkr-card-help{font-size:12px;color:var(--pkr-muted);margin:10px 0 21px}
#poker #poker-form{border-top:1px solid #e6ebe2;padding-top:19px}
#poker .pkr-settings{display:grid;grid-template-columns:1fr 1fr;gap:16px}
#poker .pkr-settings label{font-size:12px;color:var(--pkr-muted)}
#poker select{width:100%;display:block;height:40px;border:1px solid var(--pkr-line);border-radius:5px;background:#fff;color:var(--pkr-ink);padding:0 9px;margin-top:7px;font-size:14px;max-width:100%}
#poker .pkr-folding{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;font-size:12px}
#poker .pkr-folding label{display:flex;align-items:center;gap:7px;cursor:pointer}
#poker input[type=checkbox]{accent-color:var(--pkr-accent);width:15px;height:15px;margin:0}
#poker .pkr-notice{background:#faf7ee;border:1px solid #e5ddc8;border-radius:5px;padding:9px 11px;font-size:12px;color:#76633f;margin-top:10px;overflow-wrap:anywhere}
#poker .pkr-run-row{display:flex;align-items:center;gap:10px;margin-top:20px;flex-wrap:wrap}
#poker .pkr-primary,#poker .pkr-secondary{height:42px;border-radius:6px;padding:8px 18px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;white-space:nowrap}
#poker .pkr-primary{background:var(--pkr-accent);border-color:var(--pkr-accent);color:#fff;min-width:124px}
#poker .pkr-primary:not(:disabled):hover{background:#294e3d}
#poker .pkr-secondary{border-color:var(--pkr-line)}
#poker #validation-message{font-size:12px;color:var(--pkr-muted);flex:1;min-width:140px}
#poker .pkr-storage{font-size:11px;color:#889185;margin-top:14px}
#poker .pkr-result{position:sticky;top:18px}
#poker .pkr-empty{padding:34px 0 40px;color:var(--pkr-muted);text-align:center}
#poker .pkr-empty-value{display:block;font-size:44px;font-weight:300;color:#a4b09f;margin-bottom:12px}
#poker .pkr-empty p{font-size:14px}
#poker .pkr-empty small{display:block;font-size:11px;margin-top:8px}
#poker .pkr-status{font-size:12px;color:var(--pkr-accent)}
#poker .pkr-result-context{font-size:12px;color:var(--pkr-muted);margin:3px 0 16px}
#poker progress{width:100%;height:4px;accent-color:var(--pkr-accent);margin:4px 0 14px;display:block}
#poker progress::-webkit-progress-bar{background:#edf1e8;border-radius:3px}#poker progress::-webkit-progress-value{background:var(--pkr-accent);border-radius:3px}
#poker .pkr-win{padding:2px 0 14px;display:flex;flex-direction:column;gap:3px}
#poker .pkr-win>span{font-size:13px;font-weight:500}
#poker .pkr-win small{font-size:11px;color:var(--pkr-muted);margin-left:4px;font-weight:400}
#poker .pkr-win strong{font-size:43px;font-weight:600;line-height:1.35;letter-spacing:-1px;font-variant-numeric:tabular-nums}
#poker .pkr-outcome-bar{display:flex;height:6px;border-radius:3px;overflow:hidden;background:#edf0e9}
#poker #bar-win{background:#648d71}#poker #bar-tie{background:#c8b983}#poker #bar-loss{background:#c5cdc4}
#poker .pkr-secondary-results{display:grid;grid-template-columns:1fr 1fr;gap:15px;padding:15px 0 19px;border-bottom:1px solid #e6ebe2}
#poker dt{font-size:12px;color:var(--pkr-muted)}#poker dd{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums;line-height:1.7}
#poker .pkr-dot{display:inline-block;width:6px;height:6px;border-radius:50%;margin-right:5px;background:#c5cdc4}#poker .pkr-dot.tie{background:#c8b983}
#poker .pkr-equity{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;font-size:13px}
#poker .pkr-equity strong{font-size:19px;font-weight:550;font-variant-numeric:tabular-nums}
#poker .pkr-result-note{font-size:11px;color:var(--pkr-muted);margin-top:10px;line-height:1.8}
#poker .pkr-details{margin-top:19px;border-top:1px solid var(--pkr-line);padding-top:14px}
#poker summary{cursor:pointer;list-style-position:inside;font-size:13px;color:var(--pkr-muted)}
#poker .pkr-scenario{border-top:1px solid #edf0e8;margin-top:12px;padding-top:12px;font-size:12px}
#poker .pkr-scenario:first-child{border-top:0;padding-top:0}
#poker .pkr-scenario h3{font-size:12px;margin-bottom:9px;color:var(--pkr-muted)}
#poker .pkr-scenario p{margin:5px 0}
#poker .pkr-mini-cards{display:flex;gap:4px;flex-wrap:wrap;margin:4px 0 8px}
#poker .pkr-mini-card{display:inline-block;border:1px solid var(--pkr-line);border-radius:4px;padding:2px 5px;background:#fff;font-weight:600;white-space:nowrap}
#poker #copy-fallback{margin-top:10px;width:100%;max-height:180px;min-height:120px;font-size:12px;padding:8px;border:1px solid var(--pkr-line);resize:vertical}
#poker .pkr-help{margin-top:22px;padding:16px 0;border-top:1px solid var(--pkr-line)}
#poker .pkr-help-content{max-width:850px;color:var(--pkr-muted);font-size:13px;padding:16px 0 0}
#poker .pkr-help-content h2{font-size:14px;color:var(--pkr-ink);margin:10px 0 8px}
#poker .pkr-help-content p{margin-bottom:9px}
#poker .pkr-range{font-family:ui-monospace,monospace;font-size:11px;word-break:break-word;line-height:1.9}
@media(max-width:1050px){#poker .pkr-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}#poker .pkr-panel{padding:18px}#poker .pkr-selected{grid-template-columns:125px minmax(0,1fr);gap:20px}#poker .pkr-slot{height:78px}#poker .card b{font-size:15px}#poker .suit-row{gap:3px}}
@media(max-width:870px){#poker .pkr-layout{grid-template-columns:1fr}#poker .pkr-result{position:static}#poker .pkr-empty{padding:8px 0 15px}#poker .pkr-empty-value{display:none}#poker .pkr-selected{grid-template-columns:155px minmax(0,1fr)}#poker .pkr-slot{height:84px}#poker .pkr-win strong{font-size:38px}}
@media(max-width:580px){#poker{padding:17px 16px 24px}#poker .pkr-intro{display:block;margin-bottom:16px}#poker h1{font-size:23px}#poker .pkr-intro p{margin-top:5px;font-size:12px}#poker .pkr-panel{padding:16px}#poker .pkr-panel-head{margin-bottom:14px}#poker .pkr-selected{grid-template-columns:1fr;gap:16px}#poker .pkr-hand-group{max-width:156px}#poker .pkr-slot{height:73px}#poker .pkr-slot strong{font-size:25px}#poker .pkr-slot .pkr-symbol{font-size:18px}#poker .pkr-group-heading{margin-bottom:7px}#poker .pkr-deck-heading{margin-top:21px}#poker .pkr-suit-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-bottom:9px}#poker .pkr-suit-tab{height:40px;border:1px solid var(--pkr-line);border-radius:5px;font-size:18px}#poker .pkr-suit-tab[aria-pressed=true]{background:#edf4e9;border-color:#93aa8f;box-shadow:inset 0 -2px 0 #76956e}#poker .suit-row{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}#poker .suit-row:not(.is-visible){display:none}#poker .card{min-height:51px}#poker .card b{font-size:17px}#poker .pkr-card-help{font-size:11px;margin-bottom:16px}#poker .pkr-settings{gap:10px}#poker select{font-size:16px;height:42px;padding-left:6px}#poker .pkr-run-row{margin-top:16px}#poker .pkr-primary{min-width:120px}#poker #validation-message{font-size:11px;min-width:120px}#poker .pkr-folding{gap:6px;font-size:11px}#poker .pkr-text{font-size:11px}#poker .pkr-status,#poker .pkr-result-context{font-size:12px}}
@media(prefers-reduced-motion:reduce){#poker *{scroll-behavior:auto!important;transition:none!important}}
