@font-face{font-family:Pixel;src:url('/assets/pixel.ttf') format('truetype');font-display:swap}
/* Original pixel artwork and interface, inspired by Balatro's visual language. */
:root{--cream:#fff9e9;--muted:#c6cece;--lime:#ffcb51;--border:#78888b}body{background:#18594b;font:10px Pixel,monospace;line-height:1.6}#flow{position:fixed;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none;z-index:-1}body:after{background:repeating-linear-gradient(0deg,#0000 0 2px,#0002 2px 3px);box-shadow:inset 0 0 110px 20px #06100f80;opacity:.5}.screen{max-width:1500px;padding:18px 28px 12px}header{border:0;padding:0;height:64px;margin-bottom:18px}.logo{font-size:25px;letter-spacing:-2px;color:#fff8e6;text-shadow:0 4px #17282b,3px 0 #17282b,-3px 0 #17282b;transform:rotate(-3deg)}.logo span{color:#ff6d5b}.logo small{font-size:7px;letter-spacing:2px;text-shadow:0 2px #17282b;margin-top:8px}.local{font-size:9px;letter-spacing:0;text-shadow:2px 2px #163a32}.local b{color:#ffcc52;margin-left:10px}nav button,.restart{border:0;border-radius:7px;background:#42535c;box-shadow:0 5px #1b292f,inset 0 2px #a1afb34d;padding:12px;font-size:8px;text-shadow:0 2px #0006}main{grid-template-columns:244px minmax(0,1fr) 172px;gap:22px;padding-top:0}.sidebar{border:4px solid #788284;border-radius:11px;padding:12px;background:#3a484f;box-shadow:0 7px #15272c,inset 0 0 0 3px #252f35;height:fit-content}.panel{border:3px solid #202d33;border-radius:8px;padding:15px 10px;background:#29383e;box-shadow:0 4px #1a272d;margin-bottom:16px;text-align:center}.label{color:#d1d9d7;font-size:8px;letter-spacing:0;text-shadow:0 2px #121e24}h1{font-size:12px;line-height:1.8;margin:13px 0 16px;letter-spacing:-.5px}h1 em{color:#ffce55}.match>.label{display:block;background:#31788c;border-radius:5px;padding:9px 0;margin:-11px -6px 10px;box-shadow:0 3px #173e50;color:white}.versus{display:grid;grid-template-columns:1fr 24px 1fr;font-size:9px}.versus b{color:#ffb744;font-size:8px}.match-score{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px;position:relative;padding-bottom:26px}.match-score strong{font-size:28px;line-height:1.5;background:#168ee0;box-shadow:0 4px #0a548b,inset 0 2px #69c3ec;border-radius:5px;text-shadow:0 3px #095c95}.match-score strong:last-child{background:#ee534c;box-shadow:0 4px #963b39,inset 0 2px #ff9185;text-shadow:0 3px #9d3636}.match-score span{position:absolute;bottom:0;left:0;right:0;font-size:7px;color:#cad4d6}.dots{margin-top:0}.dots i{width:28px;height:8px;border-radius:2px;background:#15272d;box-shadow:inset 0 2px #0005}.dots i.won{background:#ffca49}.opponent{align-items:center;gap:10px;text-align:left;margin:14px 0}.avatar{width:44px;height:48px;background:#eaa049;border:3px solid #ffe1a3;border-radius:4px;font-size:23px;color:#56324b;box-shadow:3px 3px #19252c}.opponent b{font-size:11px}.opponent small{font-size:6px;line-height:1.9;color:#bec9c9;margin-top:6px}.select-label{font-size:7px;color:#bccaca}select{background:#50616b;border:0;border-radius:5px;color:white;padding:11px 5px;margin-top:8px;font-size:8px;box-shadow:0 3px #1a2930}.tip p{font-size:8px;line-height:1.9}.restart{background:#e98a32;box-shadow:0 5px #975423,inset 0 2px #ffd78a;color:#fff9e8;font-size:8px;padding:13px 4px;margin-bottom:5px}.arena{padding:0 4px}.arena-top{font-size:8px;letter-spacing:0;text-shadow:0 2px #123c35;margin:0 0 13px;height:27px;align-items:center}.arena-top span:nth-child(2){background:#364a50;padding:8px 12px;border-radius:6px;box-shadow:0 4px #1b3238}.online{font-size:7px;color:#c6e9c7}.table{height:368px;background:#0c40321c;border:0;outline:0;border-radius:0;box-shadow:none}.table:before{inset:0;border:0;border-top:2px solid #b4dec21c;border-bottom:2px solid #b4dec21c;border-radius:0}.seat{left:10px;right:10px}.bot-seat{top:9px}.player-seat{bottom:10px}.seat-title{font-size:10px;text-shadow:0 2px #12322d;font-weight:normal}.seat-title>span{background:#28453fbd;border-radius:5px;padding:8px 10px}.seat-title small{font-size:6px;color:#d1e8da;line-height:1.8;margin-top:6px}.value{font-size:25px;text-align:center;min-width:95px;padding:6px 10px;background:#168ee0;border:3px solid #71c5ed;border-radius:6px;box-shadow:0 4px #075a8a;text-shadow:0 3px #0f538c;color:#fff}.bot-seat .value{background:#ee534c;border-color:#fb9b8a;box-shadow:0 4px #9b3c37;text-shadow:0 3px #aa3939}.value small{font-size:9px;color:#fff;line-height:1}.value.bust{background:#842d39}.cards{gap:13px}.played{min-height:105px;margin:12px 0 0}.card{width:78px;height:108px;border:3px solid #d4d9d8;border-radius:5px;background:#fffdf0;color:#273b4a;box-shadow:0 5px #172e2ba6}.card.red{color:#e24842}.card .corner{top:7px;left:5px;font-size:13px;line-height:1;z-index:1;font-weight:normal}.card .corner small{margin-top:5px;font-size:11px}.card .bottom{left:auto;top:auto;bottom:7px;right:5px}.card canvas{width:100%;height:100%;image-rendering:pixelated}.card .suit{display:none}.card.face{background:#fffdf0}.played .card{width:70px;height:98px}.hidden-hand{top:12px;right:126px}.back{width:31px;height:44px;background:repeating-conic-gradient(#254eb2 0 25%,#769de1 0 50%) 0 0/6px 6px;border:3px solid #e5e5cc;border-radius:4px;transform:rotate(5deg);margin-left:-10px;box-shadow:2px 3px #173c32}.table-center{left:13px;right:13px;top:164px;opacity:1;pointer-events:none}.center-brand{font-size:25px;font-weight:normal;color:#dcf0ce3b;letter-spacing:-1px;text-shadow:0 3px #193f2d44;transform:rotate(-3deg)}.center-brand small{font-size:6px;letter-spacing:1px;margin-top:9px;color:#d2e6c866}.deck{height:60px;width:44px;border:4px solid #e3e0c8;background:repeating-conic-gradient(#e5594b 0 25%,#ff9685 0 50%) 0 0/8px 8px;border-radius:4px;box-shadow:2px 2px #bcc9ba,4px 4px #eef0d9,6px 6px #bec9b4,8px 9px #15382f;transform:rotate(4deg)}.deck span{color:#fff4d0;background:#cd4a44;border:2px solid #fff4d0;font-size:20px;padding:3px}.deck-count{background:#2e4941c9;border-radius:5px;padding:8px}.deck-count b{font-size:17px}.deck-count small{font-size:6px;margin-top:5px}.hand-area{padding:15px 0 0}.hand-caption{font-size:7px;line-height:1.6;text-shadow:0 2px #183e32}.hand-caption span:first-child{color:#ffdb6f;letter-spacing:0}.hand{margin:24px 0 18px;min-height:115px;gap:17px}.hand .card{width:86px;height:119px;transform:rotate(-3deg)}.hand .card:nth-child(3){transform:rotate(3deg)}.hand .card.selected{outline:3px solid #ffcf53;box-shadow:0 6px #75541b}.actions{gap:13px}.action{border:0;border-radius:7px;font-size:11px;font-weight:normal;letter-spacing:0;padding:17px 5px;color:#fff;text-shadow:0 2px #0004;box-shadow:0 6px var(--button-shadow),inset 0 3px #ffffff36}.action:active{transform:translateY(4px);box-shadow:0 2px var(--button-shadow)}.action small{font-size:7px;letter-spacing:0;margin-top:8px;color:#fff8e0}.play{background:#169bdc;--button-shadow:#096292}.swap{background:#eb584c;--button-shadow:#993b37}.stand{background:#e99632;--button-shadow:#986020}button:disabled{opacity:1;filter:saturate(.45) brightness(.7)}.action-note{font-size:7px;line-height:1.8;text-shadow:0 2px #183d31;margin-top:16px;min-height:24px;color:#e0ead9}.rightbar{padding-top:39px}.round-stamp{background:#32464e;border:4px solid #85918e;border-radius:9px;padding:15px 6px;margin:0;transform:none;box-shadow:0 6px #192d32,inset 0 0 0 3px #223238}.round-stamp span{display:block;font-size:9px;letter-spacing:0;background:#d88c36;border-radius:4px;padding:9px;color:#fff3d9;margin-bottom:14px;box-shadow:0 3px #8a522c}.round-stamp b{font-size:55px;line-height:1.4;color:#f7ca50;text-shadow:0 5px #8f6631;font-weight:normal}.round-stamp small{display:block;font-size:6px;line-height:1.9;color:#dde2d2;margin-top:10px}.journal{margin-top:24px;background:#203d36a6;border-radius:7px;padding:12px 10px;min-height:180px}.journal .label{font-size:7px}.journal ol{margin:0;font-size:6px;line-height:1.8;color:#bfdbcc}.journal li{margin:14px 0 0;padding:0;border:0}.journal li:first-child{color:#ffdf78;border:0}.legend{margin-top:22px}.legend p{font-size:6px;line-height:2;color:#c4dfce}footer{border:0;padding:0;font-size:6px;letter-spacing:0;color:#c2dfc9;text-shadow:0 2px #183c31;margin-top:17px;gap:15px}.result{inset:24px 15px;background:#354951f7;border:4px solid #8b999c;border-radius:9px;padding:35px 12px;box-shadow:0 8px #172e32,inset 0 0 0 3px #22333b}.result>span{font-size:8px;letter-spacing:0;color:#efcc6a}.result h2{font-size:22px;line-height:1.7;color:#ffce57;text-shadow:0 3px #96652e;margin:20px 0}.result p{font-size:8px;line-height:1.8;margin-bottom:23px}.result .action{font-size:9px;padding:16px 12px}dialog{max-width:580px;background:#35464f;color:#fff5dd;border:4px solid #8f9c9e;border-radius:10px;padding:30px;box-shadow:0 8px #172b32,inset 0 0 0 3px #213038}dialog::backdrop{background:#041d19cc}dialog h2{font-size:22px;line-height:1.6;color:#ffcd54;text-shadow:0 3px #8d5f2c}dialog p{font-size:9px;line-height:2}.muted{font-size:7px!important;color:#beced1}.close{font-size:20px}.close-rules{margin-top:15px}
@media(min-width:701px) and (max-height:800px){.screen{padding-top:12px}header{height:48px;margin-bottom:14px}.table{height:305px;border-radius:0}.table-center{top:132px}.played{min-height:80px;margin-top:9px}.played .card{width:57px;height:80px}.played .corner{font-size:10px;top:5px;left:4px}.played .corner small{font-size:8px;margin-top:4px}.played .bottom{top:auto;left:auto;bottom:5px;right:4px}.hand-area{padding-top:12px}.hand{margin:21px 0 15px;min-height:100px}.hand .card{width:77px;height:105px}.panel{padding:12px 9px;margin-bottom:14px}.tip{display:none}.actions .action{padding:14px 5px}.result{inset:15px;padding:22px 10px}.result h2{font-size:19px}.round-stamp b{font-size:48px}.journal{min-height:150px}.action-note{margin-bottom:0}.bot-seat{top:9px}.player-seat{bottom:10px}}
@media(max-width:1150px){main{grid-template-columns:220px minmax(0,1fr);gap:20px}.rightbar{display:none}.local{display:none}.screen{padding-left:20px;padding-right:20px}.sidebar{padding:10px}.logo{font-size:23px}}
@media(max-width:700px){.screen{padding:13px 12px}header{height:45px;margin-bottom:18px;gap:8px}.logo{font-size:17px;letter-spacing:-1px}.logo small{font-size:5px;letter-spacing:1px}nav{gap:7px}nav button{font-size:6px;padding:10px 6px}main{gap:15px;padding:0}.sidebar{display:contents}.match{display:block;order:0;padding:10px;margin:0}.match-score{display:flex;align-items:center;justify-content:space-between;padding:0;margin:0;gap:14px}.match-score strong{width:52px;font-size:19px;line-height:1.6}.match-score span{position:static;font-size:8px}.arena{padding:0}.arena-top{font-size:6px;margin-bottom:9px}.arena-top span:nth-child(2){padding:7px 9px}.online{font-size:5px}.table{height:324px;border-radius:0}.seat{left:0;right:0}.seat-title{font-size:8px}.seat-title>span{padding:7px}.seat-title small{font-size:5px}.value{font-size:20px;min-width:80px;padding:4px 6px}.value small{font-size:7px}.hidden-hand{right:102px}.played{min-height:86px;gap:8px;margin-top:14px}.played .card{width:55px;height:79px}.played .corner{font-size:9px;left:4px;top:5px}.played .corner small{font-size:7px}.played .bottom{left:auto;top:auto;right:4px;bottom:5px}.table-center{top:143px;left:6px;right:6px}.center-brand{font-size:18px}.center-brand small{font-size:5px}.deck{width:33px;height:47px;border-width:3px}.deck span{font-size:14px}.deck-count{padding:5px}.deck-count b{font-size:13px}.deck-count small{font-size:5px}.hand-caption{font-size:6px}.hand-caption span:last-child{max-width:190px;text-align:right}.hand{gap:15px;margin:25px 0 18px;min-height:110px}.hand .card{width:77px;height:107px}.actions{gap:10px}.action{font-size:8px;padding:15px 3px}.action small{font-size:6px;margin-top:7px}.action-note{font-size:6px;line-height:1.9;margin-top:15px}.sidebar>.panel.bot-settings{display:flex;align-items:center;gap:12px;margin:0;padding:10px}.bot-settings .opponent{flex-shrink:0}.bot-settings .avatar{height:34px;width:31px;font-size:18px}.bot-settings .opponent b{font-size:8px}.restart{width:100%;margin:0}footer{font-size:5px;margin-top:15px}.result{inset:17px 5px;padding:24px 8px}.result h2{font-size:16px}.result>span{font-size:7px}.result p{font-size:7px}.result .action{font-size:8px}dialog{padding:22px}dialog h2{font-size:17px}dialog p{font-size:8px}}
@media(max-width:700px){.match>.label,.match .versus{display:none}.match-score span{font-size:7px}.hand .card .corner{font-size:13px}}
.card{animation:none;will-change:translate,rotate}.card-ghost{position:fixed!important;z-index:30;pointer-events:none;transform:none!important;margin:0!important}.played .card{cursor:default}.hand .card:not(:disabled):hover{transform:translateY(-10px) rotate(-2deg);box-shadow:3px 9px #162d2bb3}.hand .card.selected:not(:disabled):hover{transform:translateY(-17px) rotate(2deg)}.result:not([hidden]){animation:result-pop .4s cubic-bezier(.2,.8,.3,1.2)}@keyframes result-pop{from{opacity:0;transform:scale(.85) rotate(-3deg)}to{opacity:1;transform:scale(1) rotate(0)}}
