:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#eaf0fa;background:#080f1b;color-scheme:dark;--red:#e63148;--muted:#8b9bb2;--gold:#dfbd80;--ease:cubic-bezier(.22,.7,.25,1)}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0;background:radial-gradient(ellipse at 50% 12%,#1a2e474f,transparent 65%);min-height:100vh}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #e6bf7b;outline-offset:4px}.site-header{max-width:1180px;margin:auto;min-height:90px;display:flex;align-items:center;gap:22px;padding:10px 26px;border-bottom:1px solid #d9e4ff12}.logo-plate{background:#fff;border-radius:4px;padding:0 12px;display:flex;align-items:center;height:48px}.logo-plate img{width:162px;height:auto}.header-label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted)}.version{margin-left:auto;color:#77879e;border:1px solid #ffffff18;border-radius:4px;padding:5px 8px;font-size:9px;letter-spacing:1px}main{max-width:1100px;margin:auto;padding:30px 26px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}h1{font-size:48px;letter-spacing:-2.7px;line-height:1.1;margin:8px 0 7px;font-weight:800}h1>span:first-child{font-weight:350;color:#acbad0}.title-suit{color:var(--red);font-family:Georgia,serif;display:inline-block;margin-left:13px;font-size:40px;transform:rotate(10deg)}.page-heading p{font-size:14px;color:#97a8bf;margin:0}.toolbar{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.tool{background:#101c2c;border:1px solid #ffffff17;border-radius:7px;padding:10px 11px;color:#9eafc7;font-size:11px;transition:background .2s,color .2s}.tool:hover{background:#1a2d44;color:white}.tool.reset{color:#f1f5fa}.game-meta{display:flex;align-items:center;gap:18px;font-size:11px;color:#7c8ea6;padding:0 4px 12px}.game-meta b{padding:0 7px}.meta-pill{font-size:9px;letter-spacing:1px;color:#b4c6dd}.meta-pill i{display:inline-block;width:5px;height:5px;background:#73b9a2;border-radius:50%;margin-right:6px}.meta-right{margin-left:auto;letter-spacing:7px;color:#728198}.game-room{position:relative;background:#0c1726;border:1px solid #344359;border-radius:24px;padding:16px;box-shadow:0 24px 80px #0006}.scores{display:grid;gap:9px}.scores:empty{display:none}.score{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;background:linear-gradient(135deg,#1b2c41,#101c2d);border:1px solid #ffffff13;border-radius:10px;padding:10px 14px;min-width:0;transition:border-color .3s,box-shadow .3s}.score.active{border-color:#dfbd80b0;box-shadow:inset 0 0 25px #dfbd8008,0 0 16px #dfbd8012}.score-name{display:flex;align-items:center;gap:9px;min-width:0}.avatar{display:flex;justify-content:center;align-items:center;flex-shrink:0;width:30px;height:30px;background:#283a50;border:1px solid #ffffff15;border-radius:50%;font-size:11px;color:#c1cfdf}.score.active .avatar{color:var(--gold);border-color:#b99554}.score b{display:block;font-size:12px}.score small{font-size:9px;color:#7b8da5;display:block;margin-top:3px}.score strong{font-size:25px;letter-spacing:-1px;font-variant-numeric:tabular-nums}.score strong em{font-style:normal;font-size:10px;color:#7487a0;letter-spacing:0}.backs{display:flex;margin-top:7px;height:24px;padding-left:3px}.backs .card{width:19px;height:27px;margin-left:-3px;border-radius:2px}.backs .card-back{border-radius:2px;padding:2px}.backs .back-logo{padding:1px;border-width:1px}.backs .back-caption{display:none}.award{position:absolute;right:8px;top:-9px;z-index:30;border:1px solid #e2c081;background:#283127;color:#f6d999;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:700;box-shadow:0 5px 15px #0004}.score-reason{font-size:9px;color:#e7c991;line-height:1.6;margin-top:6px}.table{position:relative;isolation:isolate;border:1px solid #72819645;background:radial-gradient(ellipse at 50% 30%,#214964,#17374f 40%,#10283c 85%);border-radius:18px;padding:15px 24px 12px;margin-top:12px;box-shadow:inset 0 0 0 5px #253d5059,inset 0 0 45px #0004;overflow:hidden}.table:before{content:'';position:absolute;inset:7px;border:1px solid #c6cdda21;border-radius:12px;pointer-events:none;z-index:-1}.table:after{content:'';position:absolute;inset:0;z-index:-2;opacity:.14;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='5'%3E%3Cpath d='M0 0h1v1H0zm3 3h1v1H3z' fill='%23ffffff'/%3E%3C/svg%3E");pointer-events:none}.table-top{display:flex;justify-content:space-between;gap:12px;color:#9ab4c7;font-size:9px;font-weight:600;letter-spacing:1.5px;position:relative;z-index:2}.table-sponsor{font-size:8px;letter-spacing:1px;color:#6d8da3}.table-sponsor b{color:#94b0c4;margin-left:5px}.table-mark{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);font-size:92px;font-weight:900;letter-spacing:14px;color:#b1c9da07;pointer-events:none;z-index:-1}.table-mark span{color:#c8d7df09}.deck{position:relative;width:58px;height:93px;margin:20px auto 0;text-align:center}.deck .card{width:52px;height:74px;transform:rotate(-9deg);box-shadow:3px 3px 0 #d3dae2,5px 5px 0 #17263b,7px 7px 0 #abbac9}.deck>span{display:block;margin-top:10px;font-size:7px;letter-spacing:1.4px;color:#829eaf}.table.in-game .deck{position:absolute;right:30px;top:27px;transform:scale(.5);transform-origin:right top;opacity:.8;margin:0;z-index:0}.table.in-game .deck>span{display:none}.setup{text-align:center;padding:25px 16px 28px;position:relative;z-index:2}.setup .eyebrow{color:#a5bfce;font-size:9px}.setup h2{font-family:Georgia,serif;font-weight:400;font-size:30px;letter-spacing:-.5px;margin:10px 0;color:#eff4f7}.setup p{color:#9ab6c8;font-size:12px;line-height:1.7;margin:0 0 22px}.setup label{display:block;font-size:10px;color:#92b2c6;margin:10px}.setup-controls{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}select{background:#0c2336;border:1px solid #91a7b54a;border-radius:7px;color:#e3ebf2;padding:12px;font-size:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:25px;border:1px solid #f66270;background:linear-gradient(#ee4155,#cc233b);box-shadow:0 4px 0 #8a1727,0 8px 20px #0003;border-radius:7px;color:white;padding:12px 24px;font-size:12px;font-weight:750;transition:filter .2s,transform .2s}.btn:hover{filter:brightness(1.12);transform:translateY(-1px)}.btn:active{transform:translateY(2px)}.btn:disabled{opacity:.5;transform:none}.status{font-size:12px;line-height:1.6;text-align:center;min-height:38px;color:#cfdee9;display:flex;align-items:center;justify-content:center;position:relative;z-index:2;padding:4px 20px}.status.your-turn{color:#f2d59e}.status.result{font-family:Georgia,serif;font-size:22px;color:#f7dab0}.played{--pile-height:90px;--pile-step:45px;display:grid;grid-template-columns:repeat(var(--players,1),minmax(0,1fr));align-items:start;gap:14px;padding:17px 0 13px;position:relative;z-index:1;min-height:150px}.player-pile{min-width:0;position:relative}.pile-name{display:block;font-size:11px;text-align:center;color:#cfdee9}.pile-count{display:block;font-size:9px;color:#7fa0b6;margin:4px 0 11px;text-align:center}.pile-cards{position:relative;height:calc(var(--pile-height) + (var(--count) - 1)*var(--pile-step));width:66px;margin:auto;transition:height .3s var(--ease)}.pile-layer{position:absolute;top:calc(var(--index)*var(--pile-step));left:0;z-index:calc(var(--index) + 1)}.pile-layer .card{width:66px;height:var(--pile-height)}.pile-layer .card-front{padding:6px;font-size:20px}.pile-layer .corner{gap:6px}.pile-layer .corner-suit{font-size:17px}.pile-layer .suit{font-size:30px}.pile-layer .foot{font-size:11px}.pile-layer.current-card .card-front{border-color:#dec188;box-shadow:0 0 0 1px #dec188,0 5px 12px #0003}.pile-empty{height:var(--pile-height);width:66px;border:1px dashed #a8c2d52b;border-radius:6px;display:flex;align-items:center;justify-content:center;font-size:10px;color:#7394aa;line-height:1.7;text-align:center}.card{position:relative;display:inline-block;flex-shrink:0;width:78px;height:112px;padding:0;border:0;border-radius:7px;background:none;color:#19283d;font-family:Georgia,serif;font-size:23px;font-weight:700;perspective:800px;vertical-align:middle;touch-action:manipulation}.card-inner{display:block;position:absolute;inset:0;transform-style:preserve-3d;border-radius:inherit}.card-face{position:absolute;inset:0;border-radius:inherit;backface-visibility:hidden;-webkit-backface-visibility:hidden}.card-front{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;padding:8px;background:linear-gradient(130deg,#fffef8,#f6f3ea);border:1px solid #cbd3dc;box-shadow:0 5px 12px #0003;overflow:hidden}.card.red{color:#c82c44}.corner{display:flex;gap:6px;align-items:center;line-height:1}.corner-suit{font-size:17px}.card .suit{font-size:39px;align-self:center;line-height:1}.foot{align-self:flex-end;font-size:14px;transform:rotate(180deg)}.card-back{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;background:repeating-linear-gradient(45deg,#182d4e 0,#182d4e 3px,#244166 3px,#244166 4px);border:3px solid #edf0f2;box-shadow:inset 0 0 0 2px #afbdd0,0 5px 12px #0004;padding:8px}.card-inner>.card-back{transform:rotateY(180deg)}.card.back>.card-back{transform:none}.back-logo{background:#fff;border-top:3px solid #d7273e;border-bottom:3px solid #d7273e;padding:5px 3px;display:flex;align-items:center;justify-content:center;width:100%}.back-logo img{display:block;width:100%;height:auto}.back-caption{font-family:system-ui,sans-serif;color:#e8edf3;font-size:5px;letter-spacing:1.4px;font-weight:500}.hand-zone{text-align:center;margin-top:14px;min-height:170px}.hand-meta{display:flex;justify-content:space-between;color:#8a9fb8;font-size:9px;letter-spacing:1px;padding:0 8px}.hand-meta>span:last-child{letter-spacing:0;color:#6c829d}.hand{display:flex;justify-content:center;gap:12px;padding:19px 0 9px;min-height:132px}.hand .card{width:78px;height:111px;transition:transform .18s var(--ease),filter .18s}.hand .card.selected{transform:translateY(-12px)}.hand .card.selected .card-front{border:2px solid #ee4257}.hand .card.legal .card-front{border-color:#cfad71;box-shadow:0 0 0 1px #cfad71,0 6px 18px #0004}.hand .card:not(:disabled):hover{transform:translateY(-7px)}.hand .card.selected:hover{transform:translateY(-14px)}.hand .card:disabled .card-front{filter:brightness(.78)}.hand .card.selected:after{content:'PIDÄ';position:absolute;bottom:-9px;left:50%;transform:translateX(-50%);padding:3px 5px;border-radius:3px;background:var(--red);color:white;font-family:system-ui,sans-serif;font-size:8px;letter-spacing:1px}.actions{min-height:42px;display:flex;justify-content:center;align-items:center;gap:12px;padding:4px}.muted{font-size:11px;color:#8194ae}.poker-notice{font-size:10px;text-align:center;color:#9eafc4;border-top:1px solid #ffffff0c;margin-top:7px;padding:11px 7px 2px;line-height:1.6}.sponsor-banner{display:flex;justify-content:space-between;position:relative;isolation:isolate;margin:25px 0;background:#eef1f4;color:#13253b;min-height:202px;border-radius:12px;overflow:hidden;border-left:4px solid var(--red)}.sponsor-copy{padding:25px 28px;z-index:2;width:65%}.sponsor-copy .eyebrow{color:#748192;font-size:8px;letter-spacing:1.5px}.sponsor-copy h2{font-size:22px;letter-spacing:-.6px;line-height:1.3;margin:9px 0 8px}.sponsor-copy p{font-size:11px;color:#687586;line-height:1.6;margin:0 0 17px}.sponsor-copy a{font-size:11px;font-weight:750;text-decoration:none;border-bottom:1px solid #b9c2cd;padding-bottom:5px;display:inline-flex;gap:26px}.sponsor-copy a:hover{color:#ca2038}.sponsor-image{position:absolute;right:0;top:0;width:40%;height:100%;object-fit:cover;object-position:center;mask-image:linear-gradient(to right,transparent,#000 25%);opacity:.9}.below-game{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:20px}details{background:#0d1726;border:1px solid #ffffff11;border-radius:8px;padding:15px 18px;min-width:0}summary{cursor:pointer;font-size:12px;font-weight:600;list-style:none;display:flex;justify-content:space-between;color:#a8b7ca}summary::-webkit-details-marker{display:none}summary span{color:#687d97}.rules{font-size:12px;color:#93a4bb;line-height:1.8}.rules p{margin:14px 0}.log{font-size:11px;line-height:1.9;color:#8ea3bd;max-height:220px;overflow:auto;margin-top:15px}footer{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:28px 0;color:#556b85;font-size:9px}footer>span:first-child{letter-spacing:1.3px;font-weight:700}footer a{text-decoration:none}footer a:hover{color:#c1d0df}@media(min-width:900px){.scores[data-count="4"] .score{padding:10px}.scores[data-count="4"] .avatar{display:none}.table.in-game{padding-left:45px;padding-right:45px}}
@media(max-width:700px){.site-header{min-height:70px;padding:10px 16px;gap:12px}.logo-plate{height:38px;padding:0 8px}.logo-plate img{width:130px}.header-label{font-size:10px}.header-label .eyebrow{font-size:8px;letter-spacing:1px}main{padding:20px 14px 0}.page-heading{align-items:flex-start;gap:10px}.toolbar{max-width:200px}.tool{font-size:9px;padding:8px}.page-heading h1{font-size:38px}.title-suit{font-size:30px}.page-heading .eyebrow{font-size:8px;letter-spacing:1px}.page-heading p{font-size:12px}.score{padding:8px}.avatar{display:none}.score strong{font-size:23px}.score b{font-size:10px}.score small{font-size:8px}.game-room{padding:10px;border-radius:18px}.table{padding:12px 12px 6px;border-radius:13px}.table-top{font-size:8px;letter-spacing:.7px}.table-sponsor{display:none}.table:before{inset:5px;border-radius:9px}.played{--pile-height:78px;--pile-step:39px;gap:7px;padding-top:14px}.pile-cards,.pile-layer .card,.pile-empty{width:58px}.pile-layer .card-front{font-size:17px;padding:5px}.pile-layer .corner{gap:5px}.pile-layer .corner-suit{font-size:15px}.pile-layer .suit{font-size:26px}.pile-layer .foot{font-size:10px}.pile-name{font-size:10px}.pile-count{font-size:8px}.hand{gap:9px;min-height:119px}.hand .card{width:66px;height:96px}.hand .card-front{font-size:20px;padding:6px}.hand .suit{font-size:32px}.hand .foot{font-size:12px}.hand-zone{min-height:158px}.hand-meta{font-size:8px}.status{font-size:11px;padding:4px 7px}.sponsor-copy{padding:22px 20px;width:75%}.sponsor-copy h2{font-size:19px}.sponsor-copy p{max-width:220px}.sponsor-image{width:36%;opacity:.65}.sponsor-copy .eyebrow{font-size:7px}.below-game{gap:9px}details{padding:13px 12px}.game-meta{gap:10px;font-size:9px}.meta-pill{font-size:8px;letter-spacing:.5px}.meta-right{letter-spacing:4px}.award{font-size:8px;padding:4px}.score-reason{font-size:8px}footer{flex-wrap:wrap;line-height:1.7}}
@media(max-width:400px){.header-label{display:none}.page-heading{display:block}.toolbar{max-width:none;justify-content:flex-start;margin-top:13px}.page-heading h1{font-size:40px}.hand{gap:6px}.hand .card{width:54px;height:82px}.hand .card-front{font-size:17px}.hand .suit{font-size:27px}.hand .corner{gap:4px}.hand .corner-suit{font-size:13px}.hand .foot{font-size:10px}.hand-meta>span:last-child{display:none}.hand{min-height:105px}.game-meta>span:nth-child(2){margin-left:auto}.meta-right{display:none}.played{--pile-height:69px;--pile-step:34.5px;gap:4px}.pile-cards,.pile-layer .card,.pile-empty{width:50px}.pile-layer .card-front{font-size:15px;padding:4px}.pile-layer .corner-suit{font-size:13px}.pile-layer .suit{font-size:23px}.score{flex-direction:column;align-items:flex-start;gap:4px}.backs{display:none}.score-name{gap:0}.score small{font-size:7px}.sponsor-copy{width:85%}.sponsor-image{width:30%;opacity:.4}.sponsor-copy h2{font-size:17px}.below-game{grid-template-columns:1fr}.setup{padding:20px 0}.setup h2{font-size:25px}.setup p{font-size:11px}.setup-controls{gap:9px}.hand-zone{min-height:140px}.table.in-game .deck{right:16px;top:24px;transform:scale(.4)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep the smallest phones within the table edges. */
.game-room:has(.setup:not([hidden])) .hand-zone{display:none}
.table:after{opacity:.055}
.table.in-game .deck{top:4px;right:12px;transform:scale(.35)}
.table.in-game .table-sponsor{padding-right:28px}
@media(max-width:400px){.hand .card{width:clamp(43px,calc((100vw - 92px)/5),54px)}.hand .corner{gap:3px}}
/* Ivory and red card backs stand out against the navy table. */
.card-back{background:repeating-linear-gradient(45deg,#f5efe3 0,#f5efe3 4px,#e5daca 4px,#e5daca 5px);border-color:#fffaf0;box-shadow:inset 0 0 0 2px #b62e41,0 5px 12px #0004}
.back-logo{background:#fffdf9;border-color:#bf243c}
.back-caption{color:#a6293d;font-weight:700}
.backs .card-back{box-shadow:inset 0 0 0 1px #b62e41,0 2px 5px #0004}
/* The decorative deck, with separate ivory cards and a gentle living motion. */
.deck{width:96px;height:127px;margin:26px auto 0}
.deck-art{position:relative;width:84px;height:108px;margin:auto;animation:deck-breathe 7s ease-in-out infinite;transform-origin:50% 75%}
.deck-layer{position:absolute;left:7px;top:0;display:block;width:70px;height:100px;transform-origin:50% 90%;filter:drop-shadow(0 4px 4px #0003)}
.deck-layer-0{transform:translate(-5px,3px) rotate(-15deg)}
.deck-layer-1{transform:translate(6px,3px) rotate(11deg)}
.deck-layer-2{transform:rotate(-3deg)}
.deck .deck-layer .card{width:70px;height:100px;transform:none;box-shadow:none}
.deck .card-back{border-width:3px;border-radius:7px;background:repeating-linear-gradient(45deg,#fffcf4 0,#fffcf4 5px,#eadfcb 5px,#eadfcb 6px);box-shadow:inset 0 0 0 2px #b62e41,0 1px 0 #9c8d78}
.deck .back-logo{padding:6px 2px}.deck .back-caption{font-size:6px;letter-spacing:1.3px}
.deck>span{margin-top:8px;color:#c3b49c;font-size:8px;letter-spacing:2.5px}
.table.in-game .deck{top:3px;right:12px;transform:scale(.29)}
.table.in-game .deck-art{animation:none}
@keyframes deck-breathe{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-3px) rotate(1deg)}}
.motion-off .deck-art{animation:none}

/* Selected cards stay in the hand. */
.hand .card.selected .card-front{border-color:#72c5a0;box-shadow:0 0 0 1px #72c5a0,0 6px 18px #0004}
.hand .card.selected:after{background:#247558}
/* Cyan marks the turn; gold is reserved for the winning poker combination. */
.hand .card.legal .card-front{border-color:#8dcbdc;box-shadow:0 0 0 1px #8dcbdc,0 6px 18px #0004}
.pile-layer.current-card .card-front{border-color:#b4dce6;box-shadow:0 0 0 1px #b4dce6,0 5px 12px #0003}
.score.active{border-color:#8dcbdcb0;box-shadow:inset 0 0 25px #8dcbdc08,0 0 16px #8dcbdc12}.score.active .avatar{color:#b5e4f0;border-color:#8dcbdc}.status.your-turn{color:#b5e4f0}
.played.showing-result{align-items:start;padding:20px 0;gap:14px}
.player-result{min-width:0;padding:12px 8px 10px;border:1px solid #c1d6e11c;border-radius:10px;background:#061a2a40;text-align:center}
.player-result.poker-winner{background:#5e48191a;border-color:#d8b46e88}
.result-name{display:flex;justify-content:space-between;align-items:center;gap:6px;font-size:12px;margin:0 3px 13px;color:#dbe7ef}.result-name strong{font-size:17px;color:#ebf3f7}.poker-winner .result-name strong{color:#f0d197}
.result-cards{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;max-width:270px;margin:0 auto 12px}
.result-card{position:relative;min-width:0}.result-card>.card{width:100%;height:auto;aspect-ratio: .69;font-size:17px}.result-card .card-front{padding:5px}.result-card .corner{gap:3px}.result-card .corner-suit{font-size:12px}.result-card .suit{font-size:26px}.result-card .foot{font-size:9px}
.result-card.poker-gold .card-front{border:2px solid #f0c56d;box-shadow:0 0 0 1px #aa7c32,0 0 12px #efc66b50;background:linear-gradient(135deg,#fffaf0,#f9e9c2)}
.result-card:not(.poker-gold) .card-front{filter:brightness(.91)}
.trick-marker{position:absolute;bottom:-6px;right:-5px;z-index:2;background:#18384d;border:1px solid #9ac4d3;border-radius:50%;font-size:13px;width:23px;height:23px;display:grid;place-items:center;box-shadow:0 3px 6px #0006}
.result-hand-label{color:#a8bece;font-size:11px;line-height:1.6;font-weight:700}.poker-winner .result-hand-label{color:#f3ce83}.result-reasons{font-size:10px;color:#a6c1cf;line-height:1.7;margin-top:4px}
.previous-result{margin:12px 0 0;padding:12px 15px;background:linear-gradient(100deg,#1a2c3f,#112238);border:1px solid #49637d;border-radius:9px}
.previous-result summary{align-items:center;gap:14px;color:#e0e9f2;line-height:1.6;font-weight:400}.previous-result summary>span:first-child{min-width:0}.previous-result #previous-heading{display:block;font-size:8px;letter-spacing:1.4px;color:#9eb1c8;margin-bottom:4px}.previous-result #previous-summary{display:block;font-size:11px;color:#cfdfec}.previous-toggle{font-size:10px;flex-shrink:0;color:#d9bb83!important}.previous-result[open] .previous-toggle>span{display:inline-block;transform:rotate(180deg)}
.previous-cards{display:grid;grid-template-columns:repeat(var(--players),minmax(0,1fr));gap:12px;margin-top:14px}.previous-cards .player-result{background:#0b1c2f}.previous-cards .player-result.poker-winner{background:#3d342226}
@media(max-width:850px){.played.showing-result,.previous-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.result-cards{max-width:230px}.player-result{padding:10px 7px}.result-name{font-size:11px}.result-name strong{font-size:15px}.result-cards .card{font-size:16px}.result-cards .card-front{padding:4px}}
@media(max-width:500px){.played.showing-result{gap:9px}.result-cards{gap:3px}.result-cards .card{font-size:12px}.result-cards .card-front{padding:3px}.result-cards .corner{gap:1px}.result-cards .corner-suit{font-size:9px}.result-cards .suit{font-size:18px}.result-cards .foot{font-size:7px}.result-hand-label{font-size:10px}.result-reasons{font-size:9px}.result-name{margin-bottom:10px}.trick-marker{width:19px;height:19px;font-size:10px;right:-2px}.previous-result{padding:11px 10px}.previous-result summary{gap:7px}.previous-result #previous-summary{font-size:10px}.previous-toggle{font-size:9px}.previous-cards{gap:8px}}
@media(max-width:380px){.played.showing-result,.previous-cards{grid-template-columns:1fr}.result-cards{max-width:210px}.result-cards .card{font-size:16px}.result-cards .corner-suit{font-size:11px}.result-cards .suit{font-size:23px}.result-cards .foot{font-size:8px}}
/* Actual MitroPlast mark printed into the felt. */
.table-mark{width:clamp(200px,63%,560px);height:auto;top:46%;left:50%;transform:translate(-50%,-50%);font-size:0;letter-spacing:0;opacity:.13;filter:grayscale(1) brightness(0) invert(1)}
.table-mark img{display:block;width:100%;height:auto}.table:not(.in-game) .table-mark{opacity:.045}.table:has(.showing-result) .table-mark{opacity:.045}
.result-announcement{position:relative;z-index:2;display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin:17px 0 2px;padding:12px;border:1px solid #a9bdca44;border-radius:9px;background:#051827bf;font-size:15px;line-height:1.6;font-weight:750;text-align:center}
.headline-trick{color:#c1e7f4}.headline-poker{color:#f2d18a}.headline-trick+.headline-poker:before{content:'·';color:#6f8a9d;margin-right:10px}
.played.showing-result{padding-top:14px}.result-hand-label{font-size:13px}.result-reasons{font-size:12px}.result-name strong{font-size:22px}
.previous-result #previous-summary{display:flex;gap:10px 22px;flex-wrap:wrap;margin-top:8px}.previous-player{display:flex;flex-direction:column;gap:2px;min-width:100px}.previous-player>b{font-size:13px;color:#dce7f1;font-weight:600}.previous-player strong{margin-left:6px;color:#a8bad0;font-size:15px}.previous-player.has-points strong{color:#f1ce8e}.previous-player>span{font-size:11px;color:#adc3d6}.previous-result #previous-heading{font-size:10px;color:#b7cadd}.previous-result .previous-toggle{font-size:11px}
.actions{flex-wrap:wrap}.actions #deal-now{font-size:12px;padding:9px 14px;border-color:#7198ae;color:#e3eff6}
@media(max-width:500px){.result-announcement{font-size:12px;gap:3px;padding:9px}.result-announcement>span{display:block;width:100%}.headline-trick+.headline-poker:before{display:none}.result-hand-label{font-size:11px}.result-reasons{font-size:10px}.result-name strong{font-size:18px}.previous-result #previous-summary{gap:8px 14px}.previous-player>b{font-size:12px}.previous-player strong{font-size:14px}.previous-player>span{font-size:10px}.previous-result .previous-toggle{font-size:10px}.table-mark{min-width:0;width:82%}}
/* Stable positions throughout each game: score rail, summary, table and hand. */
.scores{height:96px;align-items:stretch}.scores .score{height:96px;min-height:0}.scores[data-phase="roundEnd"] .backs,.scores[data-phase="over"] .backs{display:none}
.previous-result{height:100px;margin:12px 0 0;padding:10px 14px;overflow:hidden}.previous-top{height:25px;display:flex;align-items:center;justify-content:space-between;gap:12px}.previous-top #previous-heading{margin:0;font-size:9px;letter-spacing:1.2px}.previous-top .tool{padding:5px 9px;font-size:10px}.previous-top .tool:disabled{opacity:.35}
.previous-result #previous-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:8px}.previous-result[data-count="2"] #previous-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.previous-result[data-count="3"] #previous-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.previous-player{min-width:0}.previous-player>b{white-space:nowrap}.previous-player>span{font-size:10px;line-height:1.3}.previous-placeholder{grid-column:1/-1;color:#7d96ae;font-size:11px;line-height:1.7}
.table.in-game{height:452px;min-height:0;margin-top:12px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:18px 58px minmax(0,1fr) 48px;row-gap:0;padding-top:15px;padding-bottom:12px}
.table.in-game .table-top{grid-row:1;min-height:0;align-items:center;overflow:hidden}.announcement-slot{position:relative;min-width:0}.table.in-game .announcement-slot{grid-row:2;height:58px;display:flex;align-items:center;justify-content:center}.result-announcement{margin:0;padding:7px 12px;max-height:56px;overflow:auto;font-size:13px;line-height:1.45;width:100%}
.table.in-game .played{grid-row:3;min-height:0;height:100%;padding:5px 0;--pile-height:84px;--pile-step:42px;align-content:start;overflow:visible}.table.in-game .played .pile-cards{height:calc(var(--pile-height) + 4*var(--pile-step));transition:none}.table.in-game .played.showing-result{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;align-content:start;gap:12px}.table.in-game .status{grid-row:4;height:48px;min-height:0;margin:0;overflow:auto;scrollbar-width:none;padding:4px 8px}
.hand-zone{height:219px;min-height:0;margin-top:14px;display:grid;grid-template-rows:20px 123px 76px}.hand-meta{height:20px;align-items:center;white-space:nowrap;overflow:hidden}.hand{height:123px;min-height:0;padding:7px 0 5px;gap:12px;align-items:flex-start}.hand-slot-fixed{display:inline-block;width:78px;height:111px;flex-shrink:0}.hand .hand-slot-fixed .card{width:100%;height:100%}.hand-slot-empty{display:block;width:100%;height:100%;border:1px dashed #7893ae20;border-radius:7px;background:#ffffff01}
.actions{height:76px;min-height:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:28px 42px;gap:6px;justify-items:center;align-content:center}.actions>.muted{grid-row:1;grid-column:1;align-self:center;font-size:10px;line-height:1.3;text-align:center}.actions>.btn,.actions>#deal-now{grid-row:2;grid-column:1;width:220px;max-width:100%;height:40px;margin:0;padding:8px 16px;align-self:start}.poker-slot{height:39px;overflow:hidden;margin-top:5px}.poker-notice{margin:0;height:100%;padding:8px 7px 2px;font-size:10px;line-height:1.45}
.result-dialog{width:min(940px,calc(100vw - 32px));max-height:85dvh;margin:auto;padding:20px;border:1px solid #728ca5;border-radius:15px;background:#0d2034;color:#edf4fa;box-shadow:0 25px 100px #000a;overflow:auto}.result-dialog::backdrop{background:#030910bb;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #ffffff16;padding-bottom:14px}.dialog-top h2{font-size:18px;margin:0;letter-spacing:-.3px}.result-dialog .previous-cards{margin-top:18px}.result-dialog .player-result{padding:14px 10px}.result-dialog .previous-cards .result-cards{max-width:260px}
@media(max-width:850px){.result-dialog .previous-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.scores,.scores .score{height:82px}.scores .score-reason{display:none}.previous-result{height:116px;padding:9px 10px}.previous-result #previous-summary,.previous-result[data-count="3"] #previous-summary,.previous-result[data-count="4"] #previous-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px}.previous-player{gap:1px}.previous-player>b{font-size:11px}.previous-player strong{font-size:12px}.previous-player>span{font-size:9px}.previous-top #previous-heading{font-size:8px}.previous-placeholder{font-size:10px;padding-top:8px}.table.in-game{height:424px;padding-top:12px;padding-bottom:6px;grid-template-rows:18px 66px minmax(0,1fr) 48px}.table.in-game .announcement-slot{height:66px}.result-announcement{max-height:64px;font-size:11px;padding:6px 8px}.table.in-game .played{--pile-height:70px;--pile-step:35px;padding-top:4px}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:50px}.table.in-game .played .pile-layer .card-front{font-size:16px;padding:4px}.table.in-game .played .pile-layer .corner-suit{font-size:13px}.table.in-game .played .pile-layer .suit{font-size:23px}.table.in-game .status{font-size:11px}.hand-zone{height:204px;grid-template-rows:20px 108px 76px}.hand{height:108px;gap:9px}.hand-slot-fixed{width:66px;height:96px}.poker-slot{height:38px}.result-dialog{padding:14px}.dialog-top h2{font-size:15px}}
@media(max-width:400px){.hand-zone{height:192px;grid-template-rows:20px 96px 76px}.hand{height:96px;gap:6px}.hand-slot-fixed{width:clamp(43px,calc((100vw - 92px)/5),54px);height:82px}.table.in-game .played{--pile-height:69px;--pile-step:34.5px}.result-dialog .previous-cards{grid-template-columns:1fr}.dialog-top{gap:8px}.dialog-top h2{font-size:14px}.dialog-top .tool{font-size:10px;padding:8px}.table.in-game .played.showing-result{grid-template-columns:1fr}}
.result-dialog::backdrop{backdrop-filter:none}
/* Compact play view: keep all essential game controls within one viewport. */
.site-header{min-height:54px;padding-top:6px;padding-bottom:6px}.logo-plate{height:36px}.logo-plate img{width:135px}main{padding-top:12px}.page-heading{margin-bottom:10px}.page-heading h1{font-size:34px;margin:3px 0;letter-spacing:-1.7px}.title-suit{font-size:29px}.page-heading p{font-size:12px}.page-heading .eyebrow{font-size:8px}.game-meta{padding-bottom:8px}.game-room{padding:10px;border-radius:18px}.scores,.scores .score{height:54px}.score{padding:6px 12px}.score strong{font-size:23px}.score .backs,.score .score-reason{display:none}.previous-result{height:66px;margin-top:7px;padding:6px 10px}.previous-top{height:20px}.previous-result #previous-summary{margin-top:4px;gap:6px}.previous-player{gap:0}.previous-player>b{font-size:11px}.previous-player strong{font-size:12px}.previous-player>span{font-size:9px}.previous-placeholder{font-size:10px;padding:0}.table.in-game{height:clamp(250px,calc(100dvh - 400px),380px);margin-top:7px;padding-top:9px;padding-bottom:7px;grid-template-rows:16px 38px minmax(0,1fr) 28px}.table.in-game .announcement-slot{height:38px}.result-announcement{max-height:38px;font-size:11px;padding:4px 8px}.table.in-game .played{--pile-height:57px;--pile-step:28.5px;padding:2px 0}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:43px}.pile-count{margin:2px 0 5px}.table.in-game .pile-layer .card-front{padding:4px;font-size:16px}.table.in-game .pile-layer .corner{gap:3px}.table.in-game .pile-layer .corner-suit{font-size:12px}.table.in-game .pile-layer .suit{font-size:21px}.table.in-game .pile-layer .foot{font-size:8px}.table.in-game .status{height:28px;font-size:11px;padding:2px 5px}.hand-zone{height:144px;margin-top:7px;grid-template-rows:17px 87px 40px}.hand-meta{height:17px}.hand{height:87px;padding:5px 0 2px;gap:10px}.hand-slot-fixed{width:56px;height:79px}.hand .card-front{padding:5px;font-size:19px}.hand .corner{gap:4px}.hand .corner-suit{font-size:14px}.hand .suit{font-size:28px}.hand .foot{font-size:10px}.hand .card.selected{transform:translateY(-5px)}.hand .card.selected:after{font-size:7px;bottom:-4px;padding:2px 4px}.actions{height:40px;display:flex;flex-wrap:nowrap;justify-content:center;align-items:center;gap:10px}.actions>.btn,.actions>#deal-now{height:34px;width:200px;padding:6px 12px;align-self:center}.actions>.muted{max-width:280px;font-size:10px}.poker-slot{height:24px;margin-top:3px}.poker-notice{padding:4px 3px 0;font-size:9px}.sponsor-banner{margin-top:22px}.table:not(.in-game) .deck{margin-top:12px;height:100px;transform:scale(.8);transform-origin:top center}.setup{padding:4px 10px 12px}.setup p{margin-bottom:10px}.setup h2{font-size:26px}.setup label{margin:6px}
@media(max-width:700px){.site-header{min-height:46px;padding:5px 12px;gap:10px}.logo-plate{height:30px}.logo-plate img{width:112px}.header-label{font-size:9px}.version{font-size:8px;padding:4px}main{padding:8px 9px 0}.page-heading{display:flex;align-items:center;gap:8px;margin-bottom:7px}.page-heading h1{font-size:29px}.page-heading .eyebrow{font-size:6px;letter-spacing:.7px}.page-heading p{font-size:10px;max-width:190px}.toolbar{max-width:150px;gap:4px;margin-top:0}.tool{font-size:8px;padding:6px}.game-meta{font-size:8px;gap:8px;padding-bottom:6px}.meta-pill{font-size:7px}.meta-right{display:none}.game-room{padding:7px;border-radius:13px}.scores,.scores .score{height:45px}.score{flex-direction:row;align-items:center;padding:4px 7px;gap:3px}.score b{font-size:10px}.score small{font-size:7px;margin-top:2px}.score strong{font-size:19px}.score strong em{font-size:8px}.previous-result{height:78px;margin-top:6px;padding:5px 7px}.previous-top{height:18px}.previous-top .tool{font-size:8px;padding:3px 6px}.previous-result #previous-summary,.previous-result[data-count="3"] #previous-summary,.previous-result[data-count="4"] #previous-summary{gap:3px 8px;margin-top:4px}.previous-player>b{font-size:10px;line-height:1.2}.previous-player strong{font-size:10px}.previous-player>span{font-size:8px;line-height:1.2}.table.in-game{height:clamp(240px,calc(100dvh - 370px),360px);padding:8px 9px 5px;margin-top:6px;grid-template-rows:15px 38px minmax(0,1fr) 28px}.table.in-game .played{--pile-height:52px;--pile-step:26px}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:39px}.table.in-game .pile-layer .card-front{font-size:14px;padding:3px}.table.in-game .pile-layer .corner-suit{font-size:11px}.table.in-game .pile-layer .suit{font-size:18px}.table.in-game .pile-layer .foot{font-size:7px}.pile-name{font-size:9px}.pile-count{font-size:7px}.table.in-game .status{font-size:10px}.hand-zone{height:139px;grid-template-rows:17px 82px 40px;margin-top:6px}.hand{height:82px;gap:8px}.hand-slot-fixed{width:52px;height:74px}.hand .card-front{font-size:17px}.hand .suit{font-size:26px}.hand .corner-suit{font-size:12px}.hand .foot{font-size:9px}.actions{gap:6px}.actions>.muted{max-width:135px;font-size:8px}.actions>.btn,.actions>#deal-now{width:180px;font-size:11px}.hand-meta{font-size:7px}.poker-slot{height:24px}.poker-notice{font-size:8px}.table.in-game .played.showing-result{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.player-result{padding:5px}.result-name{font-size:10px;margin-bottom:5px}.result-name strong{font-size:15px}.result-cards{margin-bottom:5px}.result-hand-label{font-size:10px}.result-reasons{font-size:9px}.result-announcement{font-size:10px}.sponsor-banner{margin-top:18px}}
@media(max-width:360px){.toolbar{max-width:125px}.toolbar .tool{font-size:7px;padding:5px}.hand{gap:6px}.hand-slot-fixed{width:46px;height:70px}.hand-meta>span:last-child{display:none}.actions>.muted{max-width:100px}.actions>.btn,.actions>#deal-now{width:160px}}
/* Reserve space for the compact header and controls on shorter displays. */
@media(min-width:701px){.table.in-game{height:clamp(230px,calc(100dvh - 535px),380px)}}
@media(max-width:700px){.table.in-game{height:clamp(225px,calc(100dvh - 465px),350px)}}
@media(min-width:701px){.site-header{min-height:44px}.logo-plate{height:30px}main{padding-top:6px}.page-heading h1{font-size:30px}.page-heading{margin-bottom:7px}.previous-result{height:54px}.previous-top{height:17px}.previous-top .tool{padding:3px 8px}.previous-result #previous-summary{margin-top:2px}.table.in-game{height:clamp(270px,calc(100dvh - 495px),380px)}.table.in-game .played{--pile-height:48px;--pile-step:24px}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:37px}.table.in-game .pile-layer .card-front{font-size:13px;padding:3px}.table.in-game .pile-layer .corner-suit{font-size:10px}.table.in-game .pile-layer .suit{font-size:18px}.table.in-game .pile-layer .foot{font-size:7px}}
@media(max-width:700px) and (max-height:780px){.table.in-game .played{--pile-height:42px;--pile-step:21px}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:33px}.table.in-game .pile-layer .card-front{font-size:12px;padding:2px}.table.in-game .pile-layer .corner-suit{font-size:10px}.table.in-game .pile-layer .suit{font-size:16px}.table.in-game .pile-count{margin-bottom:3px}.table.in-game{height:clamp(250px,calc(100dvh - 465px),350px)}}
@media(min-width:701px){.table.in-game .played{--pile-height:44px;--pile-step:22px}}
@media(max-width:700px) and (max-height:780px){.table.in-game .played{--pile-height:36px;--pile-step:18px}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:29px}}
/* Let mobile table cards use the available felt height, including five half-overlapped cards. */
@media(max-width:700px){.table.in-game .played{--pile-height:clamp(40px,calc((100dvh - 581px)/3),72px);--pile-step:calc(var(--pile-height)/2)}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:calc(var(--pile-height)*.71)}.table.in-game .pile-layer .card-front{font-size:calc(var(--pile-height)*.27);padding:calc(var(--pile-height)*.065)}.table.in-game .pile-layer .corner{gap:calc(var(--pile-height)*.065)}.table.in-game .pile-layer .corner-suit{font-size:calc(var(--pile-height)*.22)}.table.in-game .pile-layer .suit{font-size:calc(var(--pile-height)*.4)}.table.in-game .pile-layer .foot{font-size:calc(var(--pile-height)*.14)}}
/* Keep the exchange button clear of the card touch targets. The reserved
   poker strip is empty during exchange, so the table and hand stay fixed. */
.actions>#swap{transform:translateY(14px)}
.actions>#swap:hover{transform:translateY(13px)}
.actions>#swap:active{transform:translateY(16px)}
/* Desktop cards expand into the available table height. */
@media(min-width:701px){.table.in-game .played{--pile-height:clamp(46px,calc((100dvh - 642px)/3),78px);--pile-step:calc(var(--pile-height)/2)}.table.in-game .played .pile-cards,.table.in-game .played .pile-layer .card,.table.in-game .played .pile-empty{width:calc(var(--pile-height)*.74)}.table.in-game .pile-layer .card-front{font-size:calc(var(--pile-height)*.29);padding:calc(var(--pile-height)*.06)}.table.in-game .pile-layer .corner{gap:calc(var(--pile-height)*.055)}.table.in-game .pile-layer .corner-suit{font-size:calc(var(--pile-height)*.22)}.table.in-game .pile-layer .suit{font-size:calc(var(--pile-height)*.41)}.table.in-game .pile-layer .foot{font-size:calc(var(--pile-height)*.14)}}
@media(min-width:701px) and (max-height:800px){.table.in-game{grid-template-rows:16px 26px minmax(0,1fr) 28px}.table.in-game .announcement-slot{height:26px}.result-announcement{max-height:26px}.table.in-game .played{--pile-height:48px}}
