/* Shared native selectors: the arrow is a background, never a separate hit target. */
html body select:not([multiple]):not([size]){appearance:none!important;-webkit-appearance:none!important;box-sizing:border-box;padding-right:42px!important;background-image:url('/icons/chevron-down.svg')!important;background-position:right 14px center!important;background-size:16px!important;background-repeat:no-repeat!important;cursor:pointer}
html body select:disabled{cursor:default}
html body dialog .profile-modal-heading,html body dialog .payment-heading{display:flex;align-items:center;justify-content:space-between;width:100%;box-sizing:border-box;gap:16px;flex:1 1 auto}
html body dialog .profile-modal-heading h2{margin:0;min-width:0}
html body dialog .profile-modal-heading .system-close-icon{align-self:center}
html body:has(dialog[open]){overflow:hidden}
dialog.customer-profile-dialog.profile-wide{padding:20px;max-height:calc(100dvh - 24px)}
.customer-profile-dialog form{gap:12px}
.customer-profile-dialog .profile-explanation{margin:10px 0;font-size:13px}
.customer-profile-dialog .profile-image-button{min-width:0;min-height:44px;margin:10px 0;padding:6px 10px;gap:10px}
.customer-profile-dialog .profile-image-button img{width:40px;height:40px}
.customer-profile-dialog .profile-tabs{margin-bottom:14px;padding:4px;gap:6px}
.customer-profile-dialog .profile-tabs button{min-height:40px;padding:8px 12px}
.customer-profile-dialog .signup-fields{gap:12px 16px}
.customer-profile-dialog .profile-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.customer-profile-dialog .address-fields{grid-template-columns:repeat(6,minmax(0,1fr))}
.customer-profile-dialog .address-fields>label{grid-column:span 2}
.customer-profile-dialog .address-fields>label:has([name=street]){grid-column:span 3}
.customer-profile-dialog .address-fields>label:has([name=number]),.customer-profile-dialog .address-fields>label:has([name=state]){grid-column:span 1}
.customer-profile-dialog :is(input,select){height:42px;min-height:42px}
.customer-profile-dialog .field-feedback:empty,.customer-profile-dialog [role=status]:empty{display:none}
.customer-profile-dialog .contact-verification{margin-top:6px;font-size:12px}
.customer-profile-dialog .contact-verification button{min-height:32px;padding:5px 10px}
.customer-profile-dialog .profile-pix{margin-top:14px;padding-top:12px}
.customer-profile-dialog .profile-pix p{font-size:13px;margin:8px 0}
.customer-profile-dialog .profile-actions{margin-top:14px;padding:0;position:static}
.customer-profile-dialog #profile-address-panel>p{font-size:13px;margin:0 0 12px}
.match-preload{width:min(320px,calc(100vw - 40px));text-align:center;padding:28px;color:#f5edd9;background:#103a32;border:1px solid #d9b45f;border-radius:18px}
.match-preload::backdrop{background:#041916f5}
.match-preload p:before{content:'';display:block;width:28px;height:28px;margin:0 auto 18px;border:3px solid #547269;border-top-color:#e9ce87;border-radius:50%;animation:preload-spin 1s linear infinite}
@keyframes preload-spin{to{transform:rotate(360deg)}}
body.playing:has(.stbl-layout:not(.canasta-mobile)) main{width:100%;margin:0;max-width:none;padding:8px!important;box-sizing:border-box}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile){grid-template-rows:48px 20px minmax(0,1fr)!important;max-width:100%;min-width:0}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile)>.row:first-child{padding-right:48px}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #matchName{display:block!important;font-size:12px;line-height:16px;letter-spacing:0;margin:0 0 2px}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) h1{font-size:16px;line-height:22px}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .felt{grid-row:3!important;max-width:100%;min-width:0}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) .options-button{top:0;right:0}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #hand:not(.canasta-mobile *) .card.selected{z-index:var(--selection-order)!important;border:1px solid #c4a04a!important;outline:none!important;box-shadow:0 3px 7px #0005!important;background:#f6dc87!important;filter:none!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #hand:not(.canasta-mobile *) .card{z-index:var(--selection-order)!important}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #hand:not(.canasta-mobile *) .card.selected:before,#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #hand:not(.canasta-mobile *) .card.selected:after{display:none!important}
@media(max-width:700px){
 .customer-profile-dialog .profile-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-profile-dialog .address-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
 .customer-profile-dialog .address-fields>label{grid-column:span 1!important}
 .customer-profile-dialog .address-fields>label:has([name=street]){grid-column:span 2!important}
 body.playing:has(.stbl-layout:not(.canasta-mobile)) main{padding:6px!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important}
}
@media(max-width:420px){.customer-profile-dialog .profile-fields{grid-template-columns:1fr}}
.customer-profile-dialog.profile-wide [role=tabpanel]{gap:12px}
.customer-profile-dialog.profile-wide .profile-actions{position:static;padding:0;margin-top:12px}
.customer-profile-dialog.profile-wide .profile-image-button{margin:0;padding:6px 10px}
#match:not(.canasta-mobile).stbl-layout:not(.canasta-mobile) #hand:not(.canasta-mobile *) .card.selected{transform:none!important}

/* Fixed SVG bounds center the menu independently of font metrics or sidebar alignment. */
html body .client-nav-toggle{padding:0!important;font-size:0!important;line-height:0!important;background-image:url('/icons/menu.svg')!important;background-position:center!important;background-size:24px 24px!important;background-repeat:no-repeat!important}
.match-preload p:before{content:none}
.shuffle-loader{position:relative;width:120px;height:88px;margin:0 auto 20px}
.shuffle-loader span{position:absolute;left:38px;top:10px;display:grid;place-items:center;width:44px;height:64px;border:1px solid #d9b45f;border-radius:7px;background:#f5edd9;color:#103a32;font:30px Georgia,serif;box-shadow:0 4px 10px #0005;animation:shuffle-cards 1.8s ease-in-out infinite;transform-origin:50% 90%}
.shuffle-loader span:nth-child(2){color:#aa2943;animation-delay:-.6s}
.shuffle-loader span:nth-child(3){animation-delay:-1.2s}
@keyframes shuffle-cards{0%,100%{transform:translateX(0) rotate(0);z-index:1}25%{transform:translateX(-32px) rotate(-18deg);z-index:3}50%{transform:translateX(0) rotate(0);z-index:3}75%{transform:translateX(32px) rotate(18deg);z-index:1}}
@media(prefers-reduced-motion:reduce){.shuffle-loader span{animation:none}.shuffle-loader span:first-child{transform:translateX(-25px) rotate(-15deg)}.shuffle-loader span:last-child{transform:translateX(25px) rotate(15deg)}}

/* The loading animation uses the same illustrated Joker as the deck. */
.shuffle-loader{width:160px;height:126px}
.shuffle-loader span{left:48px;top:8px;width:64px;height:96px;overflow:hidden}
.shuffle-loader span img{width:100%;height:100%;object-fit:contain;display:block}
