/* Pixel viewport height also supports browsers without svh/dvh units. */
html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
html body{min-width:0;overflow-x:hidden}
html body main{box-sizing:border-box!important;width:100%!important;max-width:560px;height:var(--app-height,100vh)!important;min-height:0!important;overflow:hidden!important}
html body main>.table{flex:1 1 0!important;min-height:0!important;min-width:0!important}
html body #lobby{box-sizing:border-box!important;height:var(--app-height,100vh)!important;max-height:var(--app-height,100vh)!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain}
html body main :is(.score-side,.opponent-name,#actions>button){min-width:0}
html body main .cards .card{width:clamp(52px,min(29vw,calc((var(--app-height,100vh) - 200px)*.24)),155px)!important;flex-shrink:0}
html body main .trick .card{max-width:calc((var(--app-height,100vh) - 210px)*.30)}
html body main #actions{flex:0 0 auto;min-width:0}
html body main #actions>button{touch-action:manipulation;min-height:44px!important;overflow-wrap:anywhere}
html body dialog{box-sizing:border-box;max-width:calc(100vw - 16px)}
html body dialog.external-close-menu>.menu-scroll-content{max-height:min(var(--menu-visible-height,calc(var(--app-height,100vh) - 100px)),calc(var(--app-height,100vh) - 100px))!important}
html body dialog.mobile-panel:is(#authDialog,#profileDialog,#onlineDialog,#tableStartDialog,#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#authDialog,#profileDialog,#onlineDialog,#tableStartDialog,#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog){max-height:calc(var(--app-height,100vh) - 20px)!important}
html body dialog.mobile-panel:is(#authDialog,#profileDialog,#onlineDialog,#tableStartDialog,#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog):is(#authDialog,#profileDialog,#onlineDialog,#tableStartDialog,#adminDialog,#shopDialog,#accountMenuDialog,#notificationsDialog,#withdrawDialog)>.menu-scroll-content{max-height:calc(var(--app-height,100vh) - 96px)!important}
html body #shopDialog#shopDialog .registration-before-payment{padding:12px!important;margin:12px 0!important;border:1px solid #d4ad35!important;border-radius:9px!important;background:#fff3ba!important;color:#30270d!important;font:700 15px/1.45 'Truco Outfit',sans-serif!important}
html body #shopDialog#shopDialog #shopSignIn{min-height:46px!important;width:100%!important;background:#1d4ed8!important;color:#fff!important;font:700 16px/1.3 'Truco Outfit',sans-serif!important;border:1px solid #8fb2ff!important}
html body #shopDialog#shopDialog [hidden]{display:none!important}
/* Compact the fixed chrome on short screens instead of forcing a 440px canvas. */
html[data-short-viewport=true] body main>.score{height:54px!important;min-height:54px!important;padding:3px 6px!important;gap:5px!important}
html[data-short-viewport=true] body main .score-side{height:44px!important;padding:2px 4px!important;gap:1px!important}
html[data-short-viewport=true] body main .score-side>strong{font-size:24px!important;line-height:1!important}
html[data-short-viewport=true] body main .score-side>span{font-size:9px!important}
html[data-short-viewport=true] body main .score .sticks{display:none!important}
html[data-short-viewport=true] body main .table-stake{padding:3px 8px!important}
html[data-short-viewport=true] body main .stake-side{gap:1px!important}
html[data-short-viewport=true] body main .stake-side strong{font-size:12px!important}
html[data-short-viewport=true] body main .stake-side .gold-coin{width:16px;height:16px;font-size:11px}
html[data-short-viewport=true] body main .stake-pot{margin-top:2px;font-size:8px}
html[data-short-viewport=true] body main #actions{min-height:50px!important;padding:3px 6px 5px!important;gap:6px!important}
html[data-short-viewport=true] body main #actions>button{padding:6px 4px!important;font-size:12px!important}
html[data-short-viewport=true] body main .opponent{width:46%;top:3%;right:3%}
html[data-short-viewport=true] body main .opponent .avatar{width:30px;min-width:30px}
html[data-short-viewport=true] body main .opponent-name .table-player-stats{display:none}
html[data-short-viewport=true] body main .opcards{top:5%;right:auto;left:10%;height:16%}
html[data-short-viewport=true] body main .turn-clock{top:30%;right:3%;width:66px;padding:4px;font-size:8px}
html[data-short-viewport=true] body main .turn-clock strong{font-size:20px}
html[data-short-viewport=true] body main .tricks{top:24%;height:34%}
html[data-short-viewport=true] body main .cards{bottom:8px;height:40%}
html[data-short-viewport=true] body main .cards .card{margin:0 -5px!important}
html[data-short-viewport=true] body main .holding-hand{display:none}
html[data-short-viewport=true] body main .message{top:18%;font-size:10px;max-width:62%;padding:3px 5px}
html[data-short-viewport=true] body main .game-audio-controls{padding:2px 8px}
html[data-short-viewport=true] body main .game-audio-controls button{min-height:26px;padding:3px 7px;font-size:9px}
html[data-short-viewport=true] body main>footer{display:none}
@media(max-height:420px) and (orientation:landscape){html body main .game-audio-controls{display:none}html body main .call-reminder{padding:3px 6px}html body main .call-reminder strong{font-size:17px}html body main .call-reminder span{display:none}}
