@layer theme {
@font-face{font-family:Balatro;src:local('Menlo'),local('Consolas');font-display:swap}
:root{--ink:#f6f0da;--muted:#a4beb1;--yellow:#f5c75d;--blue:#329ed5;--red:#ee6259;--green:#3a9973;--dark:#142b29;--line:#64837845;--card-w:clamp(66px,7.3vw,102px);--card-h:calc(var(--card-w)*95/71);color-scheme:dark;font-family:'PingFang SC','Microsoft YaHei',system-ui,sans-serif;color:var(--ink);font-size:14px}
*{box-sizing:border-box}body{margin:0;background:#12352f;min-width:320px;min-height:100svh}body::before{content:'';position:fixed;inset:0;background:radial-gradient(ellipse at 52% 40%,#39857422 0,transparent 68%),repeating-radial-gradient(ellipse at 80% 100%,transparent 0 17px,#66a18a04 18px 22px);pointer-events:none}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.36;filter:saturate(.45)}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--yellow);outline-offset:4px}button{touch-action:manipulation}a{color:var(--yellow);text-decoration:none}button:active:not(:disabled){transform:translateY(3px);box-shadow:none}h1,h2,h3,p{margin:0}button svg{pointer-events:none}button,.panel,.card,.blind-option{transition:transform .15s,background .15s,opacity .15s}input{min-width:0;background:#102c27;border:1px solid #779b795c;border-radius:6px;padding:12px;color:var(--ink)}.number{font-family:Balatro,monospace;font-variant-numeric:tabular-nums}.eyebrow{font:14px Balatro,monospace;letter-spacing:2px;color:var(--yellow)}.muted{color:var(--muted)}.small{font-size:12px;line-height:1.7}.btn{border:1px solid #ffffff15;border-radius:8px;background:#294e43;box-shadow:0 4px 0 #092d24;padding:12px 22px;font-weight:750;min-height:44px;white-space:nowrap}.btn:hover:not(:disabled){filter:brightness(1.12)}.btn.yellow{background:var(--yellow);color:#2e3625;box-shadow:0 4px 0 #a1782d}.btn.blue{background:var(--blue);box-shadow:0 4px 0 #1b5d81}.btn.red{background:var(--red);box-shadow:0 4px 0 #8b3435}.btn.ghost{background:#17382e66;border:1px solid #779a804f;box-shadow:none}.btn.tiny{min-height:34px;padding:7px 12px;font-size:12px}.btn.wide{width:100%}.icon-btn{border:1px solid var(--line);border-radius:7px;background:#203e34;padding:8px 12px;min-height:38px}.row{display:flex;gap:10px;align-items:center}.spread{justify-content:space-between}.wrap{flex-wrap:wrap}.panel{background:#152e2bc4;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 0 #0b2b2280}.topbar{height:70px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:10px 28px;background:#0d2b2466}.brand{display:flex;align-items:center;gap:15px}.brand img{width:96px;height:47px;object-fit:contain;image-rendering:pixelated}.brand-divider{height:24px;width:1px;background:#7e9c7140}.brand-title{font-weight:700;font-size:13px;letter-spacing:2px}.topbar .sub{color:var(--muted);font:12px Balatro,monospace;letter-spacing:1px}.top-actions{display:flex;gap:8px;align-items:center}.pill{border:1px solid #8bb19b38;background:#11312688;padding:6px 11px;border-radius:30px;font-size:11px;color:#c2d5c5}.dot{display:inline-block;width:6px;height:6px;background:#79c9a3;border-radius:50%;margin-right:6px}.table-light{position:fixed;z-index:-1;width:90vw;height:90vw;top:-45vw;left:5vw;border-radius:50%;background:#7bcc8730;filter:blur(120px);pointer-events:none}.grain{position:fixed;z-index:20;inset:0;opacity:.045;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' opacity='.8' filter='url(%23n)'/%3E%3C/svg%3E")}.menu{max-width:1120px;margin:auto;min-height:calc(100svh - 70px);padding:65px 38px 28px;display:grid;grid-template-columns:1.05fr 1fr;gap:42px;align-content:center}.menu-art{position:relative;min-height:400px;display:flex;align-items:center;justify-content:center;flex-direction:column}.big-logo{width:min(100%,410px);filter:drop-shadow(0 8px 0 #071d1b6b);image-rendering:pixelated;position:relative;z-index:2}.hero-cards{height:190px;display:flex;align-items:center;justify-content:center;margin-top:26px}.hero-cards .card{--card-w:99px;margin:0 -6px;filter:drop-shadow(0 8px 0 #071d1b33)}.hero-cards .card:nth-child(1){transform:rotate(-13deg) translateY(13px)}.hero-cards .card:nth-child(2){transform:rotate(-5deg)}.hero-cards .card:nth-child(3){transform:rotate(8deg) translateY(-3px)}.hero-cards .card:nth-child(4){transform:rotate(18deg) translateY(15px)}.menu-copy .eyebrow{margin-bottom:16px}.menu-copy h1{font-size:34px;letter-spacing:2px;line-height:1.4}.menu-copy .intro{color:#bad1c2;line-height:1.9;margin:14px 0 28px;font-size:14px;max-width:400px}.new-game-box{padding:23px}.box-heading{font-weight:700;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.box-heading span{font:13px Balatro;color:var(--muted);letter-spacing:1px}.deck-picker{display:flex;align-items:center;gap:18px;margin-bottom:19px}.deck-picker .card{--card-w:64px;flex-shrink:0;transform:rotate(-6deg)}.deck-picker select{padding:9px 32px 9px 10px;color:var(--ink);border:1px solid #6f96774d;background:#16392f;border-radius:6px;font-weight:650;width:100%;min-height:40px}.deck-info{min-width:0;flex:1}.deck-info p{margin-top:9px;color:#b9d2bd;font-size:12px;line-height:1.6}.seed-row{display:flex;gap:10px;margin-bottom:16px}.seed-row input{flex:1;font-size:12px;letter-spacing:1px}.seed-row span{display:flex;align-items:center;font:14px Balatro;color:var(--muted)}.menu-footer{grid-column:1/-1;border-top:1px solid var(--line);padding-top:20px;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px;line-height:1.8}.menu-footer a{color:#c5d5b5}.workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:22px;max-width:1500px;margin:0 auto;padding:22px 28px 18px;min-height:calc(100svh - 70px)}.sidebar{display:flex;flex-direction:column;gap:14px}.round-panel{padding:17px 15px}.blind-label{text-align:center;color:#dbe6cb;padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:12px;font-weight:700}.blind-label .blind-chip{margin-right:7px;vertical-align:middle}.target-label{text-align:center;font-size:11px;color:var(--muted);margin-bottom:5px}.target-value{font:40px Balatro;text-align:center;color:var(--red);text-shadow:0 3px 0 #0003}.reward{text-align:center;color:var(--yellow);margin-top:6px;font-size:12px}.score-panel{padding:16px;text-align:center}.score-label{font-size:11px;color:var(--muted)}.score-value{font:42px Balatro;margin:4px 0 12px;line-height:1;color:#fff8e3}.progress-track{height:5px;background:#0d241e;border-radius:4px;overflow:hidden}.progress-track i{height:100%;display:block;background:var(--yellow);transition:width .5s}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:13px}.stat{background:#0f282280;border-radius:7px;padding:9px 5px;text-align:center}.stat label{font-size:11px;color:#a8bdab;display:block}.stat strong{font:29px Balatro;line-height:1.1;display:block;margin-top:3px}.stat.hands strong{color:#63bdec}.stat.discards strong{color:#f2877d}.stat.cash strong{color:var(--yellow)}.stat.ante strong{color:#f6edcb}.side-tools{padding:14px;display:flex;flex-direction:column;gap:9px}.seed-display{font:12px Balatro;letter-spacing:1px;text-align:center;color:#91ae99;padding:4px}.game-main{min-width:0;display:flex;flex-direction:column;gap:16px}.inventory{display:grid;grid-template-columns:minmax(0,1fr) 210px;gap:14px}.inventory-zone{padding:12px 14px;min-height:146px;min-width:0;background:#15332b85;border:1px solid var(--line);border-radius:10px}.section-label{display:flex;align-items:center;justify-content:space-between;font-size:11px;letter-spacing:1px;font-weight:700;color:#adc9b4;margin-bottom:10px}.section-label span{color:#7ea38d;font:14px Balatro}.joker-row,.consumable-row{display:flex;gap:9px;min-height:100px;align-items:center}.inventory .card{--card-w:65px;cursor:pointer;border:0;flex-shrink:0}.empty-slot{width:65px;height:87px;border:1px dashed #779e7c36;border-radius:7px;display:flex;align-items:center;justify-content:center;color:#63836b;font:21px Balatro;background:#112f272a}.empty-note{font-size:12px;color:#779d85;line-height:1.8}.table-stage{flex:1;position:relative;min-height:235px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;border:1px solid #7a9e7529;border-radius:13px;background:#24544225}.table-stage::before{content:'♠';font-size:155px;color:#b6d4a305;position:absolute;top:50%;left:50%;transform:translate(-50%,-55%);pointer-events:none}.stage-heading{align-self:flex-start;margin-bottom:18px;z-index:1}.stage-heading .eyebrow{font-size:12px;margin-bottom:6px}.stage-heading h2{font-size:23px;letter-spacing:1px}.stage-heading p{color:var(--muted);font-size:12px;margin-top:7px;line-height:1.7}.blind-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:15px;position:relative}.blind-option{border:1px solid #7c9a7545;background:#183a30c9;border-radius:10px;overflow:hidden;text-align:center;opacity:.6}.blind-option.current{opacity:1;border-color:#e7cc7670;box-shadow:0 0 0 2px #e7cc7612}.blind-option.passed{opacity:.35}.blind-option .blind-type{padding:10px;background:#2a4f3d;font-weight:750;font-size:13px;border-bottom:1px solid #d2e5a915}.blind-option:nth-child(2) .blind-type{background:#52623b}.blind-option:nth-child(3) .blind-type{background:#784939}.blind-content{padding:14px 10px}.blind-content .blind-chip{margin-bottom:9px}.blind-content .number{font-size:32px;display:block;color:var(--red);margin:7px 0}.blind-content .desc{min-height:38px;color:#b9c9ad;font-size:11px;line-height:1.6}.blind-content .reward{margin:8px 0 16px}.blind-content .btn{padding:10px;width:100%;font-size:12px}.skip{border:0;background:transparent;color:#c2b77c;padding:12px 3px 0;display:block;width:100%;font-size:11px}.skip span{color:#9bac89;display:block;font-size:10px;margin-top:4px}.blind-chip{width:45px;height:45px;display:inline-block;background-image:url('assets/BlindChips.webp');image-rendering:pixelated;background-size:945px 1395px}.play-summary{position:relative;text-align:center;width:100%}.hand-type{font-size:25px;letter-spacing:2px;min-height:36px}.level-tag{font:13px Balatro;color:var(--yellow);display:inline-block;background:#132f285c;border:1px solid #a4a66045;border-radius:4px;padding:4px 7px;margin-left:8px;vertical-align:middle}.math{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 12px}.math .term{border-radius:7px;padding:8px 18px;min-width:110px;font:36px Balatro;line-height:1.1}.math .term small{display:block;font:10px system-ui;letter-spacing:2px;margin-bottom:2px;color:#e6f2e0b3}.math .chips{background:#247da7;box-shadow:0 4px 0 #0f526f}.math .mult{background:#cf534b;box-shadow:0 4px 0 #813b34}.math .times{font:30px Balatro;color:#e9cc8b}.last-score{font:30px Balatro;color:var(--yellow);margin:7px 0}.last-score small{font:11px system-ui;color:var(--muted);margin-right:8px}.scored-cards{display:flex;justify-content:center;gap:6px;margin:15px auto 6px;min-height:90px}.scored-cards .card{--card-w:63px;opacity:.48}.scored-cards .card.scoring{opacity:1;box-shadow:0 0 0 2px #f4cf67,0 5px 0 #0a291d4a}.stage-hint{font-size:12px;color:#92b598;margin-top:14px;text-align:center;line-height:1.8}.hand-zone{padding:14px 0 0;position:relative}.hand-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.hand-topline .section-label{margin:0}.sort-buttons{display:flex;align-items:center;gap:5px;color:#92af97;font-size:11px}.sort-buttons button{background:#1d4538;border:1px solid #799c6c45;border-radius:5px;padding:5px 9px;font-size:11px}.sort-buttons button.active{background:#d7bd66;color:#273c2a}.hand-cards{display:flex;justify-content:center;align-items:flex-end;min-height:calc(var(--card-h) + 25px);padding:18px 10px 8px;max-width:100%;position:relative;isolation:isolate}.hand-cards .card{margin-left:clamp(-25px,-1.5vw,-10px);cursor:pointer;flex-shrink:0;transform:translateY(0) rotate(var(--tilt,0deg));transform-origin:bottom center;box-shadow:0 5px 0 #08281f70,0 0 0 1px #10271f}.hand-cards .card:first-child{margin-left:0}.hand-cards .card:hover{transform:translateY(-9px) rotate(0deg);z-index:5}.hand-cards .card.selected{transform:translateY(-19px) rotate(0deg);box-shadow:0 0 0 3px var(--yellow),0 6px 0 #0d261f66;z-index:6}.card{width:var(--card-w);height:var(--card-h);border:0;padding:0;display:inline-block;position:relative;border-radius:calc(var(--card-w)*.065);background-color:#d8d9c9;box-shadow:0 4px 0 #0c271d60;image-rendering:pixelated;overflow:hidden;text-align:left;flex-shrink:0}.sprite{position:absolute;inset:0;display:block;background-repeat:no-repeat;pointer-events:none;image-rendering:pixelated}.card.foil::after,.card.holo::after,.card.polychrome::after{content:'';position:absolute;inset:0;pointer-events:none;mix-blend-mode:screen;opacity:.34;background:linear-gradient(130deg,transparent,#7df8ff88,transparent 65%)}.card.holo::after{background:linear-gradient(135deg,#f88a,#fa83,#6ffa,#b8fa)}.card.polychrome::after{background:linear-gradient(130deg,#ff4684,#f8df43,#1dffbf,#5783ff,#cf50ff);mix-blend-mode:color;opacity:.52}.card.debuffed{filter:grayscale(.85) brightness(.6)}.card-mark{position:absolute;bottom:4px;left:3px;right:3px;padding:2px;background:#122d22dd;color:#eee3b0;text-align:center;font-size:9px;border-radius:2px;pointer-events:none;line-height:1.3}.card.selected::before{content:'✓';position:absolute;right:2px;top:2px;width:18px;height:18px;border-radius:50%;background:var(--yellow);color:#213d2b;text-align:center;font-weight:900;font-size:12px;z-index:2}.hand-actions{display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 0 5px}.hand-actions .btn{min-width:132px}.selected-counter{font:16px Balatro;text-align:center;color:#a8c09e;min-width:60px}.keyboard-hint{font-size:10px;color:#6f9b82;text-align:center;margin-top:10px;line-height:1.7}.deck-stack{display:flex;align-items:center;gap:5px;font:14px Balatro;color:#9bb69b}.deck-mini{width:21px;height:29px;background:#b54a42;border:2px solid #d5cfb0;border-radius:3px;box-shadow:2px 1px 0 #20342a,4px 2px 0 #9dac8a}.shop-head{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;margin-bottom:17px}.shop-head h2{font-size:25px;letter-spacing:3px}.shop-head p{font-size:11px;color:var(--muted);margin-top:7px}.shop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;width:100%;z-index:1}.shop-section{background:#142f25a6;border:1px solid var(--line);padding:13px;border-radius:9px}.shop-section:first-child{grid-column:1/-1}.shop-items{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.shop-card{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:83px;max-width:120px;flex:1}.shop-card .card{--card-w:69px;cursor:pointer}.shop-card strong{font-size:11px;text-align:center;line-height:1.5;font-weight:600}.price-tag{font:23px Balatro;color:var(--yellow)}.shop-card .btn{padding:7px 17px;font-size:11px;min-height:32px}.sold-out{padding:30px 0;align-self:center;text-align:center;color:#75937d;font-size:12px}.shop-footer{display:flex;justify-content:space-between;width:100%;gap:10px;margin-top:18px}.pack-grid{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;position:relative;width:100%;margin:18px 0}.pack-grid .shop-card{max-width:145px}.pack-grid .card{--card-w:86px}.pack-grid .btn{font-size:12px}.cashout{position:relative;width:min(100%,420px);padding:20px}.cashout h2{font-size:26px;letter-spacing:4px;text-align:center;margin-bottom:22px}.payout-row{display:flex;justify-content:space-between;gap:15px;padding:10px 0;border-bottom:1px dashed #8aac7e38;color:#d2ddbd;font-size:13px}.payout-row .number{font-size:22px;color:var(--yellow)}.payout-total{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.payout-total .number{font-size:45px;color:var(--yellow)}.end-screen{text-align:center;position:relative;padding:20px}.end-screen h2{font-size:38px;letter-spacing:6px;color:var(--yellow);margin:12px 0 15px}.end-screen p{color:var(--muted);line-height:1.9}.end-stat{display:flex;justify-content:center;gap:25px;margin:28px 0}.end-stat .number{font-size:34px;display:block;color:#ecdfb3}.end-stat label{font-size:11px;color:var(--muted)}.game-foot{display:flex;gap:10px;justify-content:space-between;color:#608c72;font-size:10px;padding-top:4px}.game-foot button{padding:0;border:0;background:none;color:#8cab8f;font-size:10px}dialog{border:1px solid #7d9b6c66;border-radius:14px;background:#193c32;color:var(--ink);padding:0;width:min(92vw,620px);max-height:88svh;box-shadow:0 25px 100px #071b15b0}dialog::backdrop{background:#071f18bc;backdrop-filter:blur(6px)}.modal-head{padding:19px 22px 15px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:#193c32;z-index:2}.modal-head h2{font-size:19px;letter-spacing:1px}.modal-body{padding:21px;overflow:auto}.modal-actions{display:flex;gap:9px;justify-content:flex-end;margin-top:20px;flex-wrap:wrap}.detail-card{display:flex;gap:25px;align-items:flex-start}.detail-card .card{--card-w:110px;flex-shrink:0}.detail-copy{flex:1}.detail-copy h3{font-size:22px;margin-bottom:9px}.detail-copy p{font-size:13px;color:#c7d9bb;line-height:1.9;margin-bottom:8px}.detail-copy .source{font:11px monospace;color:#789c7b;word-break:break-all;margin-top:15px}.edition-label{display:inline-block;border:1px solid #889c7245;border-radius:4px;padding:3px 7px;color:#d8cf99;font-size:11px;margin-bottom:9px}.help-grid{display:grid;gap:18px}.help-grid h3{font-size:14px;color:var(--yellow);margin-bottom:7px}.help-grid p{font-size:12px;color:#c1d0b8;line-height:1.9}.table{width:100%;border-collapse:collapse;font-size:12px}.table th,.table td{text-align:left;padding:10px 7px;border-bottom:1px solid var(--line)}.table th{color:var(--muted);font-weight:400}.table td:nth-child(n+2){font-family:Balatro;font-size:19px}.scroll-deck{display:grid;grid-template-columns:repeat(auto-fill,minmax(55px,1fr));gap:8px}.scroll-deck .card{--card-w:55px;cursor:pointer}.log-item{font-size:12px;padding:10px 0;border-bottom:1px solid var(--line);color:#c7d7ba}.trace-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.trace-row .number{font-size:20px;white-space:nowrap}.card-collection{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.card-collection .shop-card{max-width:none}.card-collection .card{--card-w:76px;cursor:pointer}.catalog-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}#toast{position:fixed;bottom:calc(22px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,15px);background:#ece4be;color:#263d2b;padding:13px 23px;max-width:90vw;border-radius:8px;z-index:100;box-shadow:0 6px 25px #061e1670;opacity:0;pointer-events:none;transition:.2s;text-align:center;font-size:13px}#toast.show{opacity:1;transform:translate(-50%,0)}.pop{animation:pop .32s ease-out}@keyframes pop{0%{transform:scale(.88)}70%{transform:scale(1.04)}100%{transform:scale(1)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}@media(min-width:1350px){.workspace{gap:28px;padding-top:30px}.table-stage{min-height:290px}.inventory{grid-template-columns:minmax(0,1fr) 230px}.inventory .card{--card-w:73px}.inventory-zone{min-height:160px}.joker-row,.consumable-row{min-height:110px}}
@media(max-width:1050px){.workspace{grid-template-columns:194px minmax(0,1fr);padding:17px;gap:16px}.inventory{grid-template-columns:minmax(0,1fr) 165px;gap:10px}.inventory .card{--card-w:55px}.empty-slot{width:55px;height:74px}.joker-row,.consumable-row{gap:6px;min-height:79px}.inventory-zone{padding:10px;min-height:121px}.blind-options{gap:9px}.blind-content{padding:12px 8px}.target-value{font-size:35px}.table-stage{padding:16px}.hand-actions .btn{min-width:110px;padding:11px 14px}.topbar{padding:10px 18px}}
@media(max-width:700px) and (orientation:portrait){:root{--card-w:clamp(57px,16vw,80px)}.topbar{height:57px;padding:7px 12px}.brand img{width:75px;height:38px}.brand-title{font-size:11px;letter-spacing:1px}.brand-divider,.topbar .sub,.topbar .pill,.topbar .fullscreen{display:none}.top-actions .icon-btn{font-size:11px;padding:6px 9px;min-height:34px}.menu{padding:23px 20px;min-height:calc(100svh - 57px);grid-template-columns:1fr;gap:25px}.menu-art{min-height:0}.big-logo{width:220px}.hero-cards{height:115px;margin-top:10px}.hero-cards .card{--card-w:67px}.menu-copy .eyebrow{font-size:11px;margin-bottom:6px}.menu-copy h1{font-size:25px}.menu-copy .intro{font-size:12px;margin:7px 0 17px;line-height:1.8}.new-game-box{padding:17px}.deck-picker{margin-bottom:14px}.menu-footer{padding-top:14px;flex-direction:column;gap:5px;font-size:10px}.workspace{display:flex;flex-direction:column;gap:13px;padding:12px;min-height:calc(100svh - 57px)}.sidebar{display:grid;grid-template-columns:1fr 1.28fr;gap:9px;order:0}.round-panel{padding:11px 8px}.blind-label{font-size:12px;padding-bottom:7px;margin-bottom:6px;white-space:nowrap}.blind-label .blind-chip{width:24px;height:24px;background-size:504px 744px;vertical-align:middle}.target-label{font-size:10px}.target-value{font-size:32px}.reward{font-size:10px;margin-top:3px}.score-panel{padding:10px 8px}.score-value{font-size:29px;margin:3px 0 5px}.score-label{font-size:10px}.stats-grid{grid-template-columns:repeat(4,1fr);gap:3px;margin-top:7px}.stat{padding:5px 2px}.stat label{font-size:9px}.stat strong{font-size:23px}.side-tools{display:none}.game-main{gap:12px}.inventory{grid-template-columns:minmax(0,1fr) 98px;gap:7px}.inventory-zone{padding:8px;min-height:93px}.inventory .card{--card-w:43px}.section-label{font-size:9px;letter-spacing:.4px;margin-bottom:6px}.section-label span{font-size:12px}.joker-row,.consumable-row{gap:4px;min-height:59px;overflow:visible}.consumable-row{gap:3px}.consumable-row .card{--card-w:35px}.empty-slot{width:43px;height:57px;font-size:16px}.consumable-row .empty-slot{width:35px;height:47px}.empty-note{font-size:10px}.table-stage{padding:13px;min-height:207px}.stage-heading{margin-bottom:14px}.stage-heading h2{font-size:20px}.stage-heading .eyebrow{font-size:11px}.stage-heading p{font-size:11px;margin-top:4px}.blind-options{gap:6px}.blind-type{padding:8px 3px!important;font-size:11px!important}.blind-content{padding:11px 5px}.blind-content .blind-chip{width:31px;height:31px;background-size:651px 961px;margin-bottom:3px}.blind-content .number{font-size:28px;margin:6px 0}.blind-content .desc{font-size:9px;min-height:43px}.blind-content .btn{font-size:10px;padding:9px 4px;min-height:37px}.blind-content .reward{margin:5px 0 11px}.skip{font-size:10px;padding-top:9px}.skip span{font-size:9px}.hand-zone{padding-top:2px}.hand-topline{margin-bottom:2px}.hand-cards{min-height:calc(var(--card-h) + 23px);padding-left:5px;padding-right:5px}.hand-cards .card{margin-left:calc(var(--card-w)*-.39)}.hand-cards .card.selected{transform:translateY(-16px)}.hand-actions{gap:7px;padding-top:10px}.hand-actions .btn{min-width:104px;padding:11px 16px;min-height:45px;font-size:13px}.selected-counter{min-width:47px;font-size:15px}.keyboard-hint{display:none}.game-foot{font-size:9px;padding-bottom:calc(5px + env(safe-area-inset-bottom))}.hand-type{font-size:21px;min-height:30px}.math{gap:9px;margin:11px 0}.math .term{font-size:31px;min-width:93px;padding:7px 12px}.math .term small{font-size:9px}.last-score{font-size:27px}.scored-cards{min-height:65px;gap:5px;margin:11px auto 0}.scored-cards .card{--card-w:43px}.stage-hint{font-size:10px;margin-top:9px}.shop-grid{gap:8px}.shop-section{padding:10px 7px}.shop-items{gap:8px}.shop-card{min-width:65px;max-width:90px;gap:6px}.shop-card .card{--card-w:57px}.shop-card strong{font-size:10px}.shop-card .btn{font-size:10px;min-height:32px;padding:6px 11px}.shop-head h2{font-size:23px}.shop-head p{font-size:10px}.shop-footer .btn{font-size:11px;padding:11px 14px}.price-tag{font-size:20px}.pack-grid{gap:12px}.pack-grid .card{--card-w:69px}.cashout{padding:8px}.cashout h2{font-size:23px;margin-bottom:15px}.end-screen{padding:10px}.end-screen h2{font-size:30px}.end-stat{gap:22px}.modal-body{padding:18px}.detail-card{gap:18px}.detail-card .card{--card-w:90px}.detail-copy h3{font-size:19px}.detail-copy p{font-size:12px}.card-collection{grid-template-columns:repeat(3,1fr);gap:15px}.card-collection .card{--card-w:65px}}
@media(orientation:landscape) and (max-height:600px){:root{--card-w:57px}.topbar{height:44px;padding:4px 14px}.brand img{width:68px;height:32px}.brand-title{font-size:11px}.brand-divider,.topbar .sub,.topbar .pill{display:none}.top-actions .icon-btn{padding:4px 9px;min-height:30px;font-size:11px}.workspace{grid-template-columns:143px minmax(0,1fr);padding:10px 12px;gap:12px;min-height:calc(100svh - 44px)}.sidebar{gap:9px}.round-panel{padding:9px}.blind-label{font-size:11px;padding-bottom:5px;margin-bottom:5px}.blind-label .blind-chip{width:22px;height:22px;background-size:462px 682px}.target-label,.reward,.score-label{font-size:9px}.target-value{font-size:29px}.score-panel{padding:9px}.score-value{font-size:30px;margin-bottom:7px}.stats-grid{gap:5px;margin-top:7px}.stat{padding:5px}.stat label{font-size:9px}.stat strong{font-size:23px}.side-tools{padding:7px;gap:5px}.side-tools .btn{font-size:10px;padding:6px;min-height:30px}.seed-display{font-size:10px}.game-main{gap:9px}.inventory{grid-template-columns:minmax(0,1fr) 155px;gap:9px}.inventory-zone{min-height:82px;padding:6px 10px}.inventory .card{--card-w:38px}.empty-slot{width:38px;height:51px;font-size:16px}.joker-row,.consumable-row{min-height:52px;gap:8px}.section-label{font-size:9px;margin-bottom:4px}.section-label span{font-size:11px}.empty-note{font-size:10px}.table-stage{padding:12px;min-height:125px}.stage-heading{margin-bottom:9px}.stage-heading h2{font-size:19px}.stage-heading .eyebrow{font-size:10px}.stage-heading p{font-size:10px;margin-top:3px}.hand-zone{padding:0}.hand-cards{min-height:100px;padding:15px 7px 3px}.hand-actions{padding:7px 0 0;gap:8px}.hand-actions .btn{min-height:35px;min-width:95px;font-size:11px;padding:7px 12px}.selected-counter{font-size:13px}.keyboard-hint{display:none}.game-foot{font-size:9px}.hand-type{font-size:18px;min-height:22px}.play-summary{display:grid;grid-template-columns:1fr 1fr;align-items:center}.play-summary .hand-type{grid-column:1}.play-summary .math{grid-column:1;margin:9px 0}.math .term{font-size:24px;padding:5px 10px;min-width:70px}.math .term small{font-size:8px}.math .times{font-size:22px}.scored-cards{grid-row:1/4;grid-column:2;min-height:64px;gap:4px;margin:4px auto}.scored-cards .card{--card-w:43px}.last-score{grid-column:1;font-size:22px;margin:4px 0}.stage-hint{font-size:9px;margin-top:5px}.blind-content{padding:8px}.blind-content .desc{min-height:31px;font-size:10px}.blind-content .blind-chip{width:27px;height:27px;background-size:567px 837px;margin:0}.blind-content .number{font-size:25px;margin:5px 0}.blind-type{font-size:11px!important;padding:7px!important}.blind-content .reward{margin:4px 0 8px}.blind-content .btn{font-size:10px;min-height:32px;padding:7px}.skip{font-size:10px;padding-top:7px}.skip span{font-size:9px}.menu{grid-template-columns:1fr 1fr;padding:22px;gap:24px;min-height:calc(100svh - 44px)}.menu-art{min-height:250px}.big-logo{width:250px}.hero-cards{height:120px;margin-top:10px}.hero-cards .card{--card-w:70px}.menu-copy h1{font-size:23px}.menu-copy .intro{font-size:11px;margin:8px 0 15px}.new-game-box{padding:15px}.menu-copy .eyebrow{font-size:11px;margin-bottom:6px}.menu-footer{font-size:9px;padding-top:10px}.deck-picker{margin-bottom:12px}.deck-picker .card{--card-w:45px}.box-heading{margin-bottom:10px;font-size:12px}.deck-info p{font-size:10px}.seed-row{margin-bottom:12px}.seed-row input{padding:8px}.shop-head{margin-bottom:10px}.shop-head h2{font-size:21px}.shop-grid{gap:8px}.shop-card .card{--card-w:48px}.shop-card{min-width:60px;max-width:90px;gap:5px}.shop-card strong{font-size:10px}.shop-items{gap:9px}.shop-section{padding:9px}.shop-grid .shop-section:first-child{grid-column:auto}.shop-grid .shop-section:last-child{grid-column:1/-1}.shop-footer{margin-top:12px}.shop-footer .btn{min-height:35px;padding:7px 12px;font-size:11px}.pack-grid .card{--card-w:66px}.cashout{padding:8px}.cashout h2{font-size:21px;margin-bottom:12px}.payout-row{padding:6px 0;font-size:11px}.payout-total{margin:10px 0}.payout-total .number{font-size:33px}.end-screen h2{font-size:28px}.end-stat{margin:16px 0}.table-stage:has(.cashout){min-height:245px}.table-stage:has(.blind-options){min-height:272px}}
@media(max-width:370px) and (orientation:portrait){.workspace{padding:8px}.inventory{grid-template-columns:minmax(0,1fr) 87px}.inventory-zone{padding:7px 5px}.inventory .card{--card-w:39px}.consumable-row .card{--card-w:32px}.empty-slot{width:39px;height:52px}.consumable-row .empty-slot{width:32px;height:43px}.joker-row{gap:3px}.table-stage{padding:10px}.blind-options{gap:5px}.hand-actions .btn{min-width:94px;padding:11px 12px}}

.hand-card{touch-action:pan-y;user-select:none;-webkit-user-select:none}.hand-card.drop-target{box-shadow:-4px 0 0 var(--yellow)!important}.scored-cards button.card{cursor:pointer}
.card{height:calc(var(--card-w)*95/71)}
.card.negative{filter:invert(1) hue-rotate(175deg)}
@media(orientation:landscape) and (max-height:500px){
  .workspace:has(.hand-zone){height:calc(100svh - 44px);min-height:0;padding-top:8px;padding-bottom:8px}
  .game-main:has(.hand-zone){display:grid;grid-template-rows:62px minmax(75px,1fr) 132px 10px;gap:7px;min-height:0}
  .game-main:has(.hand-zone) .inventory-zone{display:flex;align-items:center;gap:8px;min-height:0;height:62px;padding:5px 8px}
  .game-main:has(.hand-zone) .inventory-zone .section-label{flex-direction:column;gap:5px;align-items:flex-start;min-width:35px;margin:0}
  .game-main:has(.hand-zone) .inventory .card{--card-w:34px}
  .game-main:has(.hand-zone) .empty-slot{width:34px;height:45px}
  .game-main:has(.hand-zone) .joker-row,.game-main:has(.hand-zone) .consumable-row{gap:6px;min-height:46px}
  .game-main:has(.hand-zone) .table-stage{min-height:0;padding:6px 9px}
  .game-main:has(.hand-zone) .hand-cards{--card-w:43px;min-height:72px;padding-top:12px;padding-bottom:2px}
  .game-main:has(.hand-zone) .hand-topline{margin-bottom:0;height:21px}
  .game-main:has(.hand-zone) .hand-topline .deck-stack{min-height:24px;font-size:11px}
  .game-main:has(.hand-zone) .deck-mini{width:15px;height:21px}
  .game-main:has(.hand-zone) .hand-actions{padding-top:5px}
  .game-main:has(.hand-zone) .hand-actions .btn{min-height:33px;padding:6px 12px}
  .game-main:has(.hand-zone) .hand-actions .icon-btn{min-height:30px;padding:4px 10px}
  .game-main:has(.hand-zone) .math{margin:4px 0;gap:8px}
  .game-main:has(.hand-zone) .math .term{font-size:24px;min-width:65px;padding:3px 8px}
  .game-main:has(.hand-zone) .hand-type{font-size:16px;min-height:19px}
  .game-main:has(.hand-zone) .level-tag{padding:2px 4px;font-size:10px}
  .game-main:has(.hand-zone) .last-score{font-size:20px;margin:2px 0}
  .game-main:has(.hand-zone) .last-score small{font-size:9px}
  .game-main:has(.hand-zone) .scored-cards{min-height:0;margin:0 auto 7px}
  .game-main:has(.hand-zone) .scored-cards .card{--card-w:37px}
  .table-stage:has(.play-summary)>.btn{position:absolute;right:10px;bottom:4px;min-height:19px;margin:0!important;padding:2px 7px;font-size:9px!important}
  .workspace:has(.hand-zone) .sidebar{gap:7px;min-height:0}
  .workspace:has(.hand-zone) .side-tools{display:none}
  .workspace:has(.hand-zone) .round-panel{padding:8px}
  .workspace:has(.hand-zone) .score-panel{padding:8px}
  .workspace:has(.hand-zone) .game-foot{padding:0;font-size:8px}
  .game-main:has(.hand-zone) .stage-hint{font-size:9px;margin-top:2px}
}

.empty-slot{flex-shrink:0}

/* A played card owns both dimensions; flex/grid rows cannot stretch its face. */
.scored-cards{--played-max:63px;--played-width:63px;--played-gap:7px;align-items:center;align-content:center;flex:none;gap:var(--played-gap);width:100%;min-width:0;min-height:calc(var(--played-width)*95/71 + 20px);padding:10px 4px;position:relative}
.scored-cards>.card.played-card{--card-w:var(--played-width);width:var(--played-width);height:calc(var(--played-width)*95/71);min-width:var(--played-width);max-width:var(--played-width);min-height:calc(var(--played-width)*95/71);max-height:calc(var(--played-width)*95/71);aspect-ratio:71/95;flex:0 0 var(--played-width);align-self:center;opacity:1;transform-origin:50% 50%;will-change:transform}
.scored-cards>.card.played-card.not-scoring{opacity:.45}
.scored-cards>.card.played-card.scoring{opacity:1;box-shadow:0 0 0 2px var(--yellow),0 5px 0 #0a291d4a}
.board-empty{display:block;align-self:center;max-width:100%;font-size:11px;letter-spacing:1px;color:#8eb49c85;line-height:1.8}
.scoring-status{min-height:22px;margin-top:6px;line-height:1.7}
.last-score[hidden]{display:none}
[data-hand-total]{display:inline-block}
.score-feedback{position:absolute;z-index:10;transform:translate(-50%,-50%);pointer-events:none;color:var(--yellow);text-shadow:0 2px 2px #09291d;font:22px Balatro;white-space:nowrap;animation:score-feedback .7s ease-out forwards}
@keyframes score-feedback{0%{opacity:0;transform:translate(-50%,0) scale(.8)}20%{opacity:1;transform:translate(-50%,-12px) scale(1.12)}100%{opacity:0;transform:translate(-50%,-36px) scale(1)}}
.game-main[aria-busy=true] .hand-actions .btn{opacity:.55}
@media(max-width:700px) and (orientation:portrait){.scored-cards{--played-max:48px;--played-width:48px;--played-gap:6px;min-height:calc(var(--played-width)*95/71 + 20px)}.scoring-status{font-size:10px;min-height:20px}.board-empty{font-size:10px}}
@media(orientation:landscape) and (max-height:600px){.play-summary .scored-cards{--played-max:43px;--played-width:43px;--played-gap:5px;grid-row:1/5;grid-column:2;min-height:calc(var(--played-width)*95/71 + 12px);padding:6px 4px}.play-summary .scoring-status{grid-column:1;font-size:9px;min-height:16px;margin-top:2px}.board-empty{font-size:9px;letter-spacing:0}}
@media(orientation:landscape) and (max-height:500px){.game-main:has(.hand-zone) .scored-cards{--played-max:37px;--played-width:37px;min-height:calc(var(--played-width)*95/71 + 10px);padding:5px 4px}.game-main:has(.hand-zone) .play-summary .scoring-status{min-height:14px;font-size:8px;line-height:1.5;margin-top:1px}.game-main:has(.hand-zone) .play-summary .last-score{font-size:17px}.game-main:has(.hand-zone) .play-summary .math{margin:2px 0}.game-main:has(.hand-zone) .scored-cards .board-empty{max-width:170px}}
@media(prefers-reduced-motion:reduce){.score-feedback{animation:none;opacity:1}}

/* Landscape uses the available viewport height, including browser chrome changes. */
@media(orientation:landscape){
  html,body{height:var(--app-height,100dvh);min-height:0;overflow:hidden}
  #app{height:100%;display:flex;flex-direction:column;min-height:0}
  .topbar{height:clamp(42px,calc(var(--app-height,100dvh)*.075),70px);min-height:42px;flex:0 0 auto;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}
  .workspace{--layout-gap:clamp(6px,calc(var(--app-height,100dvh)*.014),16px);--inventory-height:clamp(56px,calc(var(--app-height,100dvh)*.14),150px);--hand-height:clamp(132px,calc(var(--app-height,100dvh)*.28),260px);--control-height:clamp(32px,calc(var(--app-height,100dvh)*.06),46px);--inventory-card-width:clamp(30px,calc((var(--inventory-height) - 12px)*71/95),78px);width:100%;height:calc(var(--app-height,100dvh) - var(--topbar-height,70px));min-height:0;flex:1 1 auto;display:grid;grid-template-columns:clamp(136px,16vw,235px) minmax(0,1fr);gap:clamp(10px,1.6vw,24px);padding-top:clamp(6px,calc(var(--app-height,100dvh)*.018),22px);padding-bottom:max(6px,env(safe-area-inset-bottom));padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right));overflow:visible}
  .workspace:has(.hand-zone){height:calc(var(--app-height,100dvh) - var(--topbar-height,70px));min-height:0;padding-top:clamp(6px,calc(var(--app-height,100dvh)*.018),22px);padding-bottom:max(6px,env(safe-area-inset-bottom))}
  .game-main,.game-main:has(.hand-zone){display:grid;min-height:0;gap:var(--layout-gap);grid-template-rows:var(--inventory-height) minmax(0,1fr) 12px}
  .game-main:has(.hand-zone){grid-template-rows:var(--inventory-height) minmax(0,1fr) var(--hand-height) 12px}
  .inventory{min-height:0;grid-template-columns:minmax(0,1fr) clamp(145px,20vw,230px);gap:10px}
  .inventory-zone,.game-main:has(.hand-zone) .inventory-zone{display:flex;align-items:center;gap:8px;height:var(--inventory-height);min-height:0;padding:6px 10px}
  .inventory-zone .section-label,.game-main:has(.hand-zone) .inventory-zone .section-label{flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:35px;margin:0;font-size:10px}
  .inventory .card,.game-main:has(.hand-zone) .inventory .card{--card-w:var(--inventory-card-width)}
  .empty-slot,.game-main:has(.hand-zone) .empty-slot{width:var(--inventory-card-width);height:calc(var(--inventory-card-width)*95/71)}
  .joker-row,.consumable-row,.game-main:has(.hand-zone) .joker-row,.game-main:has(.hand-zone) .consumable-row{min-height:0;gap:7px;min-width:0;flex:1}
  .table-stage,.game-main:has(.hand-zone) .table-stage{min-height:0;min-width:0;padding:clamp(7px,1.2vh,16px);overflow:auto;justify-content:flex-start;scrollbar-width:thin}
  .table-stage:has(.play-summary){justify-content:center;overflow:visible}
  .table-stage>.blind-options,.table-stage>.shop-grid,.table-stage>.cashout,.table-stage>.pack-grid{flex-shrink:0}
  .table-stage>.stage-heading,.table-stage>.shop-head{flex-shrink:0}
  .shop-footer{position:sticky;bottom:-7px;background:#183d32f5;padding:8px 0 7px;z-index:3}
  .play-summary{display:grid;grid-template-columns:minmax(150px,1fr) minmax(0,1.2fr);align-items:center;column-gap:12px;row-gap:3px;min-width:0}
  .play-summary .hand-type{grid-column:1;grid-row:1;font-size:clamp(17px,2.4vh,25px);min-height:0}
  .play-summary .math,.game-main:has(.hand-zone) .play-summary .math{grid-column:1;grid-row:2;margin:4px 0;gap:10px}
  .play-summary .math .term,.game-main:has(.hand-zone) .play-summary .math .term{font-size:clamp(24px,4vh,36px);min-width:clamp(68px,9vw,110px);padding:5px 12px}
  .play-summary .last-score,.game-main:has(.hand-zone) .play-summary .last-score{grid-column:1;grid-row:3;font-size:clamp(18px,3vh,28px);margin:2px 0}
  .play-summary .scoring-status,.game-main:has(.hand-zone) .play-summary .scoring-status{grid-column:1;grid-row:4;min-height:16px;margin:0;font-size:clamp(9px,1.3vh,12px);line-height:1.5}
  .play-summary .scored-cards,.game-main:has(.hand-zone) .play-summary .scored-cards{--played-max:76px;grid-column:2;grid-row:1/5;align-self:center;margin:0;min-height:calc(var(--played-width)*95/71 + 14px);padding:7px 4px}
  .table-stage:has(.play-summary)>.btn{position:absolute;right:10px;bottom:5px;min-height:21px;margin:0!important;padding:3px 8px;font-size:10px!important}
  .hand-zone,.game-main:has(.hand-zone) .hand-zone{display:grid;grid-template-rows:22px minmax(0,1fr) var(--control-height);gap:4px;min-height:0;height:var(--hand-height);padding:0}
  .hand-topline,.game-main:has(.hand-zone) .hand-topline{height:22px;margin:0;min-height:0}
  .hand-cards,.game-main:has(.hand-zone) .hand-cards{min-height:0;padding:16px 7px 3px;align-items:flex-end;--hand-card-width:70px}
  .hand-cards .hand-card{--card-w:var(--hand-card-width);width:var(--hand-card-width);height:calc(var(--hand-card-width)*95/71);min-height:0;flex:0 0 var(--hand-card-width)}
  .hand-actions,.game-main:has(.hand-zone) .hand-actions{height:var(--control-height);padding:0;gap:9px}
  .hand-actions .btn,.game-main:has(.hand-zone) .hand-actions .btn{height:var(--control-height);min-height:var(--control-height);padding:5px 14px;font-size:clamp(11px,1.7vh,14px)}
  .hand-actions .icon-btn,.game-main:has(.hand-zone) .hand-actions .icon-btn{height:var(--control-height);min-height:var(--control-height);padding:4px 12px}
  .keyboard-hint{display:none}
  .game-foot,.game-main:has(.hand-zone) .game-foot{height:12px;min-height:0;padding:0;font-size:9px;white-space:nowrap}
  .sidebar,.workspace:has(.hand-zone) .sidebar{min-height:0;overflow:auto;gap:var(--layout-gap);scrollbar-width:thin}
  .sidebar>section{flex-shrink:0}
  .menu{flex:1 1 auto;min-height:0;overflow:auto;align-content:start}
}
@media(orientation:landscape) and (max-height:600px){
  .play-summary{grid-template-columns:minmax(130px,1fr) minmax(0,1.2fr);column-gap:8px;row-gap:1px}
  .play-summary .math .term,.game-main:has(.hand-zone) .play-summary .math .term{font-size:24px;min-width:65px;padding:3px 9px}
  .play-summary .scored-cards,.game-main:has(.hand-zone) .play-summary .scored-cards{--played-max:37px}
  .play-summary .level-tag{font-size:10px;padding:2px 4px}
  .play-summary .last-score small{font-size:9px}
  .play-summary .scoring-status,.game-main:has(.hand-zone) .play-summary .scoring-status{font-size:8px;min-height:12px}
  .hand-topline .section-label,.hand-topline .sort-buttons{font-size:9px}
  .workspace .side-tools{display:none}
}
@media(orientation:landscape) and (max-height:350px){
  .workspace{--inventory-height:48px;--inventory-card-width:27px;--hand-height:112px;--control-height:30px;--layout-gap:5px;gap:8px}
  .game-foot{visibility:hidden}
  .play-summary .hand-type{font-size:15px}
  .play-summary .math .term,.game-main:has(.hand-zone) .play-summary .math .term{font-size:21px;min-width:58px;padding:2px 8px}
  .play-summary .last-score,.game-main:has(.hand-zone) .play-summary .last-score{font-size:16px}
  .play-summary .scored-cards,.game-main:has(.hand-zone) .play-summary .scored-cards{--played-max:30px}
  .hand-zone,.game-main:has(.hand-zone) .hand-zone{grid-template-rows:18px minmax(0,1fr) var(--control-height)}
}
@media(orientation:landscape){
  .game-main:has(.hand-zone) .table-stage:has(.play-summary){justify-content:center;overflow:visible}
  .game-main:has(.hand-zone) .play-summary .scoring-status{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
}
@media(orientation:landscape) and (max-height:600px){
  .game-main:has(.hand-zone) .play-summary{row-gap:0}
  .game-main:has(.hand-zone) .play-summary .hand-type{font-size:15px;line-height:1.15;min-height:0}
  .game-main:has(.hand-zone) .play-summary .math{margin:2px 0}
  .game-main:has(.hand-zone) .play-summary .math .term{font-size:21px;line-height:1.1;padding:2px 8px;min-width:58px}
  .game-main:has(.hand-zone) .play-summary .math .term small{font-size:8px;line-height:1;margin:0}
  .game-main:has(.hand-zone) .play-summary .last-score{font-size:15px;line-height:1;margin:2px 0}
  .game-main:has(.hand-zone) .play-summary .last-score small{font-size:8px}
  .game-main:has(.hand-zone) .play-summary .scoring-status{font-size:8px;min-height:10px;line-height:1.25;margin:0}
}
@media(orientation:landscape) and (max-height:350px){
  .game-main:has(.hand-zone) .play-summary .scoring-status{display:none}
  .game-main:has(.hand-zone) .play-summary .hand-type{font-size:14px;line-height:1}
  .game-main:has(.hand-zone) .play-summary .math .term{font-size:20px;line-height:1;padding:1px 7px}
  .game-main:has(.hand-zone) .play-summary .math .term small{font-size:7px}
  .game-main:has(.hand-zone) .play-summary .last-score{font-size:14px;line-height:1;margin:1px 0}
}

}
