:root{font:15px/1.6 system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:#28382d;background:#f8f9f5;--ink:#28382d;--muted:#7c887b;--line:#dce3d7;--lime:#d4f877;--mint:#e2ede4;--plum:#775d84}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:9px;background:#fffdf9;padding:10px 15px;font-size:12px;font-weight:650;transition:transform .15s,background .15s}button:hover:not(:disabled){background:#edf3e4;transform:translateY(-1px)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #849b56;outline-offset:4px}a{color:inherit;text-decoration:none}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1{font-size:clamp(25px,3vw,39px);letter-spacing:-1.2px;line-height:1.3}h2{font-size:24px;line-height:1.4;letter-spacing:-.5px}h3{font-size:15px}small{font-size:11px}select,input{border:1px solid var(--line);border-radius:7px;background:#fffdf9;padding:9px;max-width:100%}input{min-width:0}.primary{background:var(--lime);border-color:#c6eaa0;color:#35442b}.primary:hover:not(:disabled){background:#c4ed69}.quiet{background:transparent}.site-bar{height:84px;display:flex;justify-content:space-between;align-items:center;max-width:1280px;padding:0 30px;margin:auto;gap:20px}.brand{display:flex;align-items:center;gap:9px;font-size:21px;font-weight:750;letter-spacing:-.6px}.site-bar nav{display:flex;align-items:center;gap:20px;font-size:12px}.site-bar select{font-size:12px;width:143px}.shell{width:min(1220px,calc(100% - 64px));margin:25px auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.eyebrow{font-size:10px;color:var(--muted);letter-spacing:1.7px;font-weight:650;margin-bottom:10px}.subtitle{font-size:13px;color:var(--muted);margin-top:10px}.welcome{border:1px solid #d6e1d3;background:#e4eee6;border-radius:24px;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;min-height:480px}.welcome-copy{padding:42px 35px 35px 45px;align-self:center}.infinity{font:72px/1 Georgia,serif;color:#9ba77e;display:block;margin-bottom:15px}.welcome h2{font-size:31px;max-width:390px}.welcome p{color:#788872;font-size:13px;line-height:1.9;margin:12px 0 17px}.welcome .gift{font-size:11px;color:#617755}.seed-label{display:block;font-size:11px;color:#7c8870;margin-bottom:6px}#seed{width:280px;background:#f7faf1;font-size:12px}.welcome-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:17px}.welcome .cover-note{font-size:10px;margin-bottom:0}.cover-art{width:110%;height:100%;object-fit:cover;max-width:none;align-self:stretch}.game-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:22px;align-items:start}.scoreboard{border:1px solid var(--line);background:#fffdf8;border-radius:19px;padding:22px 20px;position:sticky;top:15px}.round-title{display:flex;flex-direction:column;gap:3px;font-size:12px;font-weight:650}.round-title>span:first-child{font-size:25px;letter-spacing:-.7px}.round-title>span:last-child{color:var(--muted)}.endless-label{font-size:11px;color:var(--plum);margin-top:9px}.goal{padding-block:22px 19px;margin-top:6px}.goal small,.round-score small{display:block;color:var(--muted);font-size:10px}.goal strong{font-size:29px;font-weight:600;letter-spacing:-1px;overflow-wrap:anywhere}.round-score{padding:14px 15px;background:#edf2e7;border-radius:12px}.round-score strong{font-size:27px;letter-spacing:-1px;overflow-wrap:anywhere}.progress-track{height:4px;background:#dce5cf;border-radius:10px;margin-top:10px;overflow:hidden}.progress-track i{display:block;height:100%;width:0;background:#90a762;transition:width .3s}.resources{margin:19px 0}.resources>div{display:flex;align-items:center;justify-content:space-between;padding:7px 0;font-size:10px;color:var(--muted)}.resources strong{font-size:21px;color:#47553c;line-height:1}.resources .coin-row strong{color:#ae8442}.boss-note{font-size:11px;line-height:1.7;background:#f1e5e2;padding:12px;border-radius:9px;color:#987066;margin-block:13px}.deck-button{width:100%;font-size:11px}.seed-note{font-size:9px;color:#9aa18f;margin-top:13px;overflow-wrap:anywhere}.table-area{min-width:0}.section-label{display:flex;align-items:center;justify-content:space-between;margin:0 2px 12px}.section-label h2{font-size:13px;letter-spacing:0}.section-label>span{font-size:10px;color:var(--muted)}.jester-rack{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-bottom:19px;direction:ltr}.jester{position:relative;background:#f3ebef;border:1px solid #dfd5e2;border-radius:12px;padding:9px;min-width:0}.jester.mint{background:#e4eee4;border-color:#ceddcd}.jester.coral{background:#f7e4dc;border-color:#ead1c4}.jester.blue{background:#e2ebf2;border-color:#cbdbe7}.jester.gold{background:#f5edce;border-color:#e8dab4}.jester.lavender{background:#eee5f2;border-color:#ded0e6}.jester svg{display:block;width:74px;height:82px;max-width:100%;margin:0 auto 4px}.jester h3{font-size:11px;line-height:1.3;text-align:center;margin-top:3px}.jester p{font-size:9px;color:#7f7c79;line-height:1.5;margin-top:6px;min-height:27px}.jester .jester-controls{display:flex;justify-content:center;gap:4px;margin-top:9px}.jester-controls button{padding:1px 7px;border:0;background:#ffffff60;font:12px system-ui;min-height:25px}.jester-controls .sell{font-size:8px;padding:3px 5px}.jester.empty{display:grid;place-items:center;min-height:170px;background:transparent;border:1px dashed #d8dfcf}.empty>span{font-size:25px;color:#ccd6c3}.empty>small{font-size:9px;color:#abb49e;text-align:center}.play-table{background:#e0ebe3;border:1px solid #cddcd0;border-radius:21px;padding:20px 23px 24px;position:relative;overflow:hidden}.play-table:before{content:"";position:absolute;inset:12px;border:1px solid #d0ddd1;border-radius:12px;pointer-events:none}.felt-top{position:relative;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#90a58c}.felt-mark{font-size:22px}.score-preview{position:relative;text-align:center;margin:7px auto 23px;max-width:630px}.hand-name{font:600 25px/1.4 Georgia,"Microsoft YaHei",serif;color:#4a6252;display:block}.score-preview>small{font-size:10px;color:#97a58c}.equation{display:flex;align-items:center;justify-content:center;gap:12px;margin:13px 0 8px;direction:ltr}.equation small{display:block;font-size:9px;color:#839080}.equation b{font:650 25px/1.2 ui-monospace,monospace;display:block;overflow-wrap:anywhere}.equation .chips,.equation .mult{min-width:100px;background:#f6faf1;padding:11px;border-radius:10px;border:1px solid #d4e0cc}.equation .chips b{color:#6d94a4}.equation .mult b{color:#b37975}.equation .points{min-width:100px;padding:11px}.equation .points b{color:#617b4e}.multiply,.equals{color:#a4b49c;font-size:19px}#preview-note{font-size:10px;color:#9c6d64;min-height:18px}.hand-heading{position:relative;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:#8d9f85;margin-bottom:12px}.sort-tools{display:flex;gap:8px}.sort-tools button{border:0;background:transparent;font-size:9px;font-weight:400;padding:3px}.hand{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;direction:ltr;position:relative;padding-top:17px;min-height:160px;align-content:start}.playing-card{--suit:#45584a;background:#fffdf5;border:1px solid #dbdcca;border-radius:10px;color:var(--suit);position:relative;aspect-ratio:.67;padding:8px 7px;box-shadow:0 3px 0 #c6d3bc;transition:transform .18s,box-shadow .18s,border-color .18s;text-align:start;min-width:0}.playing-card.red{--suit:#d9857b}.playing-card:hover:not(:disabled){background:#fffffa;transform:translateY(-6px)}.playing-card.chosen{transform:translateY(-15px);border-color:#95a862;box-shadow:0 5px 0 #a7bb79,0 9px 18px #778b5020}.playing-card.chosen:hover:not(:disabled){transform:translateY(-18px)}.playing-card .rank{font:bold 18px/1 Georgia,serif;display:block}.playing-card .small-suit{font:15px/1 Georgia,serif;display:block;margin-top:2px}.playing-card .large-suit{position:absolute;inset:37% 0 auto;font:35px/1 Georgia,serif;text-align:center}.playing-card .bottom-rank{position:absolute;right:7px;bottom:7px;transform:rotate(180deg);font:bold 15px/1 Georgia,serif}.playing-card .card-bonus{position:absolute;inset:auto 2px 5px;font-size:8px;text-align:center;color:#ad8d3f}.playing-card.enhanced{background:#fff4d4;border-color:#dcc786}.playing-card.scoring{outline:1px solid #91a36a;outline-offset:-5px}.play-actions{position:relative;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:25px}.play-actions button{min-height:43px;min-width:120px}.play-actions .quiet{min-width:0;font-size:10px}.last-hand{padding:20px 6px;margin-top:5px}.last-hand h2{font-size:11px;font-weight:500;letter-spacing:0;color:var(--muted);margin-bottom:10px}.last-hand p{font-size:11px;color:#9ba491}.score-step{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#7c8771;padding:5px 0;border-bottom:1px solid #e7ebdf}.score-step strong{font-family:ui-monospace,monospace;font-size:11px;color:#6b7c5d}.score-step.final{font-weight:650;color:#4c6545;border:0}.shop{background:#f4eedf;border:1px solid #e7dcc2;border-radius:20px;padding:24px}.shop-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.shop .eyebrow{font-size:9px;letter-spacing:0}.shop h2{font-size:25px}.shop-heading .primary{max-width:170px}.reward{font-size:11px;color:#9a855e;margin:12px 0 22px}.offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:stretch}.offer{background:#fffdf7;border:1px solid #e8e0cd;border-radius:12px;padding:13px;display:flex;flex-direction:column;gap:10px;min-width:0}.offer .jester{border:0}.offer>p{font-size:10px;color:#a0937b;line-height:1.6;flex:1}.offer>button{font-size:10px;padding:9px 8px;margin-top:auto;background:#ede4ce;border-color:#dfd0ad}.offer.sold{opacity:.5}.offer .upgrade-symbol{font:36px/1.3 Georgia;color:#b1a06d}.shop-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-top:20px}.shop-actions button{font-size:10px;background:#fffaf0}.shop-actions label{display:flex;flex-direction:column;font-size:9px;gap:4px;color:#988766}.shop-actions select{font-size:11px;max-width:170px}.ending{border:1px solid #d9ddcb;background:#f0efdf;padding:36px;text-align:center;border-radius:20px;margin-top:22px}.ending h2{font-size:31px}.ending p{max-width:610px;margin:12px auto 22px;color:#8f927b;font-size:13px}.ending .infinity{color:#a9aa7a}.ending-stats{display:flex;gap:35px;justify-content:center;margin:23px auto;flex-wrap:wrap}.ending-stats small{display:block;font-size:10px;color:#979d86}.ending-stats strong{font-size:27px;font-weight:550;overflow-wrap:anywhere}.ending-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}.save-note{text-align:center;margin:23px 0 8px;font-size:10px;color:#a5ad9a}.error-note{font-size:11px;color:#ad7561;text-align:center;min-height:18px}.rules{margin-top:22px;border-top:1px solid var(--line);padding-top:23px}.rules summary{font-size:13px;font-weight:650;cursor:pointer}.rules>p{font-size:12px;color:#8c9682;line-height:1.95;margin:18px 0;max-width:950px}.hand-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.hand-guide>div{border:1px solid var(--line);border-radius:7px;padding:10px 13px;font-size:11px}.hand-guide small{color:#9da68f;display:block;font-size:9px;margin-top:3px}footer{display:flex;justify-content:space-between;gap:20px;align-items:center;border-top:1px solid var(--line);margin-top:30px;padding:25px 0;color:#9ba28e;font-size:10px}footer p{max-width:720px}footer a{white-space:nowrap;text-decoration:underline}dialog{border:1px solid #d9dfd0;border-radius:18px;padding:28px;background:#f9faf2;color:var(--ink);width:min(900px,calc(100% - 28px));max-height:85vh;box-shadow:0 40px 120px #1e2e2630}dialog::backdrop{background:#263c305c;backdrop-filter:blur(5px)}#restart-dialog{max-width:440px}#restart-dialog p{color:var(--muted);font-size:13px;margin-block:14px 22px}dialog form{display:flex;gap:10px;flex-wrap:wrap}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:23px}.dialog-heading h2{font-size:21px}.deck-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:7px;direction:ltr}.deck-grid .playing-card{border-radius:6px;padding:6px 4px}.deck-grid .rank{font-size:14px}.deck-grid .large-suit{font-size:22px}.deck-grid .bottom-rank{display:none}.deck-grid .small-suit{font-size:10px}.deck-grid .card-bonus{font-size:7px}.pop{animation:score-pop .35s ease-out}@keyframes score-pop{0%{transform:scale(.97);opacity:.5}100%{transform:scale(1);opacity:1}}[hidden]{display:none!important}[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] .eyebrow{letter-spacing:0}[dir=rtl] .jester>h3,[dir=rtl] .jester>p{direction:rtl}[lang=pt-BR] .brand,[lang=ar] .brand{font-size:18px}.scoreboard,.table-area,.offer,.jester{min-width:0}
@media(max-width:1000px){.game-layout{grid-template-columns:180px minmax(0,1fr);gap:15px}.scoreboard{padding:18px 14px}.play-table{padding:16px 16px 20px}.playing-card .rank{font-size:16px}.playing-card .large-suit{font-size:28px}.jester{padding:7px}.jester svg{height:65px}.jester p{font-size:8px}.jester h3{font-size:10px}.jester-rack{gap:6px}.jester.empty{min-height:155px}.equation{gap:8px}.equation b{font-size:22px}.hand{gap:5px;min-height:130px}.play-actions{margin-top:18px}.play-actions button{min-width:90px}.offers{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-copy{padding:30px}.welcome h2{font-size:27px}}
@media(max-width:700px){.site-bar{min-height:76px;height:auto;padding:17px 20px;gap:12px;flex-wrap:wrap}.brand{font-size:19px}.site-bar nav{gap:15px;font-size:11px}.site-bar select{font-size:11px;width:120px}.shell{width:calc(100% - 32px);margin-top:18px}.page-heading{align-items:start;margin-bottom:22px}.page-heading h1{font-size:26px}.page-heading .eyebrow{font-size:8px;letter-spacing:1px}.subtitle{font-size:11px}.page-heading>.quiet{padding:8px;font-size:9px;white-space:nowrap}.welcome{grid-template-columns:1fr;min-height:0;border-radius:18px}.welcome-copy{padding:28px 25px}.welcome h2{font-size:26px}.welcome .infinity{font-size:58px}.welcome p{font-size:12px}.welcome .gift{font-size:10px}.welcome-actions{gap:8px}.welcome button{font-size:11px}.cover-art{height:260px;width:100%;object-fit:cover;object-position:center 50%}.game-layout{display:flex;flex-direction:column;gap:17px}.scoreboard{position:static;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:7px 16px;padding:15px 16px;border-radius:14px}.round-title{grid-column:1;gap:0}.round-title>span:first-child{font-size:21px}.round-title>span:last-child{font-size:9px}.goal{grid-column:2;grid-row:1;padding:0;margin:0;text-align:end}.goal strong{font-size:25px}.goal small,.round-score small{font-size:9px}.round-score{grid-column:1;grid-row:2/4;padding:8px 12px}.round-score strong{font-size:24px}.resources{grid-column:2;grid-row:2/4;margin:0;display:flex;justify-content:space-between;gap:8px}.resources>div{display:flex;flex-direction:column-reverse;gap:7px;padding:8px 0;font-size:8px}.resources strong{font-size:22px}.deck-button{grid-column:2;grid-row:4;padding:4px;font-size:9px}.seed-note{grid-column:1;grid-row:4;font-size:8px;margin:0;align-self:center}.endless-label{grid-column:1/-1;margin:0;font-size:9px}.boss-note{grid-column:1/-1;font-size:10px;margin:0;padding:8px}.table-area{width:100%}.section-label h2{font-size:11px}.section-label>span{font-size:9px}.jester-rack{gap:5px;margin-bottom:15px}.jester{padding:5px;border-radius:8px}.jester svg{height:48px;width:42px;margin-bottom:2px}.jester h3{font-size:8px;min-height:21px;line-height:1.3}.jester p{font-size:7px;min-height:0;line-height:1.5;overflow-wrap:anywhere}.jester.empty{min-height:130px}.empty>small{font-size:7px}.empty>span{font-size:20px}.jester .jester-controls{gap:2px;margin-top:5px;flex-wrap:wrap}.jester-controls button{padding:0 5px;font-size:10px;min-height:24px}.jester-controls .sell{width:100%;font-size:7px;line-height:1.4}.play-table{padding:12px 12px 19px;border-radius:15px}.play-table:before{inset:7px}.felt-top{font-size:8px}.felt-mark{font-size:18px}.score-preview{margin:8px 0 10px}.hand-name{font-size:22px}.score-preview>small{font-size:8px}.equation{gap:7px;margin:10px 0 7px}.equation .chips,.equation .mult{min-width:63px;padding:9px 7px}.equation .points{min-width:74px;padding:9px 0}.equation b{font-size:19px}.equation small{font-size:7px}.multiply,.equals{font-size:15px}#preview-note{font-size:8px;min-height:14px}.hand-heading{font-size:8px;align-items:start;gap:5px;margin-bottom:8px}.sort-tools{gap:2px}.sort-tools button{font-size:7px;padding:2px 3px}.hand{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;min-height:235px;padding:13px 2px 0}.playing-card{aspect-ratio:.74;border-radius:8px;padding:8px;box-shadow:0 2px 0 #c6d3bc}.playing-card .rank{font-size:21px}.playing-card .small-suit{font-size:14px}.playing-card .large-suit{font-size:35px;top:34%}.playing-card .bottom-rank{font-size:16px}.playing-card.chosen{transform:translateY(-9px);box-shadow:0 4px 0 #a7bb79}.playing-card.chosen:hover:not(:disabled){transform:translateY(-10px)}.playing-card:hover:not(:disabled){transform:translateY(-3px)}.play-actions{gap:7px;margin-top:19px;justify-content:space-between}.play-actions button{min-width:0;flex:1;font-size:10px;padding:10px 8px}.play-actions .quiet{font-size:9px;flex:0 1 auto}.last-hand{padding:18px 3px}.last-hand h2{font-size:10px}.score-step{font-size:9px}.score-step strong{font-size:10px}.last-hand p{font-size:10px}.shop{padding:19px 14px;border-radius:15px}.shop h2{font-size:22px}.shop .eyebrow{font-size:8px}.shop-heading .primary{font-size:10px;padding:9px;max-width:120px}.reward{font-size:9px;line-height:1.7;margin-bottom:15px}.offers{gap:9px}.offer{padding:9px;gap:8px}.offer .jester{padding:8px}.offer .jester svg{height:78px;width:74px}.offer .jester h3{font-size:12px;min-height:0}.offer .jester p{font-size:9px;margin-top:8px}.offer h3{font-size:12px}.offer>p{font-size:9px}.offer>button{font-size:9px}.shop-actions{gap:10px;align-items:stretch}.shop-actions button{font-size:9px;flex:1}.shop-actions label{width:100%}.shop-actions select{max-width:100%}.ending{padding:26px 20px}.ending h2{font-size:26px}.ending p{font-size:12px}.ending-stats{gap:20px}.ending-stats strong{font-size:23px}.ending-actions button{font-size:11px}.hand-guide{grid-template-columns:repeat(2,minmax(0,1fr))}.hand-guide>div{font-size:10px;padding:9px}.hand-guide small{font-size:8px}.rules>p{font-size:11px}.rules summary{font-size:12px}footer{align-items:start;font-size:9px}.save-note{font-size:9px}.deck-grid{grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}dialog{padding:20px 15px}.dialog-heading h2{font-size:18px}.dialog-heading button{font-size:10px}.deck-grid .playing-card{aspect-ratio:.63;padding:4px}.deck-grid .rank{font-size:12px}.deck-grid .small-suit{font-size:9px}.deck-grid .large-suit{font-size:19px}.deck-grid .card-bonus{font-size:6px}#restart-dialog{padding:25px}[lang=ar] .brand,[lang=pt-BR] .brand{font-size:17px}}
.playing-card{align-content:start}.playing-card .rank{position:absolute;top:8px;left:8px}.playing-card .small-suit{position:absolute;top:29px;left:8px;margin:0}.welcome h2{text-wrap:balance}
@media(max-width:700px){.jester-rack{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:2px 1px 8px;gap:8px}.jester-rack>.jester{flex:0 0 104px;min-height:180px;scroll-snap-align:start;padding:9px}.jester-rack .jester svg{height:66px;width:60px}.jester-rack .jester h3{font-size:10px;min-height:0;margin-bottom:7px}.jester-rack .jester p{font-size:9px;line-height:1.6}.jester-rack .jester-controls button{min-height:30px;min-width:30px}.jester-rack .jester-controls .sell{font-size:9px;width:100%}.jester-rack .empty>small{font-size:9px}.deck-grid .playing-card .rank{top:5px;left:4px}.deck-grid .playing-card .small-suit{top:19px;left:4px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
