:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#15352e;background:#f6f1e6}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}main{max-width:1120px;margin:auto;padding:32px 22px 48px}.page-top{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:22px}.eyebrow{text-transform:uppercase;letter-spacing:.15em;color:#466e62;font-size:12px;font-weight:750;margin:0 0 5px}h1,h2{font-family:Georgia,serif;font-weight:normal}h1{font-size:clamp(30px,4vw,44px);margin:0 0 4px}.page-top p:last-child{margin:0;color:#52685f}.top-actions{display:flex;gap:18px;align-items:center}.home-link,.text-button{color:#215c4e;font-size:15px}.text-button{border:0;background:none;text-decoration:underline;padding:10px}.game-shell{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.75fr);gap:16px;align-items:stretch}.table,.lesson{border-radius:22px;min-width:0}.table{background:radial-gradient(circle at 50% 48%,#236754,#0d3934 78%);color:#f8f1db;padding:20px 26px;min-height:505px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 15px 40px #15352e22}.table-heading,.seat-label{display:flex;justify-content:space-between;align-items:center}.table-heading>span{font:normal 27px Georgia,serif}.mode-switch{border:1px solid #8cae9c;border-radius:100px;padding:3px;display:flex}.mode-switch button{border:0;border-radius:100px;padding:7px 15px;color:#e4efe5;background:transparent;font-weight:700;font-size:14px}.mode-switch [aria-pressed=true]{background:#f6e8bd;color:#184539}.seat-label{font-size:14px;font-weight:700;letter-spacing:.02em;margin-bottom:8px}.seat-label span{font-weight:400;color:#b9d4c8}.opponent-area,.player-area{text-align:center;align-self:center}.opponent-area .seat-label,.player-area .seat-label{justify-content:center;gap:6px}.board-area{text-align:center}.board-area .seat-label{justify-content:center}.cards{display:flex;justify-content:center;gap:8px}.card{display:flex;width:68px;height:96px;border-radius:9px;background:#fffdf5;border:2px solid #ece1c9;box-shadow:0 4px 0 #082b2844;color:#17342f;padding:5px;justify-content:space-between;text-align:left;flex-direction:column;flex:none}.card.red{color:#bf4543}.card>span{font-weight:850;font-size:20px;line-height:1}.card small{font-size:13px;margin-left:2px}.card b{font-size:27px;align-self:end;line-height:1}.card.back{background:repeating-linear-gradient(45deg,#1a5b56,#1a5b56 5px,#2d7770 5px,#2d7770 10px);border:4px solid #e5dcc1;align-items:center;justify-content:center;font-size:32px;color:#d9c78b}.card.placeholder{background:#ffffff0a;border:2px dashed #a3c1af;color:#d6e3d8;align-items:center;justify-content:center;font-size:27px;box-shadow:none}.showdown{min-height:21px;margin:5px 0 0;text-align:center;color:#f8df9b;font-weight:800}.lesson{background:#fffdf8;border:1px solid #dddccc;box-shadow:0 9px 26px #1a403314;padding:26px;display:flex;flex-direction:column}.equity-top{display:flex;justify-content:space-between;align-items:baseline;gap:12px}.equity-top span{font-size:18px;font-weight:700}.equity-top strong{font-size:46px;color:#1b715a;line-height:1}.meter{height:11px;background:#e4e9db;border-radius:20px;overflow:hidden;margin-top:18px}.meter span{display:block;height:100%;background:#d69c3d}.assumption{font-size:13px;line-height:1.4;color:#596a62;margin:10px 0 22px}.breakdown{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.breakdown div{background:#eef3e9;border-radius:12px;padding:13px 8px;text-align:center}.breakdown span{display:block;font-size:13px;color:#52695e}.breakdown strong{font-size:22px;color:#143f34}.explanation{font-size:16px;line-height:1.55;margin:23px 0}.explanation strong{color:#195b48}.primary{background:#1c6753;border:0;border-radius:11px;color:#fff9df;min-height:48px;padding:11px 18px;font-weight:750}.primary:hover{background:#15513f}.next{width:100%;margin-top:auto}.quiz{margin-bottom:16px;padding:16px;background:#f2f0df;border-radius:14px}.quiz label{font-weight:750;display:block}.guess-row{display:flex;gap:10px;align-items:center;margin:15px 0}.guess-row input{width:100%;accent-color:#1c6753}.guess-row output{min-width:45px;font-weight:800}.quiz-feedback{background:#fff1c8;border-radius:10px;padding:12px;margin:0 0 18px}.history-panel{display:flex;gap:24px;align-items:center;justify-content:space-between;margin-top:17px;background:#e9ebe1;border-radius:16px;padding:17px 22px}.history-panel h2{font-size:23px;margin:0 0 4px}.history-panel p{font-size:13px;margin:0;color:#5c6b61}.history-panel ol{display:flex;gap:7px;list-style:none;margin:0;padding:0}.history-panel li{min-width:92px;border-radius:10px;border:1px solid #b6c6b9;padding:9px 11px;display:grid;gap:3px;font-size:12px;background:#fffefa}.history-panel li.current{border:2px solid #367760}.history-panel strong{font-size:20px}.method{max-width:810px;margin-top:22px;font-size:14px;line-height:1.55;color:#52645b}.method summary{cursor:pointer;text-decoration:underline;color:#225646}.method p{margin:8px 0}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d49631;outline-offset:3px}
@media(max-width:760px){body>.hs-site-header{display:none}main{padding:12px 12px 24px}.page-top{margin-bottom:10px;align-items:center}.page-top h1{font-size:25px}.page-top p:last-child,.eyebrow{display:none}.top-actions{gap:4px}.home-link,.text-button{font-size:13px;padding:8px}.game-shell{display:block}.table{min-height:0;height:clamp(390px,46dvh,500px);padding:13px 10px;border-radius:17px;box-shadow:none}.table-heading>span{font-size:23px}.mode-switch button{padding:7px 12px}.card{width:clamp(48px,13.5vw,63px);height:clamp(70px,19vw,89px);padding:4px}.card>span{font-size:17px}.card b{font-size:23px}.cards{gap:5px}.seat-label{font-size:12px;margin-bottom:5px}.showdown{font-size:13px}.lesson{margin-top:10px;padding:17px;border-radius:16px}.equity-top strong{font-size:38px}.explanation{margin:14px 0}.assumption{margin:8px 0 12px}.history-panel{display:block;padding:13px;margin-top:10px}.history-panel h2{font-size:20px}.history-panel ol{margin-top:10px}.history-panel li{flex:1;min-width:0}.method{padding:0 5px}}
@media(max-width:360px){.page-top h1{font-size:22px}.card{width:47px;height:68px}.mode-switch button{padding:6px 9px}.history-panel li{padding:6px}}

.action-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:auto}.action-row:has(> button[hidden]){grid-template-columns:1fr}.action-row button{min-width:0;width:100%}.action-row button[hidden]{display:none}.action-row .next{margin:0}.secondary{background:#edf3e9;border:2px solid #367760;border-radius:11px;color:#205b49;min-height:48px;padding:9px 13px;font-weight:750}.secondary:hover{background:#deeadc}.fold-advice{border-top:1px solid #e1e8d9;margin:0 0 18px;padding-top:14px;font-size:14px;line-height:1.45;color:#36574b}.fold-advice strong{display:block;color:#174a3b;margin-bottom:3px}.method ul{padding-left:21px;margin:8px 0 14px}.method li{margin:5px 0}@media(max-width:760px){.action-row{gap:8px}.action-row button{font-size:15px;padding:9px 7px}.fold-advice{font-size:13px}}

/* Keep the action row in one place as lesson copy and quiz state change. */
@media(min-width:761px){.game-shell{height:660px}.table{min-height:0;height:100%}.lesson{height:100%}}
.lesson #answer{min-height:0;overflow-y:auto}.lesson .action-row{flex:none}
@media(max-width:760px){.lesson{height:clamp(390px,46dvh,500px)}.lesson #answer{overflow-y:auto}}

/* Give history its own row below the fixed-height game panels. */
@media(min-width:761px){.game-shell{height:auto;grid-template-rows:660px}.game-shell>.table,.game-shell>.lesson{height:660px;min-height:0;overflow:hidden}}
.history-panel{display:block;margin-top:24px}.history-panel ol{margin-top:12px;flex-wrap:wrap}

@media(max-width:760px){.game-shell>.table,.game-shell>.lesson{height:clamp(550px,56dvh,620px)}}

/* Four permanent street slots keep the history still as cards are dealt. */
.history-panel ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.history-panel li{min-width:0}.history-panel li.upcoming{background:#f4f5ef;color:#687c70;border-style:dashed}.history-panel li.upcoming strong{color:#687c70}
@media(max-width:480px){.history-panel ol{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Align the running percentages with the lesson panel, left to right. */
.history-panel li.upcoming{visibility:hidden}
@media(min-width:761px){.history-panel{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(300px,.75fr);gap:16px;align-items:center;padding:17px 0}.history-panel>div{padding-left:22px}.history-panel ol{grid-column:2;margin:0;padding:0 22px 0 26px}.history-panel li{padding:9px 6px;font-size:11px}.history-panel strong{font-size:18px}}

@media(min-width:761px){.game-shell,.history-panel{grid-template-columns:minmax(0,1.25fr) minmax(320px,.8fr)}}

@media(min-width:761px){.lesson{padding:22px}.explanation{font-size:15px;line-height:1.45;margin:16px 0}.fold-advice{font-size:13px;line-height:1.4;margin-bottom:10px}}

/* The whole headline and each odds tile use the same native hover help as history. */

/* Keep mobile hand actions and history immediately after the table. */
.mobile-action-row{display:none}
@media(max-width:760px){main{display:flex;flex-direction:column}.page-top{order:0}.game-shell{display:contents}.game-shell>.table{order:1}.mobile-action-row{order:2;display:grid;margin-top:10px;padding:14px;background:#fffdf8;border:1px solid #dddccc;border-radius:16px}.history-panel{order:3}.game-shell>.lesson{order:4;height:auto;min-height:0}.lesson .action-row{display:none}.lesson #answer{overflow:visible}.method{order:5}}

/* Show the current hand’s equity history sooner on narrow screens. */
@media(max-width:760px){.game-shell>.table{height:clamp(380px,46dvh,440px)}.history-panel ol{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;max-width:430px}.history-panel li{aspect-ratio:1;padding:6px 4px;align-content:center;font-size:11px;overflow:hidden}.history-panel li span{line-height:1.1;overflow-wrap:anywhere}.history-panel strong{font-size:18px}}
@media(max-width:360px){.history-panel li{font-size:10px;padding:5px 3px}.history-panel strong{font-size:16px}}

/* Reserve a little more room for the result once the computer is revealed. */
@media(max-width:760px){.game-shell>.table:has(.showdown:not(:empty)){height:auto;min-height:calc(clamp(380px,46dvh,440px) + 48px);padding-bottom:18px}}
