/* Mobile form controls must fit their grid cells, including Safari date inputs. */
.wallet-page{box-sizing:border-box;padding:16px!important}
.wallet-page label,.customer-profile-dialog label,.signup-fields>label{min-width:0}
.wallet-page input,.customer-profile-dialog input,.signup-fields input{box-sizing:border-box;min-width:0;max-width:100%;width:100%}
input[type=date],input[type=datetime-local]{min-inline-size:0;min-width:0;max-width:100%;height:44px;line-height:normal;-webkit-appearance:none}
input::-webkit-date-and-time-value{text-align:left;min-width:0}
#signupError:not(:empty){color:#ffd4ce;padding:8px;border-left:3px solid #ff9b89;background:#4a2424;margin:8px 0;white-space:normal}
[aria-invalid=true]{border-color:#ff9b89!important}
#avatarDialog>.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
#avatarDialog>.section-heading>div{min-width:0;flex:1}
#avatarDialog>label{display:block;padding:10px;border:1px solid #d4b259;border-radius:10px;margin:8px 0}
#avatarDialog input[type=file]{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
.canasta-theme-options{display:flex;flex-wrap:wrap;gap:8px}
.canasta-theme-options .option-choice{margin:0}
.truco-finished .truco-feedback{font-weight:700}
#match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards{flex-direction:row;transform:translateY(-50%) rotate(90deg);transform-origin:center;left:calc(100% + 12px);width:42px}
#match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards{flex-direction:row;transform:translateY(-50%) rotate(-90deg);transform-origin:center;right:calc(100% + 12px);width:42px}
@media(max-width:700px){
 #avatarDialog,.signup-avatar-dialog{padding:16px!important;max-height:calc(100dvh - 24px);box-sizing:border-box}
 #avatarDialog .eyebrow,#avatarDialog>.muted{display:none}
 #avatarDialog h2{font-size:21px;margin:0}
 #avatarDialog .avatar-grid,.signup-avatar-dialog .avatar-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #avatarDialog .avatar-grid button,.signup-avatar-dialog .avatar-grid button{padding:5px;min-width:0;margin:0;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:11px}
 #avatarDialog .avatar-grid img,.signup-avatar-dialog .avatar-grid img{width:48px;height:48px;max-width:100%;object-fit:cover}
 .customer-profile-dialog .profile-fields{grid-template-columns:minmax(0,1fr)!important;gap:10px!important}
 .customer-profile-dialog .profile-explanation{margin:8px 0!important}
 .wallet-page input[type=date]{width:100%;height:44px!important}
 dialog.table-options{width:calc(100vw - 16px)!important;max-width:400px;box-sizing:border-box;padding:16px!important}
 .table-options .option-choice{font-size:12px;padding:8px;min-width:0}
 #match:not(.canasta-mobile).truco-table .truco-board>.truco-vazas{top:4px;right:0;left:auto;transform:none;gap:3px}
 #match:not(.canasta-mobile).truco-table .truco-vazas span{font-size:10px;padding:4px}
 #match:not(.canasta-mobile).truco-table .truco-north{top:20%}
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards,#match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards{top:calc(100% + 20px);left:50%;right:auto;width:37px;height:auto;display:flex;flex-direction:column;gap:4px;transform:translateX(-50%)}
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards .card,#match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards .card{width:26px!important;height:37px!important;margin:0 5.5px  -7px!important;transform:rotate(90deg)!important;transform-origin:center}
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards .card{rotate:0deg}
 #match:not(.canasta-mobile).truco-table .truco-center{inset:42% 15% 24%}
 #match:not(.canasta-mobile).truco-table .truco-controls button{min-height:42px}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .meld-own h3{top:4px!important;bottom:auto!important}
}
@media(max-height:540px) and (orientation:landscape){
 body.playing:has(.stbl-layout:not(.canasta-mobile))>header{display:none!important}
 body.playing:has(.stbl-layout:not(.canasta-mobile)) main{height:100dvh!important;padding:4px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile){grid-template-rows:38px minmax(0,1fr)!important;gap:2px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile)>.row:first-child{padding:0 50px 0 4px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #matchName{font-size:11px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #turnLabel{font-size:14px!important;margin:0!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt{grid-row:2!important;grid-template-rows:minmax(0,1fr) 78px!important;padding:5px!important;gap:6px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt .table-arena{grid-template-columns:110px minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:44px minmax(0,1fr)!important;gap:5px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *){grid-column:1!important;grid-row:2!important;grid-template-rows:50px 50px!important;gap:5px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *) #discardPile:not(.canasta-mobile *){height:50px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #stockPile:not(.canasta-mobile *) .deck-back,#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #discardPile:not(.canasta-mobile *) .card{height:48px!important;width:33px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #stockPile:not(.canasta-mobile *) strong{top:30px!important;font-size:11px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *) .match-reference{display:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-self:is(.seat-expanded,:not(.seat-expanded)){top:calc(100% + 8px)!important;--portrait-size:30px;--player-height:62px}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .mini-hand .mini-back{height:42px!important;width:29px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{top:4px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .meld-zone h3{font-size:12px!important;line-height:18px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).hand-expanded .felt{grid-template-rows:minmax(0,1fr) 120px!important}
}

@media(max-width:700px){#match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards .card{transform:rotate(-90deg)!important}}
@media(max-width:700px){
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards{top:50%;left:calc(100% + 8px);right:auto;transform:translateY(-50%)}
 #match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards{top:50%;right:calc(100% + 8px);left:auto;transform:translateY(-50%)}
}

/* Readable table headings and a single round-result announcement. */
#match:not(.canasta-mobile) #matchName{color:#fff2c6!important;background:#061e1be8;border:1px solid #b79c54;padding:5px 10px;border-radius:7px;font-size:16px!important;letter-spacing:.5px!important;width:max-content;max-width:calc(100% - 54px);text-shadow:none}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #turnLabel{display:none!important}
#match:not(.canasta-mobile).truco-table:not(.truco-finished) #turnLabel{display:none!important}
#match:not(.canasta-mobile).truco-table .truco-feedback{visibility:hidden}
#match:not(.canasta-mobile).truco-table .truco-scoreboard{width:min(760px,96%);display:grid;grid-template-columns:1fr auto 1fr;gap:18px;padding:12px 18px;box-sizing:border-box}
#match:not(.canasta-mobile).truco-table .truco-scoreboard strong:first-child{text-align:left}
#match:not(.canasta-mobile).truco-table .truco-scoreboard strong:last-child{text-align:right}
#match:not(.canasta-mobile).truco-table .truco-scoreboard>span{font-size:20px;font-weight:700;text-align:center}
#match:not(.canasta-mobile).truco-table .truco-manilha-preview{padding:9px}
#match:not(.canasta-mobile).truco-table .truco-manilha-preview>small{font-size:15px!important;line-height:1.3;color:#fff2c6;display:block}
#match:not(.canasta-mobile).truco-table .truco-manilha-preview .truco-vazas{position:static!important;transform:none!important;margin:0 0 8px;display:flex;gap:5px}
#match:not(.canasta-mobile).truco-table .truco-manilha-preview .truco-vazas span{font-size:14px;padding:5px 8px}
#match:not(.canasta-mobile).truco-table .truco-vira-display>small{font-size:15px!important;font-weight:700;color:#fff7da;background:#062821ed;border-radius:4px;padding:3px 9px;line-height:1.25}

/* Compact inactive portraits; active seats show name and seconds without nested rings. */
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){
 display:flex!important;flex-direction:column!important;gap:2px!important;outline:none!important;box-shadow:none!important;border:1px solid #b79c54!important;background:#082b25!important;padding:4px!important;border-radius:8px!important;
 width:82px!important;min-height:96px!important;height:auto!important;max-width:100px!important
}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east) img{width:38px!important;height:38px!important;outline:none!important;box-shadow:none!important;border:1px solid #b79c54!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east)>:is(span:not(.turn-progress):not(.mini-hand),small){display:block!important;position:static!important;width:auto!important;max-width:100%!important;font-size:12px!important;line-height:16px!important;padding:0!important;border:0!important;background:none!important;grid-column:auto!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat):is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){width:42px!important;height:42px!important;min-height:42px!important;padding:3px!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat) img{width:34px!important;height:34px!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat)>:is(span:not(.mini-hand),small){display:none!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:before,#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:after{display:none!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat .turn-progress{display:block!important;left:0!important;bottom:-6px!important;width:100%!important;height:5px!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{display:flex!important;flex-direction:row!important;gap:5px!important;width:auto!important;left:auto!important;right:3px!important;top:-38px!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading :is(.sort-cycle,.expand-hand,.clear-cards){width:auto!important;min-width:58px!important;max-width:none!important;height:32px!important;min-height:32px!important;font-size:12px!important;padding:0 7px!important;background:#103e34!important;border:1px solid #c8aa54}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-dock{padding-top:0!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .match-reference{display:none!important}
@media(max-width:700px){
 #match:not(.canasta-mobile).truco-table .truco-opponent-cards{display:none!important}
 #match:not(.canasta-mobile).truco-table .truco-south{top:89%!important}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard{width:100%;padding:9px 10px;gap:8px}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard>span{font-size:16px}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard>strong{font-size:22px}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview>small{font-size:12px!important}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview .truco-vazas span{font-size:11px;padding:4px 5px}
 #match:not(.canasta-mobile) #matchName{font-size:13px!important}
}
@media(max-width:700px) and (orientation:portrait){
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .mini-hand{display:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt .table-arena{grid-template-rows:100px minmax(0,1fr) calc(var(--surface-card-h) + 25px) minmax(0,1fr)!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-self:is(.seat-expanded,:not(.seat-expanded)){top:calc(100% - 108px)!important;left:2px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-west{top:2px!important;left:2px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-east{top:2px!important;right:2px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-north:is(.seat-expanded,:not(.seat-expanded)){top:2px!important;left:50%!important;transform:translateX(-50%)!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{top:-36px!important;right:2px!important}
}
@media(max-height:540px) and (orientation:landscape){
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .mini-hand{display:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt .table-arena,#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats .felt .table-arena{grid-template-columns:126px minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:42px minmax(0,1fr)!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats .meld-own{grid-column:2!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats .meld-other{grid-column:3!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *),#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #center:not(.canasta-mobile *){grid-column:1!important;grid-row:2!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;height:100%!important;gap:3px!important;align-items:start!important;padding-top:8px}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>#stockPile:not(.canasta-mobile *){grid-column:1!important;grid-row:1!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>#discardPile:not(.canasta-mobile *){grid-column:2!important;grid-row:1!important;height:60px!important;overflow:hidden!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>.dead-piles{grid-column:3!important;grid-row:1!important;width:36px!important;height:60px!important;position:relative!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>.dead-piles .mini-back{width:30px!important;height:43px!important;left:0!important;top:2px!important;transform:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>.dead-piles .mini-back:nth-child(2){left:3px!important;top:5px!important;transform:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *)>.dead-piles small{position:absolute!important;bottom:0!important;left:0!important;font-size:8px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *) #discardPile:not(.canasta-mobile *) .discard-fan{height:48px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *) .pile small{font-size:8px!important;position:absolute!important;bottom:0!important;left:0!important;right:auto!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #center:not(.canasta-mobile *) .empty-pile{width:33px!important;height:48px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){min-height:40px!important;height:40px!important;width:105px!important;flex-direction:row!important;flex-wrap:wrap!important;padding:2px!important;gap:1px 4px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat img{width:30px!important;height:30px!important;float:left}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat .seat-count{display:none!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat .seat-clock{font-size:11px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat):is(.seat-self,.seat-north,.seat-west,.seat-east){width:38px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-west{left:2px!important;top:0!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-east{right:2px!important;top:0!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-self:is(.seat-expanded,:not(.seat-expanded)){top:calc(100% + 22px)!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{top:0!important;left:0!important;right:auto!important;gap:3px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading :is(.sort-cycle,.expand-hand,.clear-cards){min-width:35px!important;height:22px!important;min-height:22px!important;font-size:10px!important;padding:0 3px!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-dock{padding-left:128px!important}
}

/* Override legacy seat variants consistently in two- and four-player tables. */
body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){transform:none!important;overflow:visible!important}
body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat):is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded))>:is(span:not(.mini-hand),small){display:none!important}
body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded))>.seat-clock{font-size:12px!important;white-space:nowrap!important;overflow:visible!important;max-width:none!important;text-overflow:clip!important}
@media(max-width:700px),(max-height:540px) and (orientation:landscape){
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.active-seat,:not(.active-seat)) .mini-hand{display:none!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){width:90px!important}
}
@media(max-width:700px) and (orientation:portrait){
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile).four-seats #opponents:not(.canasta-mobile *) .seat.seat-north:is(.seat-expanded,:not(.seat-expanded)){transform:translateX(-50%)!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){top:4px!important}
}
@media(max-height:540px) and (orientation:landscape){
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){height:40px!important;min-height:40px!important;max-height:40px!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat:is(.seat-self,.seat-north,.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){display:grid!important;grid-template-columns:30px 1fr!important;grid-template-rows:16px 16px!important;width:128px!important;max-width:128px!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat img{grid-row:1/3!important;width:30px!important;height:30px!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat>:is(span:not(.turn-progress),small){grid-column:2!important;line-height:14px!important;font-size:11px!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.active-seat .seat-count{display:none!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:is(.seat-west,.seat-east):is(.seat-expanded,:not(.seat-expanded)){top:0!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-north:is(.seat-expanded,:not(.seat-expanded)){left:45%!important;top:0!important;transform:none!important}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat:not(.active-seat) img{width:30px!important;height:30px!important}
}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading .hand-action{height:32px;min-height:32px;padding:0 8px;font-size:12px;border:1px solid #d6b85c;background:#174b3c}
@media(max-height:540px) and (orientation:landscape){
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{max-width:128px;flex-wrap:wrap!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading .hand-action{height:24px;min-height:24px;font-size:10px;padding:0 5px}
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-self:is(.seat-expanded,:not(.seat-expanded)){top:calc(100% - 42px)!important;left:0!important}
}
@media(max-width:700px) and (orientation:portrait){
 body.playing #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #opponents:not(.canasta-mobile *) .seat.seat-self:is(.seat-expanded,:not(.seat-expanded)){top:calc(100% - 144px)!important}
}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .hand-heading{max-width:100%!important;box-sizing:border-box}
@media(min-width:701px) and (min-height:541px){
 #match:not(.canasta-mobile).truco-table .truco-surface{grid-template-rows:62px minmax(180px,1fr) 24px 128px 46px}
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards,#match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards{width:60px;flex-direction:column;gap:14px;transform:translateY(-50%)}
 #match:not(.canasta-mobile).truco-table .truco-west .truco-opponent-cards .card{transform:rotate(90deg)!important;margin:-9px 9px!important}
 #match:not(.canasta-mobile).truco-table .truco-east .truco-opponent-cards .card{transform:rotate(-90deg)!important;margin:-9px 9px!important}
}
@media(max-height:550px) and (orientation:landscape){
 #match:not(.canasta-mobile).truco-table{grid-template-rows:32px minmax(0,1fr)!important}
 #match:not(.canasta-mobile).truco-table .truco-surface{grid-template-rows:30px minmax(120px,1fr) 0px 60px 30px!important;gap:2px}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard{height:30px;min-height:30px;padding:2px 10px;gap:10px}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard>strong{font-size:18px}
 #match:not(.canasta-mobile).truco-table .truco-scoreboard>span{font-size:14px}
 #match:not(.canasta-mobile).truco-table .truco-opponent-cards{display:none!important}
 #match:not(.canasta-mobile).truco-table .truco-north{top:24%!important}
 #match:not(.canasta-mobile).truco-table .truco-west{left:5%;top:27%!important}
 #match:not(.canasta-mobile).truco-table .truco-east{left:95%;top:27%!important}
 #match:not(.canasta-mobile).truco-table .truco-south{left:10%;top:80%!important}
 #match:not(.canasta-mobile).truco-table .truco-board>.truco-manilha-preview{left:22%;bottom:0;padding:4px}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview>small{font-size:11px!important}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview .truco-vazas{margin-bottom:3px;gap:3px}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview .truco-vazas span{font-size:10px;padding:2px 6px}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview .card{width:22px!important;height:31px!important}
 #match:not(.canasta-mobile).truco-table .truco-center{inset:40% 13% 0 48%!important}
 #match:not(.canasta-mobile).truco-table .truco-vira-display>small{font-size:10px!important;padding:1px 5px}
 #match:not(.canasta-mobile).truco-table .truco-hand{min-height:0}
 #match:not(.canasta-mobile).truco-table .truco-seat{width:60px;padding:2px}
 #match:not(.canasta-mobile).truco-table .truco-seat img{width:24px;height:24px}
 #match:not(.canasta-mobile).truco-table .truco-seat strong{font-size:10px;line-height:12px}
 #match:not(.canasta-mobile).truco-table .truco-seat small{font-size:8px;line-height:9px}
}

/* Card corner is a reserved reading column; art never covers the suit. */
#match:not(.canasta-mobile).truco-table .truco-surface .card{font-size:22px}
#match:not(.canasta-mobile).truco-table .truco-surface .card .card-index:not(.bottom){left:7%!important;top:5%!important;gap:0!important;line-height:1!important;z-index:2}
#match:not(.canasta-mobile).truco-table .truco-surface .card .card-index b{font-size:1em!important;line-height:1!important}
#match:not(.canasta-mobile).truco-table .truco-surface .card .card-index i{font-size:.65em!important;line-height:1.1!important}
#match:not(.canasta-mobile).truco-table .truco-surface .card .card-pip{left:65%!important;top:66%!important;font-size:1.4em!important}
#match:not(.canasta-mobile).truco-table .truco-surface .card.court-card .court-art{left:34%!important;right:0!important;top:17%!important;bottom:0!important;width:66%!important;height:83%!important;object-fit:contain!important}
#match:not(.canasta-mobile).truco-table .truco-surface .truco-manilha-preview .card{font-size:15px}
#match:not(.canasta-mobile).truco-table .truco-surface .truco-manilhas .card{font-size:20px}
@media(max-width:700px){
 #match:not(.canasta-mobile).truco-table .truco-surface .truco-played .card{font-size:14px}
 #match:not(.canasta-mobile).truco-table .truco-surface .truco-manilha-preview .card{font-size:13px}
 #match:not(.canasta-mobile).truco-table .truco-surface .truco-manilhas .card{font-size:17px}
}
@media(max-height:550px) and (orientation:landscape){
 #match:not(.canasta-mobile).truco-table .truco-surface .card{font-size:14px}
 #match:not(.canasta-mobile).truco-table .truco-surface .truco-manilha-preview .card{font-size:11px}
 #match:not(.canasta-mobile).truco-table .truco-surface .truco-manilhas .card{font-size:14px}
}
#match:not(.canasta-mobile).truco-table .truco-surface .card .card-index{font-size:inherit!important}
@media(min-width:701px) and (min-height:551px){
 #match:not(.canasta-mobile).truco-table .truco-north{top:12%}
 #match:not(.canasta-mobile).truco-table .truco-board>.truco-manilha-preview{bottom:0}
}
@media(max-width:700px) and (orientation:portrait){
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile){grid-template-rows:44px minmax(0,1fr)!important}
 #match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt{grid-row:2!important}
}
@media(display-mode:standalone){
 body.playing main{padding-top:max(4px,env(safe-area-inset-top))!important;padding-bottom:env(safe-area-inset-bottom)!important}
}
@media(max-width:700px) and (orientation:portrait){
 #match:not(.canasta-mobile).truco-table .truco-board>.truco-manilha-preview{top:76%;bottom:auto;max-width:144px;box-sizing:border-box}
 #match:not(.canasta-mobile).truco-table .truco-manilha-preview>small{white-space:normal;line-height:1.2;font-size:12px!important}
}

/* Desktop: keep the partner's hidden hand clear of the played cards. */
@media(min-width:1000px) and (min-height:551px){
 #match:not(.canasta-mobile).truco-table .truco-board>.truco-manilha-preview{top:12px!important;bottom:auto!important;left:0!important}
 #match:not(.canasta-mobile).truco-table .truco-north .truco-opponent-cards{top:50%!important;left:calc(100% + 14px)!important;right:auto!important;transform:translateY(-50%)!important;flex-direction:row!important}
}

@media(min-width:1000px) and (min-height:551px){
 #match:not(.canasta-mobile).truco-table .truco-west{left:10%!important;top:48%!important}
 #match:not(.canasta-mobile).truco-table .truco-east{left:90%!important;top:48%!important}
}
