@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root{font-family:'DM Sans',sans-serif;background:#101b19;color:#f5f0df;line-height:1.5;font-synthesis:none;--gold:#e3bd68;--muted:#a2b6aa;--border:#ffffff1a;--green:#71de9c}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 70% 0,#284139 0,transparent 60%),#101b19}button,input,textarea{font:inherit}button,a,input,textarea{outline-offset:4px}button{cursor:pointer;border:1px solid #ffffff26;background:#23392f;color:#eee8d5;padding:10px 16px;border-radius:9px;transition:background .15s,transform .15s}button:hover:not(:disabled){background:#365543;transform:translateY(-1px)}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit;text-decoration:none}.primary{background:var(--gold);color:#1d291d;border-color:#f0d28f;font-weight:700}.primary:hover:not(:disabled){background:#f2d48e}.danger{background:#6c332e;border-color:#aa5c4e}.quiet{background:transparent;border-color:transparent}.full{width:100%}h1,h2,h3,p{margin:0}h1{font-family:'Playfair Display',serif;font-size:clamp(32px,5vw,62px);font-weight:500;letter-spacing:-1.8px;line-height:1.15}h2{font-size:21px;letter-spacing:-.4px;font-weight:600}h3{font-size:16px}p{color:var(--muted);margin-top:12px}small{color:var(--muted);font-size:11px}.small{font-size:12px}.gold{color:var(--gold)}.eyebrow{font-size:10px;letter-spacing:2.5px;color:var(--gold);font-weight:700;margin-bottom:14px}.top{min-height:94px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:18px max(24px,calc((100vw - 1320px)/2));gap:24px}.brand{font-size:19px;font-weight:700;letter-spacing:1px;display:flex;align-items:center;gap:12px}.brand-symbol{font-size:36px;color:var(--gold);border:1px solid #d8bc7455;border-radius:50%;width:52px;height:52px;display:grid;place-content:center}.brand small{display:block;font-size:8px;letter-spacing:3px;margin-top:2px}.top-links,.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.top-links button{font-size:12px}.wallet{font-size:18px;color:var(--gold);margin-right:8px}.wallet small{display:block;font-size:8px;letter-spacing:1.5px}.panel{background:linear-gradient(140deg,#263c32d9,#1a2c25e8);border:1px solid var(--border);border-radius:16px;padding:26px}.panel>p{font-size:13px}.welcome{max-width:1160px;margin:65px auto 80px;padding:0 30px;display:grid;grid-template-columns:1.25fr 1fr;gap:90px;align-items:center}.welcome h1 em{color:var(--gold);font-style:normal}.welcome>section>p{max-width:420px}.welcome-cards{display:flex;gap:10px;margin:50px 0}.welcome-cards span{font-family:Georgia,serif;font-size:42px;width:110px;height:145px;display:grid;place-content:center;color:#193c32;background:#faf4e2;border-radius:11px;box-shadow:4px 6px 0 #0003;transform:rotate(-12deg)}.welcome-cards span:nth-child(2){color:#9f2d2d;transform:translateY(-12px) rotate(0)}.welcome-cards span:nth-child(3){transform:rotate(12deg)}.free-note{font-size:11px;max-width:680px;color:#99aa9e;margin-top:22px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--border);padding-bottom:20px;margin-bottom:24px}.tabs button{flex:1;font-size:12px}.auth h2{margin-bottom:8px}.auth p{font-size:13px}.auth form{margin-top:24px}label{display:block;font-size:12px;color:#c7d4c9;margin-bottom:17px}input,textarea{display:block;width:100%;background:#101f19;color:#f8f4e6;border:1px solid #4b6354;border-radius:8px;padding:11px 12px;margin-top:7px;min-width:0}input:focus,textarea:focus{outline:2px solid #e3bd6844;border-color:var(--gold)}textarea{min-height:75px;resize:vertical}.form-error{color:#ffb4a6;font-size:12px;margin:10px 0}footer{max-width:1320px;margin:0 auto;padding:28px;border-top:1px solid var(--border);font-size:10px;letter-spacing:2px;color:#8ba193}.lobby,.admin{max-width:1320px;margin:42px auto 65px;padding:0 26px}.lobby-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:25px;margin-bottom:35px}.lobby-heading h1{font-size:43px}.lobby-heading p{font-size:13px}.table-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}.table-card{border-radius:15px;border:1px solid #6d8d713b;background:linear-gradient(145deg,#2e4937,#1b3127);padding:18px;position:relative;overflow:hidden}.table-card-top{display:flex;align-items:center;justify-content:space-between;gap:6px}.pill{font-size:9px;font-weight:700;letter-spacing:1px;background:#b2954f24;color:#f4d890;padding:5px 8px;border-radius:5px}.seat-count{font-size:10px;white-space:nowrap;color:#b9caba}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:4px}.full-dot{background:#e3bd68}.mini-table{height:100px;border:5px solid #806c405c;background:radial-gradient(ellipse,#3b6951,#1e4131);border-radius:50%;display:flex;align-items:center;justify-content:center;gap:14px;margin:28px 4px;color:#d7ba75;box-shadow:inset 0 0 0 1px #e6cf9466}.mini-table b{font-size:12px}.mini-table span{font-size:24px;opacity:.5}.table-card h2{font-size:18px}.table-card p{font-size:10px;margin:6px 0 20px}.table-card>button{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:12px}.lobby-bottom{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:30px}.data-scroll{overflow:auto}table{border-collapse:collapse;width:100%;margin-top:20px;font-size:12px;text-align:left}th{font-size:10px;color:#97ac9b;letter-spacing:1px;text-transform:uppercase;padding:12px;border-bottom:1px solid #ffffff26}td{padding:13px 12px;border-bottom:1px solid #ffffff0c}td small{display:block;margin-top:3px;font-size:10px}td button{font-size:10px;padding:7px 9px;margin:2px}.status{border-radius:30px;padding:4px 9px;background:#b39b4b2b;color:#ebd892;font-size:10px}.status.active,.status.approved{color:#8fdeb0;background:#4b96752b}.status.rejected,.status.suspended{color:#ffb5a2;background:#a5513c33}.activity{margin-top:15px}.activity>div{display:flex;justify-content:space-between;gap:20px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--border)}.activity small{display:block;font-size:9px}.positive{color:#a3e1ae}.negative{color:#e6b39e}dialog{border:1px solid #6a825c;background:#1d3127;color:#f7f0dc;border-radius:18px;padding:28px;width:min(540px,calc(100vw - 30px));max-height:85vh;box-shadow:0 30px 100px #0008}dialog::backdrop{background:#06100bd9;backdrop-filter:blur(6px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.modal-head button{font-size:26px;line-height:1;padding:5px 10px}.rules p{font-size:13px;margin:14px 0}#toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,20px);max-width:min(630px,90vw);z-index:10000;opacity:0;pointer-events:none;background:#e6c581;color:#1a2b20;padding:15px 24px;border-radius:10px;font-size:13px;box-shadow:0 8px 25px #0005;transition:.2s}#toast.show{opacity:1;transform:translate(-50%,0)}#toast.error{background:#f3bcad;color:#441e17}.loading{padding:20vh 20px;text-align:center;font-size:20px;color:var(--gold)}.table-page{max-width:1300px;padding:22px;margin:auto}.table-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:15px}.table-toolbar .eyebrow{margin-bottom:3px}.table-toolbar h2{font-family:'Playfair Display',serif;font-size:25px}.table-toolbar button{font-size:11px}.felt{position:relative;isolation:isolate;min-height:620px;border-radius:170px;background:radial-gradient(ellipse,#3f7258,#234a38 75%);border:15px solid #705d3a;outline:1px solid #c2a66d88;box-shadow:inset 0 0 0 2px #ac915c,0 16px 30px #0004;max-width:1100px;margin:25px auto 0;overflow:hidden}.felt-pattern{position:absolute;z-index:-1;left:50%;top:50%;transform:translate(-50%,-50%);font-family:Georgia;font-size:350px;opacity:.04}.seat{position:absolute;text-align:center;width:270px;z-index:2;display:flex;align-items:center;flex-direction:column}.seat-left{left:4%;top:28px}.seat-right{right:4%;top:28px}.seat-bottom{bottom:14px;left:50%;transform:translateX(-50%);width:80%}.seat strong{font-size:13px;margin-top:7px}.seat small{font-size:10px}.avatar{position:relative;width:64px;height:64px;border-radius:50%;background:#163528;border:2px solid #acb9a177;display:grid;place-items:center;color:#f3d89b;font-size:20px;box-shadow:0 4px 10px #0005}.avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.turn-ring{position:absolute;inset:-7px;width:74px;height:74px;transform:rotate(-90deg);overflow:visible}.turn-ring circle{fill:none;stroke:#7cfa9a;stroke-width:5;stroke-linecap:round;stroke-dasharray:100;stroke-dashoffset:var(--ring-start);filter:drop-shadow(0 0 4px #5bf48888);animation:turn-ring var(--ring-duration) linear forwards}@keyframes turn-ring{to{stroke-dashoffset:100}}.avatar.active{box-shadow:0 0 20px #70ef7f44}.hitter{font-size:9px;color:var(--gold);letter-spacing:1px}.card-count{font-size:10px;background:#0002;padding:3px 8px;border-radius:12px;margin-top:4px}.meld-area{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px;min-height:43px;max-width:100%}.meld{display:flex;cursor:pointer;background:#ffffff0c;border-radius:4px;padding:3px 12px 3px 3px;border:1px solid #e3bd6822}.meld:hover{border-color:var(--gold)}.playing-card{padding:0;border-radius:6px;background:#fff8e9;position:relative;aspect-ratio:100/140;width:72px;flex-shrink:0;box-shadow:0 2px 5px #0004;color:#101711;border:1px solid #d5c4a2;overflow:hidden;vertical-align:middle}.playing-card svg{width:100%;height:100%;display:block}.meld .playing-card{width:28px;border-radius:2px;margin-right:-12px;pointer-events:none}.playing-card:hover:not(:disabled){background:#fff9ee}.playing-card.selected{transform:translateY(-17px);border:3px solid #edc76b;box-shadow:0 0 0 2px #fad28355}.playing-card.selectable:hover{transform:translateY(-8px)}.playing-card.selected:hover{transform:translateY(-17px)}.table-center{position:absolute;top:190px;left:50%;transform:translateX(-50%);width:75%;text-align:center;z-index:1;display:flex;flex-direction:column;align-items:center;gap:6px}.pot{display:flex;align-items:center;gap:10px;padding:6px 15px;border-radius:24px;background:#112b2099;border:1px solid #b9a36b55}.pot small{font-size:8px;letter-spacing:2px;color:#c4c6a1}.pot b{font-size:18px;color:#f5d68a}.table-status{font-size:12px;margin:3px 0;color:#c9ddc9}.table-center>small{font-size:9px}.join{font-size:16px;padding:10px 27px;animation:pulse-in .4s both}.watching{font-size:9px;letter-spacing:2px;color:#dbc792}.draw-area{display:flex;justify-content:center;gap:30px;align-items:center;margin-top:7px}.stock{height:94px;width:68px;border-radius:6px;border:4px solid #eadfc0;background:repeating-linear-gradient(45deg,#182f49,#182f49 4px,#213c56 4px,#213c56 6px);display:grid;place-content:center;gap:2px;color:#e2cf94;box-shadow:3px 3px 0 #eee5ce,5px 5px 0 #28392e}.stock span{font-size:29px}.stock small{font-size:9px;white-space:nowrap}.stock:disabled{opacity:1;cursor:default}.stock.available{box-shadow:0 0 20px #d9bf7466;cursor:pointer}.discard-stack{position:relative;width:65px;height:91px}.discard-stack>.playing-card{width:65px;pointer-events:none}.empty-pile{border:1px dashed #c8d8b666;border-radius:6px;display:grid;place-content:center;height:91px;color:#c6d6ba88;font-size:10px}.history-arrow{position:absolute;right:-16px;bottom:-5px;width:30px;height:30px;padding:0;display:grid;place-content:center;border-radius:50%;background:#cfb678;color:#15281c;box-shadow:0 3px 10px #0005}.lone-countdown{font-size:10px;color:#ffda99}.score-label{color:#f1da9a}.player-area{position:relative;max-width:1100px;margin:22px auto 0;border:1px solid var(--border);border-radius:15px;padding:20px 20px 15px;background:#1b2e24}.hand-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#d0dccd}.hand{display:flex;flex-direction:row-reverse;align-items:center;justify-content:center;gap:2px;min-height:130px;padding-top:25px;padding-bottom:12px;overflow:auto}.hand>.playing-card{width:clamp(40px,5vw,67px)}.hand>p{font-size:13px;text-align:center}.game-controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:10px}.game-controls button{font-size:12px;padding:10px 15px}.player-area>.small{text-align:center;margin-top:12px;font-size:10px}.game-log{display:flex;justify-content:center;gap:15px;flex-wrap:wrap;font-size:10px;color:#8ba292;margin:18px 0}.fight-overlay{position:fixed;z-index:50;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(140deg,#293b2ff7,#12231bf9);border:2px solid #cda859;border-radius:20px;padding:28px;box-shadow:0 0 0 100vmax #08140baa,0 30px 100px #0009;text-align:center;width:min(650px,90vw)}.fight-banner,.winner-banner{font-family:'Playfair Display',serif;color:#f4d88d;font-size:42px;animation:fight-in .45s cubic-bezier(.2,1.7,.4,1) both;text-shadow:0 3px 16px #d1a14855}.fight-overlay>.actions{justify-content:center;margin-top:20px}.fight-responses{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:22px}.response{padding:12px 18px;border-radius:10px;background:#ffffff0b;border:1px solid var(--border);font-size:10px;animation:pulse-in .35s both}.response b{display:block;color:var(--gold);font-size:17px;margin-top:7px}.response.challenge{border-color:#8bda9c}.response.fold,.response.burn{border-color:#cc7966}.win-net{font-size:23px;color:#a1e6b7}.history-grid{display:flex;gap:16px;flex-wrap:wrap;margin-top:22px}.history-grid>div{width:72px;text-align:center}.history-grid small{display:block;font-size:9px;margin-top:5px}.history-grid .playing-card{width:60px}@keyframes fight-in{from{opacity:0;transform:scale(2) rotate(-8deg)}to{opacity:1;transform:scale(1) rotate(0)}}@keyframes pulse-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.admin>.panel{margin-top:22px}.filter-bar{display:flex;align-items:flex-end;gap:15px;flex-wrap:wrap;background:#ffffff06;padding:20px;border-radius:12px;margin-bottom:22px}.filter-bar label{margin:0;flex:1;min-width:150px}.filter-bar button{height:43px}.admin-stats{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-stats small{font-size:9px;letter-spacing:2px}.admin-stats strong{display:block;font-family:'Playfair Display';font-size:44px;color:var(--gold);margin-top:8px}.admin-stats p{font-size:11px}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:15px;font-size:12px;margin-top:20px}.admin-tables{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:20px}.admin-tables small{display:block}.rules{max-height:60vh;overflow:auto}

@media(min-width:1700px){.table-grid{grid-template-columns:repeat(5,1fr)}}@media(max-width:1100px){.table-grid{grid-template-columns:repeat(3,1fr)}.top{padding:18px 25px}.table-card-top{flex-wrap:wrap}.game-controls{gap:5px}.seat-left{left:2%;width:230px}.seat-right{right:2%;width:230px}}@media(max-width:750px){.top{padding:13px 16px;align-items:flex-start}.brand{font-size:13px;gap:7px}.brand-symbol{width:35px;height:35px;font-size:24px}.brand small{font-size:6px;letter-spacing:1px}.top-links{gap:5px;justify-content:flex-end}.top-links button{padding:6px 8px;font-size:10px}.wallet{font-size:14px;margin:0}.wallet small{font-size:6px}.welcome{display:block;margin-top:35px;padding:0 22px}.welcome>section>h1{font-size:43px}.welcome-cards{display:none}.welcome .free-note{margin-bottom:30px}.welcome .auth{padding:23px}.lobby,.admin{padding:0 16px;margin-top:27px}.lobby-heading{align-items:flex-start;flex-direction:column;gap:18px}.lobby-heading h1{font-size:34px}.table-grid{grid-template-columns:repeat(2,1fr);gap:12px}.table-card{padding:13px}.mini-table{height:76px;margin:18px 0;border-width:4px;gap:8px}.mini-table b{font-size:10px}.mini-table span{font-size:18px}.table-card h2{font-size:15px}.table-card-top .pill{font-size:8px}.seat-count{font-size:9px}.lobby-bottom,.admin-stats{grid-template-columns:1fr}.panel{padding:20px}.table-page{padding:14px 9px}.table-toolbar{gap:8px}.table-toolbar h2{font-size:18px}.table-toolbar button{font-size:9px;padding:7px}.table-toolbar .actions{gap:2px}.table-toolbar .eyebrow{font-size:8px;letter-spacing:1px}.felt{border-width:8px;border-radius:65px;min-height:580px}.seat{width:45%}.seat-left{left:1%;top:20px}.seat-right{right:1%;top:20px}.seat-bottom{width:90%;bottom:13px}.avatar{width:50px;height:50px;font-size:16px}.turn-ring{width:60px;height:60px;inset:-7px}.seat strong{font-size:11px}.seat small{font-size:8px}.seat .meld-area{gap:4px;max-height:90px;overflow:auto}.meld .playing-card{width:22px;margin-right:-10px}.table-center{top:200px;width:93%}.table-status{font-size:10px;max-width:95%}.pot{padding:4px 10px}.pot b{font-size:16px}.pot small{font-size:7px}.draw-area{gap:26px;margin-top:5px}.stock{height:76px;width:55px}.discard-stack{width:55px;height:77px}.discard-stack>.playing-card{width:55px}.empty-pile{height:77px}.player-area{padding:13px 7px}.hand{gap:0;justify-content:flex-start;min-height:114px;padding-left:8px;padding-right:8px}.hand>.playing-card{width:45px;margin-left:-14px;flex-shrink:0}.hand>.playing-card:last-child{margin-left:0}.hand-label{padding:0 5px;font-size:11px}.game-controls button{padding:9px 10px;font-size:10px}.fight-banner,.winner-banner{font-size:32px}.fight-overlay{padding:22px 14px}.response{padding:10px}.response b{font-size:14px}.admin-tables{grid-template-columns:repeat(2,1fr)}.game-log{font-size:9px}.table-center .lone-countdown{font-size:9px;max-width:90%}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition:none!important}.turn-ring circle{animation:none;stroke-dashoffset:var(--ring-start)}}



select{font:inherit;color:#f5f0df;background:#182d23;border:1px solid #ffffff26;border-radius:9px;padding:12px;width:100%;margin-top:8px}


/* The full player station belongs inside the felt. */
.felt{min-height:760px}.felt>.seat-bottom{bottom:240px}.felt>.game-controls{position:absolute;bottom:205px;left:50%;transform:translateX(-50%);width:90%;margin:0;z-index:3}.felt>.game-controls button{box-shadow:0 3px 8px #0003}.felt>.own-melds{position:absolute;bottom:260px;left:15%;width:70%;max-height:70px;overflow:auto;z-index:2}.felt>.player-area{position:absolute;bottom:20px;left:0;width:100%;max-width:none;margin:0;padding:0 115px;background:transparent;border:0;border-radius:0;min-height:155px}.player-area .hand{min-height:125px;justify-content:center;flex-direction:row;gap:3px;overflow-x:auto;padding:20px 4px 5px}.player-area .hand>.playing-card{width:clamp(43px,4.7vw,65px);margin:0;flex-shrink:0}.player-area .hand>.playing-card+.playing-card{margin-left:-18px}.player-area .hand>.playing-card.grouped{border-bottom:4px solid #e6c06e}.player-area .hand>.playing-card.group-1{border-bottom-color:#90d6b5}.player-area .hand>.playing-card.group-2{border-bottom-color:#a9baff}.player-area .hand>.playing-card.group-3{border-bottom-color:#eca8b6}.player-area>.hand-label{justify-content:center;gap:10px;font-size:10px}.player-area>.small{margin-top:4px;font-size:9px}.your-profile{position:absolute;left:17px;top:30px;width:90px;display:flex;align-items:center;flex-direction:column;text-align:center;gap:3px}.your-profile strong{font-size:12px;max-width:100%;overflow-wrap:anywhere}.your-profile small{font-size:10px}.hand-sort{position:absolute;right:14px;top:55px;width:90px;border-radius:24px;background:linear-gradient(#74d1c9,#28786e);border:1px solid #b3f0d6;color:#fff;font-size:12px;font-weight:700;padding:10px}.hand-sort:hover:not(:disabled){background:#338d7d}
@media(max-width:750px){.felt{min-height:780px}.felt>.game-controls{bottom:202px;width:95%;gap:5px}.felt>.game-controls button{padding:9px 10px;font-size:10px}.felt>.own-melds{bottom:285px;left:8%;width:84%}.felt>.player-area{padding:0 65px;bottom:24px;min-height:148px}.your-profile{left:4px;width:57px;top:34px}.your-profile .avatar{width:42px;height:42px;font-size:14px}.your-profile .turn-ring{width:52px;height:52px}.your-profile strong{font-size:9px}.your-profile small{font-size:8px}.hand-sort{right:4px;width:55px;font-size:10px;padding:8px 4px;top:58px}.player-area .hand{justify-content:flex-start;min-height:112px;padding:20px 3px 6px}.player-area .hand>.playing-card{width:48px}.player-area .hand>.playing-card+.playing-card{margin-left:-26px}.player-area>.small{font-size:8px}.player-area>.hand-label{font-size:9px}.felt>.seat-bottom{bottom:300px}}
/* Table styling adapted from the supplied Desktop/Tongits reference. */
body:has(.reference-table){background:radial-gradient(ellipse at 50% 25%,#76542b,#302318 75%)}body:has(.reference-table)>.top,body:has(.reference-table) .top{background:linear-gradient(#382818,#1d1711);border-bottom:1px solid #9d773b}.reference-table{max-width:1450px;padding:15px 24px}.reference-table .table-toolbar{margin-bottom:14px}.reference-table .table-toolbar h2{font-size:20px}.reference-table .reference-game{max-width:none;margin:0 auto;min-height:700px;border:10px solid #74522b;border-radius:40px;outline:2px solid #d3b66b;background:radial-gradient(ellipse at 50% 35%,#3eaa96,#1b7365 55%,#104c42);box-shadow:inset 0 0 0 3px #bd9654,inset 0 0 0 7px #184b3f,0 14px 40px #0006;overflow:hidden}.reference-game .felt-pattern{top:155px;left:50%;font:bold italic 30px Georgia,serif;letter-spacing:3px;opacity:.13;white-space:nowrap;transform:translateX(-50%);color:#e7d497}.reference-game>.pot{position:absolute;z-index:4;top:0;left:50%;transform:translateX(-50%);gap:12px;white-space:nowrap;padding:12px 25px;background:linear-gradient(#365d83,#173a60);border:2px solid #d3b66b;border-top:0;border-radius:0 0 24px 24px;box-shadow:0 4px 12px #0004}.reference-game>.pot b{font-size:20px;color:#fff2a2}.reference-game>.pot small{font-size:10px;color:#dbe5c7;letter-spacing:0}.pot-trophies{font-size:23px;filter:grayscale(1);opacity:.4}.has-hitter .pot-trophies{filter:none;opacity:1}.pot-trophies>span{filter:grayscale(1);opacity:.4}.reference-game .seat{top:65px;width:230px}.reference-game .seat-left{left:3%}.reference-game .seat-right{right:3%}.opponent-profile{display:flex;align-items:center;gap:12px;min-width:175px;max-width:100%;padding:9px 15px 9px 8px;border:1px solid #ac925f;border-radius:15px;background:linear-gradient(100deg,#674e2e,#302b20);box-shadow:0 4px 10px #0005;text-align:left}.opponent-details{display:flex;flex-direction:column;min-width:0}.opponent-details strong{font-size:14px;margin:0;overflow-wrap:anywhere}.opponent-details small{font-size:12px;color:#ffe07d;font-weight:bold}.reference-game .avatar{background:radial-gradient(circle at 35% 25%,#d8bb88,#75543c);border:3px solid #e0c07b;color:#fff8de;font-weight:bold;width:50px;height:50px;font-size:23px;flex-shrink:0}.reference-game .turn-ring{width:60px;height:60px;inset:-8px}.reference-game .card-count{background:none;display:flex;justify-content:center;margin-top:12px;padding:0;width:100%;height:35px;border:0;border-radius:0}.back-card{display:block;width:24px;height:34px;flex-shrink:0;border:2px solid #e8d8a6;border-radius:3px;background:repeating-linear-gradient(45deg,#6a3330 0 2px,#914b3d 2px 5px);box-shadow:1px 2px 3px #0006}.back-card+.back-card{margin-left:-8px}.seat-right .back-card{background:repeating-linear-gradient(45deg,#20374c 0 3px,#39566c 3px 6px)}.reference-game .seat .meld-area{max-height:100px;overflow:auto}.reference-game .table-center{top:205px;gap:7px}.reference-game .draw-area{order:0;margin-top:0;gap:32px}.reference-game .table-status{order:1;max-width:450px;width:100%;padding:5px 15px;background:#1154469c;border:1px solid #c9d7a344;border-radius:30px;color:#e6edce;font-size:11px}.reference-game .table-center>small{order:2}.reference-game .join{order:3}.reference-game .stock{background:repeating-linear-gradient(45deg,#416e61 0 3px,#6a8d71 3px 6px);width:68px;height:96px;color:#f7e4b1}.reference-game .discard-stack{width:68px;height:96px}.reference-game .discard-stack>.playing-card{width:68px}.reference-game .own-melds{bottom:250px;min-height:64px;padding-top:16px;flex-wrap:nowrap;align-items:center;gap:12px}.reference-game .own-melds>.meld-caption{position:absolute;top:0;left:0;width:100%;text-align:center;font-size:8px;letter-spacing:2px;color:#c9dfbe}.reference-game .own-melds>small{font-size:10px;color:#b6d4bd;margin:auto}.reference-game .meld{padding:3px 15px 3px 3px;background:#0d4c3d44;border-color:#b6d2a344}.reference-game .meld .playing-card{width:32px;margin-right:-12px}.reference-game .game-controls{bottom:195px;max-width:940px;gap:12px;flex-wrap:nowrap}.reference-game .game-controls button{flex:1 1 138px;min-width:0;padding:10px 12px;border-radius:28px;border:2px solid #bceeff;font-size:18px;font-weight:800;font-style:italic;line-height:1.15;background:linear-gradient(#57c8d8,#2791b6 60%,#166b9c);box-shadow:0 4px 0 #164f68,0 6px 8px #0005;color:#fff;text-shadow:0 2px 2px #164864}.reference-game .game-controls button[data-action=meld],.reference-game .game-controls button[data-action=fight]{background:linear-gradient(#ffc566,#ec9837 55%,#c67128);border-color:#fff1bf;box-shadow:0 4px 0 #855221,0 6px 8px #0005}.reference-game .game-controls button[data-action=discard]{margin-left:20px;background:linear-gradient(#91e85c,#62bd35 55%,#378e20);border-color:#eeffc5;box-shadow:0 4px 0 #2b641c,0 6px 8px #0005;text-shadow:0 2px 2px #37621f}.reference-game .game-controls button:disabled{opacity:.43;filter:saturate(.55)}.reference-game .player-area{bottom:12px;min-height:155px;padding:0 130px}.reference-game .hand-label{display:none}.reference-game .hand{min-height:150px;padding-top:22px;align-items:flex-start;overflow-y:hidden;justify-content:center}.reference-game .hand>.playing-card{width:83px;flex:0 0 83px;border-radius:7px;box-shadow:2px 3px 5px #0005}.reference-game .hand>.playing-card+.playing-card{margin-left:-22px}.reference-game .hand>.grouped{box-shadow:2px 3px 5px #0005,0 3px 0 #e3bd68}.reference-game .your-profile{left:18px;width:95px;top:23px}.reference-game .your-profile strong{font-size:14px;color:#fff1c7}.reference-game .your-profile small{font-size:12px;color:#ffe07d}.reference-game .hand-sort{top:65px;right:15px;border:2px solid #c8f6f8;background:linear-gradient(#70cbd6,#2389a3);box-shadow:0 3px 0 #165369}.hand-points{position:absolute;top:19px;right:40px;min-width:40px;text-align:center;background:linear-gradient(#ffdc7e,#d8a242);border:2px solid #fff1b7;border-radius:10px;padding:2px 8px;font-weight:bold;font-size:20px;color:#5b3a12;box-shadow:0 3px 5px #0004}.reference-game .player-area>.small{margin:0;font-size:9px}.reference-game .seat-bottom{top:auto;bottom:260px}.reference-table .game-log{color:#d2c39f}.fight-banner{font-weight:900;font-style:italic;color:#ffdc77;text-shadow:0 4px 0 #924422,0 0 35px #ffc75b99}.response.challenge{background:linear-gradient(#e99c38,#a85124);border-color:#ffe5a3}.response.fold,.response.burn{background:linear-gradient(#718787,#354b52);border-color:#bdcdce}
@media(max-width:850px){.reference-table{padding:12px}.reference-table .reference-game{border-width:7px;border-radius:28px;min-height:690px}.reference-game .hand>.playing-card{width:67px;flex-basis:67px}.reference-game .hand>.playing-card+.playing-card{margin-left:-26px}.reference-game .game-controls{gap:7px}.reference-game .game-controls button{font-size:14px;padding:9px 7px}.reference-game .player-area{padding:0 90px}.reference-game .your-profile{left:8px;width:75px}.reference-game .hand-sort{width:73px;right:7px;font-size:11px}.hand-points{right:23px}.reference-game .seat{width:43%}.reference-game .opponent-profile{min-width:150px;gap:7px}.reference-game .back-card{width:20px}.back-card+.back-card{margin-left:-9px}}
@media(max-width:550px){.reference-table{padding:10px 6px}.reference-table .reference-game{min-height:670px;border-width:6px}.reference-game>.pot{padding:8px 10px;gap:7px}.reference-game>.pot b{font-size:15px}.pot-trophies{font-size:17px}.reference-game>.pot small{font-size:8px}.reference-game .seat{top:60px}.reference-game .seat-left{left:2%}.reference-game .seat-right{right:2%}.reference-game .opponent-profile{min-width:0;width:100%;padding:6px;gap:6px;border-radius:12px}.reference-game .avatar{width:36px;height:36px;font-size:16px}.reference-game .turn-ring{width:46px;height:46px;inset:-8px}.opponent-details strong{font-size:11px}.opponent-details small{font-size:9px}.reference-game .card-count{height:28px}.reference-game .back-card{width:16px;height:26px;border-width:1px}.reference-game .back-card+.back-card{margin-left:-6px}.reference-game .felt-pattern{top:164px;font-size:20px;letter-spacing:1px}.reference-game .table-center{top:205px}.reference-game .stock,.reference-game .discard-stack,.reference-game .discard-stack>.playing-card{width:55px}.reference-game .stock,.reference-game .discard-stack{height:77px}.reference-game .own-melds{bottom:245px;max-height:58px}.reference-game .game-controls{bottom:185px;gap:4px;width:96%;flex-wrap:wrap}.reference-game .game-controls button{flex:1 1 22%;font-size:11px;padding:8px 5px;border-width:1px}.reference-game .game-controls button[data-action=discard]{margin-left:0}.reference-game .player-area{padding:0 60px;bottom:14px}.reference-game .hand{min-height:135px;justify-content:flex-start;padding:24px 3px 9px}.reference-game .hand>.playing-card{width:51px;flex-basis:51px}.reference-game .hand>.playing-card+.playing-card{margin-left:-29px}.reference-game .your-profile{left:4px;width:51px;top:33px}.reference-game .your-profile strong{font-size:10px}.reference-game .your-profile small{font-size:8px}.reference-game .hand-sort{top:66px;width:51px;right:4px;font-size:9px;padding:8px 3px}.hand-points{right:11px;min-width:32px;font-size:16px;padding:2px 5px;top:28px}.reference-game .player-area>.small{font-size:8px}.reference-game .seat-bottom{top:auto;bottom:275px}}


.reference-game .draw-area{position:relative}.claim-discard{position:absolute;left:calc(100% + 14px);width:80px;font-size:11px;padding:7px 9px;border-radius:20px;background:linear-gradient(#d5a553,#996c2c);color:#fff9dd;border:1px solid #e2c588}@media(max-width:550px){.claim-discard{left:calc(100% + 8px);width:58px;font-size:9px;padding:6px}}
/* Exposed opponent cards use the compact rank/suit reference layout. */
.reference-game .seat .meld{transform:skewX(-7deg);padding:2px 10px 2px 2px;background:transparent;border:0;gap:0}
.reference-game .seat .meld .compact-card{width:34px;margin-right:-8px;border-radius:3px;box-shadow:1px 2px 3px #0006}
.reference-game .seat .meld .compact-card:last-child{margin-right:0}
.reference-game .seat .meld .compact-card svg{border-radius:3px}
.card-flight{will-change:transform;box-shadow:0 10px 18px #0005!important}
.arena-fight{inset:8vh 4vw;width:auto;height:84vh;transform:none;left:4vw;top:8vh;border:0;border-radius:0;padding:0;background:transparent;box-shadow:none;isolation:isolate}
.arena-fight:before{content:'';position:fixed;inset:-10vh -5vw;background:#051426aa;backdrop-filter:blur(2px);z-index:-1}
.arena-fight>.fight-banner{position:absolute;top:57%;left:50%;transform:translate(-50%,-50%) rotate(-5deg);margin:0;color:#fff4a6;font-family:Impact,'Arial Black',sans-serif;font-size:clamp(50px,8vw,105px);font-weight:900;font-style:italic;-webkit-text-stroke:2px #ee7e0e;text-shadow:3px 5px 0 #9c1613,0 0 25px #ff9b29;z-index:3;white-space:nowrap;animation:fight-strike .5s cubic-bezier(.15,1.6,.35,1) both}
.arena-fight>p{position:absolute;bottom:15px;left:0;width:100%;text-align:center;color:#e8effa;font-size:12px;z-index:4}
.arena-fight>.fight-responses{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:46% 54%;gap:12px;margin:0;align-items:stretch}
.arena-fight .response{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #c6d8e4aa;border-radius:10px;background:linear-gradient(135deg,#677b8e99,#355a7c66);font-size:13px;color:#edf6ff;padding:15px;box-shadow:inset 0 0 40px #b5d9ef22;animation:response-sweep .48s cubic-bezier(.2,.8,.25,1) both;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%)}
.arena-fight .response b{font-family:Impact,'Arial Black',sans-serif;font-size:clamp(28px,5.5vw,72px);font-weight:900;font-style:italic;text-transform:uppercase;letter-spacing:1px;margin:8px 0;color:#e3edf6;-webkit-text-stroke:1px #354d69;text-shadow:3px 4px 0 #1d293b,0 4px 12px #0007}
.arena-fight .response-you{grid-column:1 / -1;grid-row:2;clip-path:polygon(50% 0,100% 40%,100% 100%,0 100%,0 40%);padding-top:70px}
.arena-fight .response.fight{background:linear-gradient(#ef5b18dd,#b6172499 55%,#382e7b55);border-color:#ffb259}
.arena-fight .response.fight b{color:#ffe09c;text-shadow:3px 4px 0 #921c14}
.arena-fight .response.challenge,.response.challenge{background:linear-gradient(135deg,#1785d7dd,#134bbb99);border-color:#73d4ff}
.arena-fight .response.challenge b,.response.challenge b{color:#d5f6ff;-webkit-text-stroke:1px #124b89;text-shadow:3px 4px 0 #123d7d,0 0 18px #42c8ff99}
.arena-fight .response.fold,.arena-fight .response.burn{background:linear-gradient(135deg,#8b9eaf99,#334d6d88);border-color:#b7cadb99}
.arena-fight .response.waiting{opacity:.7}
.arena-fight>.actions{position:absolute;bottom:52px;left:0;width:100%;justify-content:center;z-index:5;margin:0;gap:16px}
.arena-fight #challenge,.arena-fight #fold{font-size:18px;font-weight:bold;font-style:italic;min-width:145px;border-radius:26px;padding:13px 22px;border:2px solid #bcecff;box-shadow:0 4px 15px #0005;color:white}
.arena-fight #challenge{background:linear-gradient(#36b6f6,#1353ba)}
.arena-fight #fold{background:linear-gradient(#8a9aa9,#3d536c);border-color:#c2cfdb}
@keyframes fight-strike{from{opacity:0;translate:0 60px;scale:1.8;rotate:-12deg}to{opacity:1;translate:0 0;scale:1;rotate:0deg}}
@keyframes response-sweep{from{opacity:0;translate:0 -60px;scale:.88}to{opacity:1;translate:0 0;scale:1}}
@media(max-width:550px){.reference-game .seat .meld .compact-card{width:27px;margin-right:-6px}.arena-fight{inset:14vh 2vw;height:72vh}.arena-fight .response{padding:9px;font-size:10px}.arena-fight .response b{font-size:clamp(22px,6vw,40px);-webkit-text-stroke:0}.arena-fight .response-you{padding-top:45px}.arena-fight>.fight-banner{font-size:50px;-webkit-text-stroke:1px}.arena-fight #challenge,.arena-fight #fold{font-size:14px;min-width:115px;padding:10px 15px}.arena-fight>.actions{bottom:52px}}
@media(prefers-reduced-motion:reduce){.arena-fight,.arena-fight *{animation:none!important}.card-flight{display:none}}


.reference-game .seat .meld-area{max-height:150px;scrollbar-width:thin;scrollbar-color:#d6bf79 #19594c}.arena-fight>.fight-banner{opacity:0;animation:fight-burst 1.1s cubic-bezier(.15,.85,.35,1) both}@keyframes fight-burst{0%{opacity:0;translate:0 60px;scale:1.8;rotate:-12deg}22%,72%{opacity:1;translate:0 0;scale:1;rotate:0deg}100%{opacity:0;scale:1.1}}@media(max-width:550px){.reference-game .seat .meld-area{max-height:115px}}

.arena-fight>p:first-of-type{top:5px;bottom:auto;font-size:12px}

/* Visible groups: every meld stays on the felt, with no inner scrolling. */
.reference-game .hand>.playing-card.group-start{margin-left:16px}
.reference-game .seat{width:min(31%,350px)}
.reference-game .seat .meld-area{display:flex;flex-direction:column;align-items:center;flex-wrap:nowrap;gap:10px;max-height:none;min-height:0;overflow:visible;width:100%}
.reference-game .meld{--meld-card-size:32px;--meld-overlap:8px;display:grid;grid-template-columns:repeat(calc(var(--meld-count) - 1),minmax(0,1fr)) var(--meld-card-size);width:min(100%,calc(var(--meld-count)*(var(--meld-card-size) - var(--meld-overlap)) + var(--meld-overlap)));max-width:100%;padding:0;border:0;overflow:visible;flex:none;gap:0}
.reference-game .meld .playing-card,.reference-game .seat .meld .compact-card,.reference-game .seat .meld .compact-card:last-child{width:var(--meld-card-size);margin:0;flex:none;position:relative}
.reference-game .seat .meld{--meld-card-size:34px;--meld-overlap:7px;transform:skewX(-5deg)}
.reference-game .own-melds{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;max-height:none;overflow:visible;padding-top:18px;height:auto}
.reference-game .own-melds .meld{width:min(100%,calc(var(--meld-count)*(var(--meld-card-size) - var(--meld-overlap)) + var(--meld-overlap)))}
@media(max-width:850px){.reference-game .seat{width:35%}}
@media(max-width:550px){.reference-game .seat{width:43%}.reference-game .seat .meld-area{max-height:none;overflow:visible;gap:8px}.reference-game .seat .meld{--meld-card-size:27px;--meld-overlap:6px}.reference-game .own-melds{gap:10px;max-height:none;overflow:visible}.reference-game .hand>.playing-card.group-start{margin-left:10px}}

@media(max-width:550px){.reference-game .meld{display:flex;flex-wrap:wrap;justify-content:center;column-gap:0;row-gap:4px}.reference-game .meld .playing-card,.reference-game .seat .meld .compact-card{flex:0 0 var(--meld-card-size)}.reference-game .seat .meld{transform:none}}
