.modal-backdrop.reference-backdrop{z-index:150;padding:24px}.reference-panel{color:#19352a;background:#f6f4ed;border:1px solid #d5d9cc;border-radius:24px;flex-direction:column;width:min(1000px,100%);max-height:calc(100dvh - 48px);display:flex;overflow:hidden;box-shadow:0 24px 100px #0006}.reference-panel button{font:inherit;cursor:pointer}.reference-panel button:focus-visible,.reference-panel summary:focus-visible,.reference-matrix-scroll:focus-visible{outline-offset:3px;outline:3px solid #ac792f}.reference-header{flex:none;justify-content:space-between;align-items:center;padding:24px 28px 18px;display:flex}.reference-eyebrow{color:#6b735e;letter-spacing:.15em;margin:0 0 5px;font-size:11px;font-weight:700}.reference-header h2{margin:0;font-family:Songti SC,Georgia,serif;font-size:26px}.reference-close{color:#19352a;background:#fff9;border:1px solid #d3d8cc;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid;font-size:28px!important}.reference-nav{border-bottom:1px solid #dedfd3;flex:none;gap:6px;padding:0 28px 16px;display:flex}.reference-nav button{color:#586557;background:0 0;border:1px solid #0000;border-radius:10px;min-height:44px;padding:10px 18px;font-size:14px;font-weight:700}.reference-nav button[aria-pressed=true]{color:#fff;background:#164d39}.reference-content{overscroll-behavior:contain;padding:24px 28px 32px;overflow-y:auto}.reference-section-heading{justify-content:space-between;align-items:start;gap:12px;margin-bottom:18px;display:flex}.reference-section-heading h3{margin:0 0 6px;font-size:20px}.reference-section-heading p{color:#687362;margin:0;font-size:13px;line-height:1.6}.reference-format{white-space:nowrap;color:#72704f;border:1px solid #dcdcc8;border-radius:6px;padding:7px 10px;font-size:11px}.reference-rankings{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 30px;padding:0;list-style:none;display:grid}.reference-rankings li{background:#fffaf0;border:1px solid #dde0d3;border-radius:12px;gap:10px;padding:15px 12px;display:flex}.reference-rank-number{color:#8b815d;padding-top:2px;font:12px Georgia,serif}.reference-rank-body{min-width:0}.reference-rankings h4{margin:0 0 12px;font-size:15px}.reference-rankings p{color:#63705e;margin:12px 0 0;font-size:12px;line-height:1.7}.reference-cards{gap:4px;display:flex}.reference-cards>span{flex-direction:column;flex:none;align-items:center;gap:5px;display:flex}.reference-cards>span>small{color:#19352a;font-size:13px;font-weight:750}.reference-cards>span>small.reference-red-suit{color:#aa372c}.reference-panel .reference-cards .playing-card{border-radius:5px;flex:none;width:35px;min-width:0;height:49px}.reference-rule-list{background:#fffcf6;border:1px solid #daddd0;border-radius:12px;overflow:hidden}.reference-rule-list details+details{border-top:1px solid #e1e2d8}.reference-panel summary{cursor:pointer;padding:16px;font-size:14px;font-weight:650;line-height:1.5}.reference-rule-list p,.reference-method p{color:#53644f;margin:0;padding:0 16px 18px;font-size:13px;line-height:1.85}.reference-opponents{border:0;align-items:center;gap:14px;margin:0 0 20px;padding:0;display:flex}.reference-opponents legend{float:left;margin-right:14px;padding-top:12px;font-size:13px;font-weight:700}.reference-opponents>div{flex-wrap:wrap;gap:7px;display:flex}.reference-opponents button{color:#35563e;background:#fffaf3;border:1px solid #ced6c7;border-radius:8px;justify-content:center;align-items:center;gap:7px;min-width:56px;min-height:44px;padding:8px 12px;font-size:13px;display:flex}.reference-opponents button[aria-pressed=true]{background:#e0ebd8;border-color:#588266;box-shadow:inset 0 0 0 1px #588266}.reference-opponents small{font-size:10px}.reference-selected{background:#eaf0e2;border:1px solid #ced9c5;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:20px;display:flex}.reference-selected-hand{align-items:center;gap:16px;display:flex}.reference-selected-hand strong{font-size:24px;display:block}.reference-selected-hand small{color:#5e7357;margin-top:3px;font-size:11px;display:block}.reference-selected dl{gap:28px;margin:0;display:flex}.reference-selected dt{color:#587050;margin-bottom:6px;font-size:11px}.reference-selected dd{font-variant-numeric:tabular-nums;margin:0;font-size:22px;font-weight:650}.reference-selected .reference-main-value dd{color:#185233}.reference-equity-note{color:#687562;margin:13px 0 22px;font-size:12px;line-height:1.75}.reference-matrix-key{color:#3d583e;flex-wrap:wrap;gap:8px 20px;font-size:12px;display:flex}.reference-scroll-hint{color:#747c68;margin:10px 0;font-size:11px;line-height:1.6}.reference-matrix-scroll{border:1px solid #d5dccf;border-radius:10px;overflow-x:auto}.reference-matrix{border-collapse:separate;border-spacing:3px;table-layout:fixed;font-variant-numeric:tabular-nums;width:100%;min-width:780px}.reference-matrix th{color:#60725a;text-align:center;width:27px;height:28px;font-size:12px}.reference-matrix thead th:not(:first-child){width:auto}.reference-matrix tbody th{z-index:1;background:#f6f4ed;position:sticky;left:0}.reference-matrix td{padding:0}.reference-matrix button{background:var(--cell-color);color:#132e24;border:2px solid #0000;border-radius:5px;flex-direction:column;justify-content:center;align-items:center;gap:3px;width:100%;min-height:47px;padding:4px 1px;display:flex}.reference-matrix button b{font-size:12px}.reference-matrix button span{opacity:.88;font-size:10px}.reference-matrix button[aria-pressed=true]{border-color:#a47527;box-shadow:inset 0 0 0 1px #fff}.reference-matrix button:focus-visible{outline-offset:0}.reference-heat-legend{color:#677561;justify-content:flex-end;align-items:center;gap:8px;margin:12px 0 22px;font-size:11px;display:flex}.reference-heat-legend i{background:linear-gradient(90deg,#f2f8f5,#5ca385);border-radius:4px;width:100px;height:8px}.reference-heat-legend small{font-size:inherit;margin-left:6px}.reference-method{border:1px solid #dbdfd0;border-radius:10px}.reference-sources{margin-top:18px}.reference-source-links{flex-wrap:wrap;gap:8px 18px;display:flex}.reference-source-links a{color:#225b40;text-underline-offset:3px}.reference-source-links a:focus-visible{outline-offset:3px;outline:3px solid #ac792f}.home-reference-entry{color:#586b53;min-height:44px;font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;grid-column:1/-1;justify-self:center;align-items:center;gap:8px;padding:8px 16px;font-size:13px;display:inline-flex}.home-reference-entry:hover{color:#164d39;background:#e4e8db}.home-reference-entry:focus-visible{outline-offset:2px;outline:2px solid #527b5a}.home-reference-entry svg{fill:none;stroke:currentColor;stroke-width:1.7px;width:18px;height:18px}@media (max-width:850px){.reference-rankings{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-selected dl{gap:18px}}@media (max-width:599px){.modal-backdrop.reference-backdrop{padding:0}.reference-panel{border:0;border-radius:0;height:100dvh;max-height:100dvh}.reference-header{padding:max(18px, env(safe-area-inset-top)) 16px 14px}.reference-header h2{font-size:24px}.reference-nav{padding:0 16px 12px}.reference-nav button{flex:1;padding-inline:8px;font-size:13px}.reference-content{padding:18px 16px max(28px, env(safe-area-inset-bottom))}.reference-format{display:none}.reference-rankings{grid-template-columns:1fr;gap:10px}.reference-rankings li{padding:16px}.reference-panel .reference-cards .playing-card{width:40px;height:56px}.reference-cards{gap:6px}.reference-rankings h4{margin-bottom:10px}.reference-opponents{display:block}.reference-opponents legend{float:none;margin:0 0 9px;padding:0}.reference-opponents>div{flex-wrap:nowrap;gap:5px}.reference-opponents button{flex-direction:column;flex:1;gap:1px;min-width:0;padding:7px}.reference-selected{flex-direction:column;align-items:stretch;gap:16px;padding:16px}.reference-selected dl{justify-content:space-between;gap:12px}.reference-selected dd{font-size:23px}.reference-matrix-key{gap:8px 12px;font-size:11px}}
.commercial-loading{color:#c1d5b5;background:#091713;place-items:center;min-height:100dvh;font:14px -apple-system,sans-serif;display:grid}.commercial-badge{z-index:50;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:#dce5cf;cursor:pointer;background:#10241eee;border:1px solid #68815b;border-radius:30px;padding:9px 13px;font-size:11px;position:fixed;bottom:16px;right:16px;box-shadow:0 4px 18px #0005}.commercial-dialog{color:#f1eee1;background:#10241e;border:1px solid #3b5143;border-radius:14px;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px);margin:auto;padding:34px;font-family:-apple-system,BlinkMacSystemFont,PingFang SC,sans-serif;position:fixed;inset:0;overflow:auto;box-shadow:0 20px 100px #0009}.commercial-dialog::backdrop{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#020b09bb}.commercial-dialog h2{text-align:left;margin:10px 0 15px;font-size:24px;line-height:1.5}.commercial-dialog p{color:#a8b7a8;font-size:13px;line-height:1.9}.commercial-dialog .commercial-eyebrow{letter-spacing:.12em;color:#d7bb81;font-size:10px}.commercial-close{color:#a8b7a8;cursor:pointer;background:0 0;border:0;font-size:26px;position:absolute;top:10px;right:15px}.commercial-primary,.commercial-secondary{cursor:pointer;text-align:center;box-sizing:border-box;border-radius:6px;width:100%;padding:12px 16px;font-size:13px;text-decoration:none;display:block}.commercial-primary{color:#15291f;background:#c1d5b5;border:0;margin:8px 0 20px}.commercial-secondary{color:#e6eadf;background:0 0;border:1px solid #49634e;margin-top:12px}.commercial-secondary:disabled{opacity:.45;cursor:default}.commercial-account{overflow-wrap:anywhere}.commercial-dialog .commercial-error{color:#f0b6a2}.commercial-dialog .commercial-note{font-size:11px}.commercial-dismiss{text-underline-offset:4px;color:#a8b7a8;cursor:pointer;background:0 0;border:0;margin-top:8px;font-size:12px;text-decoration:underline}.commercial-dialog button:focus-visible,.commercial-badge:focus-visible,.commercial-dialog textarea:focus-visible,.commercial-dialog input:focus-visible{outline-offset:4px;outline:2px solid #d7bb81}@media (max-width:640px){.commercial-dialog{padding:28px 22px}.commercial-dialog h2{font-size:21px}.commercial-badge{bottom:max(10px,env(safe-area-inset-bottom));padding:7px 10px;font-size:10px;right:10px}}body:has(.game-page) .commercial-badge{display:none}
