@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Caslon+Display&display=swap');
:root{--cream:#f7f6f0;--ink:#203c32;--muted:#777e74;--line:#dedfd5;--gold:#d3ae60;--green:#214d3b}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:14px}button,input{font:inherit}button,a,input,summary{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button,a,summary{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #bb8d3f;outline-offset:4px}a{color:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(1px)}.topbar{max-width:1160px;margin:auto;min-height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 36px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:12px;font:30px 'Libre Caslon Display',Georgia,serif}.brand small{display:block;font:9px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:4px}.brand-icon{font:33px Georgia;background:var(--ink);color:#f4e4bc;width:46px;height:51px;border-radius:9px;display:grid;place-items:center}.header-actions{display:flex;gap:18px;align-items:center}.text-button,.icon-button{border:0;background:transparent;color:var(--ink);padding:10px}.icon-button{border:1px solid var(--line);border-radius:50%;width:39px;height:39px}.text-button:hover,.icon-button:hover{background:#e9ece2}.app-shell main{max-width:1088px;margin:auto;padding:38px 36px 16px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;margin:0 0 11px;color:#78816e}h1,h2{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;margin:0}h1{font-size:43px;letter-spacing:-.9px;line-height:1.12}.intro p:not(.eyebrow){color:var(--muted);margin:12px 0 0;font-size:14px}.mode-badge{white-space:nowrap;font-size:11px;border:1px solid var(--line);border-radius:30px;padding:10px 13px;display:flex;align-items:center;gap:7px}.mode-badge>span{height:6px;width:6px;background:#7d9671;border-radius:50%}.progress-panel{display:flex;align-items:center;gap:28px;background:#fffefa;border:1px solid var(--line);border-radius:12px;padding:15px 24px;margin-bottom:20px}.round-label{min-width:83px}.round-label>span{font-size:9px;letter-spacing:1.4px;display:block;color:var(--muted);margin-bottom:4px}.round-label strong{font-size:22px;font-weight:500}.round-label small{font-size:13px;color:#90968c}.rounds{list-style:none;padding:0;margin:0;display:flex;justify-content:center;gap:10px;flex:1}.rounds li{width:33px;height:33px;border:1px solid #e0e3d9;background:#f6f7f0;color:#939b8c;border-radius:50%;display:grid;place-items:center;font-size:11px}.rounds li.active{border:1.5px solid var(--green);color:var(--green);box-shadow:0 0 0 3px #e5eadf;background:#fff}.rounds li.won{color:#9d772b;background:#faf0d4;border-color:#e7cf99}.rounds li.lost{color:#aa6559;background:#faece8;border-color:#edcec5}.score{display:flex;align-items:center;gap:7px;color:#a17e37;border-left:1px solid var(--line);padding-left:23px}.score b{font-size:20px;color:var(--ink);font-weight:500}.score span{color:var(--muted);font-size:11px}.felt{background:radial-gradient(ellipse at 50% 20%,#315d48 0%,#224e3d 55%,#193f32 100%);border:1px solid #193b2d;border-radius:15px;color:#f4f0df;position:relative;padding:22px 28px 0;overflow:hidden;box-shadow:inset 0 0 80px #102f242a}.felt:before{content:'';pointer-events:none;position:absolute;inset:8px;border:1px solid #ffffff13;border-radius:10px}.felt-top{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#c5d3be}.felt-top>span:first-child{display:flex;align-items:center;gap:8px}.felt-tag{font-size:9px;letter-spacing:1.8px;border:1px solid #ffffff25;border-radius:4px;padding:6px 9px}.cards{display:flex;align-items:flex-start;justify-content:center;gap:25px;padding:26px 0 18px;min-height:318px}.cards figure{margin:0;width:132px;text-align:center;position:relative;animation:deal .22s ease-out}.cards img{width:100%;display:block;aspect-ratio:207/394;object-fit:fill;border:5px solid #fffdf4;border-radius:8px;box-shadow:0 7px 18px #081e284d;user-select:none}.cards figcaption{font-size:11px;color:#d7dfcc;margin-top:12px}.card-value{display:block;font-size:11px;color:#f0d390;margin-top:4px}.navigation{display:flex;justify-content:center;align-items:center;gap:30px;margin:3px 0 22px}.navigation>div{text-align:center;min-width:105px}.navigation b{font-size:13px;font-weight:500}.navigation b span{color:#a6bdaa;font-weight:400}.navigation small{display:block;font-size:10px;color:#b4c5ad;margin-top:5px}.nav-button{width:41px;height:41px;border-radius:50%;border:1px solid #d6e2c94a;background:#ffffff08;color:#e8eedf}.nav-button:hover:not(:disabled){background:#ffffff1f}.nav-button:disabled{opacity:.22}.layer-progress{height:3px;margin:0 -28px;background:#ffffff0b}.layer-progress span{display:block;height:100%;background:#cbb279;transition:width .2s}.under-table{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:var(--muted);padding:12px 4px 23px}.under-table>span{display:flex;align-items:center;gap:5px}.answer-panel{background:#fffefa;border:1px solid var(--line);border-radius:12px;padding:24px 27px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.answer-copy h2{font-size:25px}.answer-copy p:last-child{font-size:11px;margin:8px 0 0;color:var(--muted)}.answer-copy .eyebrow{font-size:9px;margin-bottom:8px}.answer-panel form{display:flex;align-items:flex-end;gap:12px}.answer-fields{display:flex;align-items:flex-end;gap:12px}label>span,legend{display:block;font-size:10px;color:var(--muted);margin-bottom:7px}input{width:88px;height:43px;border:1px solid #cdd3c7;border-radius:6px;background:#fff;color:var(--ink);padding:8px 12px;font-size:17px}fieldset{border:0;margin:0;padding:0}legend{padding:0}.fractions{display:flex;border:1px solid #d9ddcf;border-radius:6px;overflow:hidden;height:43px}.fractions button{border:0;background:#f9faf5;color:#6c7866;padding:0 12px;border-right:1px solid #d9ddcf;font-size:14px}.fractions button:last-child{border-right:0}.fractions button.selected{background:#e4ebdd;color:#264c32;box-shadow:inset 0 -2px #54764b}.primary{border:0;background:var(--green);color:#fffdf2;min-height:43px;padding:12px 17px;border-radius:6px;font-size:12px;font-weight:500;white-space:nowrap}.primary:hover:not(:disabled){background:#316649}.submit{font-size:11px}.feedback{flex-basis:100%;display:flex;align-items:center;gap:14px;padding:19px 18px;border-radius:8px;margin-top:2px}.success{background:#edf3e7}.failure{background:#f8ede6}.feedback-icon{color:#a58032}.failure .feedback-icon{color:#aa6254}.feedback h3{font-size:13px;margin:0 0 5px}.feedback p{font-size:12px;margin:0;color:#6e7967}.feedback .primary{margin-left:auto}.error{color:#a44737;flex-basis:100%;font-size:12px}.solution{flex-basis:100%;font-size:12px;border-top:1px solid var(--line);padding-top:17px}.solution summary{cursor:pointer;list-style:none;display:flex;gap:8px;align-items:center;font-weight:600}.solution>p{line-height:1.6;color:var(--muted);max-width:600px}.solution-list{max-height:280px;overflow:auto}.solution-list>div{display:grid;grid-template-columns:60px 1fr 60px;gap:10px;padding:9px 0;border-bottom:1px solid #e9eae1;font-size:11px}.solution-list b{text-align:right}.solution-total{display:flex;justify-content:space-between;padding-top:16px}footer{display:flex;justify-content:space-between;gap:20px;color:#858b7e;font-size:10px;padding:23px 2px}footer a{text-decoration:none;border-bottom:1px solid #bfc5b8}.modal-backdrop{position:fixed;inset:0;background:#0f2e26a3;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:20px;z-index:20}.modal{max-height:90dvh;overflow:auto;position:relative;width:480px;max-width:100%;background:var(--cream);border-radius:16px;padding:34px;box-shadow:0 15px 80px #08231d55}.modal-close{position:absolute;right:16px;top:16px}.modal h2{font-size:32px;margin-bottom:22px;padding-right:16px}.modal>p{font-size:12px;line-height:1.7;color:#6a7565}.value-list>div{display:flex;justify-content:space-between;gap:20px;padding:11px 0;border-bottom:1px solid var(--line);font-size:13px}.value-list b{white-space:nowrap}.example{background:#e7eddf;border-radius:8px;padding:17px;margin-top:20px;font-size:12px}.example p{line-height:1.8;margin-bottom:0}.modal .credits{font-size:10px}.modal .primary{margin-top:12px}.compact{width:420px}.reset-actions{display:flex;justify-content:flex-end;gap:10px;align-items:center}.final-panel{text-align:center;background:#fffefa;border:1px solid var(--line);border-radius:14px;padding:38px}.trophy{background:#f6ecd4;color:#a17e37;border-radius:50%;width:70px;height:70px;display:grid;place-items:center;margin:0 auto 19px}.final-panel h2{font-size:48px}.final-panel>p:not(.eyebrow){color:var(--muted);line-height:1.6}.final-panel>.primary{margin:10px 0 25px}.table-wrap{max-width:660px;margin:auto;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-weight:500;color:var(--muted);font-size:10px}td,th{padding:12px 10px;border-bottom:1px solid var(--line)}.result-good{color:#a17e37}.result-bad{color:#ad6555}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}@keyframes deal{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(min-width:1250px){.app-shell main{padding-top:42px}.cards figure{width:145px}.cards{min-height:344px}.intro{margin-bottom:32px}}
@media(max-width:960px){.mode-badge{display:none}.answer-panel{align-items:flex-start}.answer-panel form{flex:1;justify-content:flex-end}.answer-copy{flex-basis:100%}.answer-panel form{justify-content:space-between}.rounds{gap:7px}.rounds li{width:29px;height:29px}.progress-panel{gap:18px}.score span{display:none}.score{padding-left:15px}}@media(max-width:600px){.topbar{padding:0 20px;min-height:82px}.brand{font-size:26px}.brand-icon{width:39px;height:45px}.brand small{font-size:8px;letter-spacing:1.6px}.header-actions{gap:5px}.text-button{font-size:12px;padding:8px}.app-shell main{padding:26px 17px 12px}.intro{margin-bottom:23px}h1{font-size:35px;max-width:280px}.intro p:not(.eyebrow){font-size:12px;line-height:1.6;max-width:300px;margin-top:10px}.eyebrow{font-size:9px;letter-spacing:1.6px}.progress-panel{padding:14px 14px 16px;flex-wrap:wrap;gap:11px;margin-bottom:14px}.round-label{min-width:0;display:flex;align-items:center;gap:9px}.round-label>span{margin:0;font-size:8px}.round-label strong{font-size:17px}.round-label small{font-size:11px}.rounds{order:3;flex-basis:100%;gap:0;justify-content:space-between;padding-top:4px}.rounds li{width:26px;height:26px;font-size:10px}.rounds svg{width:14px}.score{margin-left:auto;border:0;padding:0}.score b{font-size:16px}.score svg{width:15px}.score span{display:inline;font-size:10px}.felt{padding:17px 14px 0;border-radius:12px}.felt-top{font-size:9px}.felt-tag{font-size:7px;letter-spacing:1.2px;padding:5px 6px}.cards{gap:11px;padding:26px 0 19px;min-height:240px}.cards figure{width:min(27%,110px)}.cards img{border-width:3px;border-radius:5px}.cards figcaption{font-size:9px;margin-top:10px;min-height:22px}.navigation{gap:30px;margin:0 0 20px}.navigation b{font-size:12px}.navigation small{font-size:9px}.nav-button{height:39px;width:39px}.layer-progress{margin:0 -14px}.under-table{font-size:9px;line-height:1.5;padding:10px 3px 18px}.keyboard-hint{display:none!important}.answer-panel{padding:21px 18px;gap:18px}.answer-copy h2{font-size:25px;max-width:245px}.answer-panel form{display:block}.answer-fields{gap:14px;justify-content:space-between}.answer-fields label{flex:1}.answer-fields input{width:100%;min-width:60px}.fractions button{padding:0 15px}.submit{margin-top:14px;width:100%;font-size:12px}.feedback{padding:15px 12px;gap:10px;flex-wrap:wrap}.feedback h3{font-size:12px}.feedback p{font-size:11px}.feedback>div:nth-child(2){flex:1}.feedback .primary{width:100%;margin-top:7px}.feedback-icon svg{width:22px}.solution-list>div{grid-template-columns:43px 1fr 45px;font-size:10px}.solution{font-size:11px}footer{font-size:9px;line-height:1.6;flex-direction:column;align-items:center;gap:5px;text-align:center}.modal{padding:28px 23px}.modal h2{font-size:29px;margin-top:10px}.modal .eyebrow{max-width:230px}.final-panel{padding:28px 15px}.final-panel h2{font-size:42px}.final-panel>p{font-size:12px}td,th{padding:11px 5px;font-size:10px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
