/* Notebook/desktop playing surfaces only. Waiting rooms and all <=650px
   layouts retain their own rules. Module-local styles may load after this file. */
@media(min-width:651px){
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)){height:100dvh;min-height:0;overflow:hidden;display:grid;grid-template-rows:56px minmax(0,1fr)}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>.masthead{display:flex;height:56px;min-height:56px;padding:4px 24px;gap:18px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) .brand{font-size:30px;gap:8px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) .brand small{font-size:8px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) .brand-seal{width:35px;height:35px;font-size:23px;line-height:33px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>.masthead .profile-chip{min-height:44px;margin-right:80px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>footer{display:none}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#app{height:100%;min-height:0;overflow:hidden;padding-bottom:env(safe-area-inset-bottom)}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife:has(.pife-play-area),.game-maumau:has(.maumau-play)){height:100%;min-height:0;max-width:1800px;margin:0 auto;padding:0 16px 8px;display:flex;flex-direction:column;gap:4px;position:relative}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife:has(.pife-play-area),.game-maumau:has(.maumau-play))>.table-toolbar{display:flex;flex:0 0 48px;min-height:48px;align-items:center;flex-wrap:nowrap;gap:10px;margin:0;padding:0;border-bottom:1px solid #d6b36b33}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau) .table-toolbar>div:first-child{min-width:0}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau) .table-toolbar h1{font-size:21px;line-height:25px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau) .table-toolbar .eyebrow{font-size:9px;line-height:12px}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau) .toolbar-buttons{flex-wrap:nowrap;gap:6px;flex-shrink:0}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau) .toolbar-buttons button{min-height:44px;min-width:44px;padding:8px 12px;font-size:12px}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife,.game-maumau)>.turn-note{flex:0 0 26px;min-height:26px;height:26px;margin:0;padding:3px 8px;font-size:12px;line-height:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

 #app .classic-game>.classic-score{display:flex;flex:0 0 40px;min-height:40px;justify-content:center;align-items:center;gap:20px;font-size:12px;line-height:15px;padding:3px 8px;margin:0}
 #app .classic-game>.classic-score strong{font-size:23px;line-height:25px;margin-left:6px}
 #app .classic-game>.classic-score small{font-size:10px;line-height:13px}
 #app .classic-game>.classic-layout{display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:stretch;flex:1 1 0;min-height:0;gap:12px}
 #app .classic-game .classic-play-column{display:flex;flex-direction:column;min-height:0;gap:5px}
 #app .classic-game .classic-felt{display:flex;flex-direction:column;flex:1 1 0;min-height:125px;padding:8px 14px;gap:4px;border-width:5px;border-radius:32px}
 #app .classic-game .classic-opponents{flex:0 0 auto;gap:10px}
 #app .classic-game .classic-opponents .seat{font-size:12px;line-height:13px;gap:5px}
 #app .classic-game .classic-opponents .seat small{font-size:9px;line-height:11px;margin-top:1px}
 #app .classic-game .classic-opponents .avatar{width:28px;height:28px;font-size:15px}
 #app .classic-game .team-tag{font-size:8px;line-height:10px;margin:1px 0;letter-spacing:1px}
 #app .classic-game :is(.classic-trick,.classic-capture-board){display:flex;flex-direction:column;flex:1 1 0;min-height:0}
 #app .classic-game .board-heading{font-size:9px;line-height:12px;margin:2px 0}
 #app .classic-game .trick-cards{display:flex;flex:1 1 0;min-height:0;align-items:center;justify-content:center;gap:18px;flex-wrap:nowrap}
 #app .classic-game .trick-play{min-width:0;gap:2px}
 #app .classic-game .trick-play>.card{width:clamp(32px,7dvh,70px);height:auto;aspect-ratio:5/7}
 #app .classic-game .trick-play>small{font-size:10px;line-height:12px}
 #app .classic-game .classic-felt :is(.self-seat,.last-move){display:none}
 #app .classic-game .classic-trump{flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px;margin:0;font-size:10px;line-height:13px}
 #app .classic-game .classic-trump .trump-card>.card{width:32px;height:auto;aspect-ratio:5/7}
 #app .classic-game .classic-trump>small{font-size:9px;line-height:12px}
 #app .classic-game .classic-capture-board .table-cards{display:flex;flex-wrap:nowrap;justify-content:flex-start;flex:1 1 0;min-height:0;max-height:none;gap:8px;padding:5px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;align-items:center}
 #app .classic-game .classic-capture-board .table-cards>div{flex:0 0 auto}
 #app .classic-game .classic-capture-board .table-cards .card{width:clamp(38px,7.5dvh,65px);height:auto;aspect-ratio:208/319}
 #app .classic-game .classic-hand-section{flex:0 0 auto;min-height:0;margin:0;padding:0;background:none}
 #app .classic-game .hand-heading{height:14px;line-height:14px;font-size:10px;margin:0}
 /* display is present in the classic view's style attribute. */
 #app .classic-game .classic-hand-grid{display:flex!important;flex-wrap:nowrap;justify-content:center;width:100%;max-width:none;height:auto;min-height:0;max-height:none;margin:0;gap:6px;overflow:visible;padding:4px}
 #app .classic-game .classic-hand-grid>.card{width:clamp(44px,8.6dvh,70px);min-width:44px;max-width:calc((100% - 54px)/10);height:auto;aspect-ratio:5/7;transform:none;flex:0 1 auto}
 #app .game-scopone .classic-hand-grid>.card{aspect-ratio:208/319}
 #app .classic-game .classic-hand-grid>.card.selected{transform:none;outline:3px solid var(--gold);outline-offset:0}
 #app .classic-game .classic-actions{display:flex;flex-direction:column;position:static;align-items:stretch;gap:2px;margin:0;padding:0}
 #app .classic-game .classic-actions>.selected-play-card{font-size:11px;line-height:14px;min-height:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .classic-game .classic-actions>button{height:44px;min-height:44px;min-width:44px;font-size:12px;line-height:15px;padding:4px;flex:none}
 #app .classic-game .classic-actions>.selection-hint{min-height:13px;max-width:none;font-size:10px;line-height:13px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;align-self:stretch}
 #app .classic-game .classic-detail{display:block;overflow:auto;min-height:0;padding:14px;font-size:12px}
 #app .classic-game .classic-detail h2{font-size:23px;margin:0 0 12px}
 #app .classic-game .classic-detail .capture-score{padding:10px 0;font-size:12px;gap:5px}
 #app .classic-game .classic-detail p{font-size:12px;line-height:1.4;margin:8px 0}
 #app .classic-game .classic-detail details>summary{min-height:44px;display:flex;align-items:center;font-size:12px}

 #app .game-pife>.pife-score,#app .game-maumau>.maumau-score{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:0 0 40px;min-height:40px;gap:6px;margin:0}
 #app .game-pife>.pife-score>div,#app .game-maumau>.maumau-score>div{padding:3px 8px;min-height:0;min-width:0;font-size:11px}
 #app .game-pife>.pife-score span,#app .game-maumau>.maumau-score span{font-size:10px;line-height:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .game-pife>.pife-score strong,#app .game-maumau>.maumau-score strong{font-size:19px;line-height:21px}
 #app .game-pife>.pife-score small{font-size:9px}
 #app .game-pife>.pife-round-meta{flex:0 0 12px;min-height:12px;height:12px;margin:0;font-size:9px;line-height:12px}
 #app .game-pife>.pife-play-area{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:5px}
 #app .game-pife .pife-felt{display:flex;flex-direction:column;flex:1 1 0;min-height:125px;padding:8px 14px;border-width:5px;border-radius:32px;gap:4px;align-self:stretch}
 #app .game-pife .pife-opponents{flex:0 0 auto;gap:10px}
 #app .game-pife .pife-opponents .seat{font-size:12px;line-height:13px}
 #app .game-pife .pife-opponents .seat small{font-size:9px;line-height:11px;margin-top:1px}
 #app .game-pife .pife-piles{display:flex;flex:1 1 0;justify-content:center;align-items:center;gap:30px;margin:0}
 #app .game-pife .pife-pile{font-size:10px;line-height:13px;gap:4px}
 /* The Pife module uses !important for its original hand/pile geometry. */
 #app .game-pife .pife-pile .card{width:clamp(36px,7dvh,58px)!important;height:auto!important;aspect-ratio:5/7}
 #app .game-pife .pife-empty{width:45px;height:63px;font-size:10px}
 #app .game-pife .pife-hand-section{flex:0 0 auto;min-height:0;width:100%;max-width:none;margin:0;padding:0}
 #app .game-pife .pife-hand-heading{height:44px;min-height:44px;font-size:10px;line-height:14px;gap:8px}
 #app .game-pife .pife-hand-heading>button{min-height:44px;height:44px;min-width:44px;font-size:11px;padding:4px 8px}
 #app .game-pife .pife-hand{display:flex!important;flex-wrap:nowrap;justify-content:center;width:100%;gap:6px!important;padding:4px!important;overflow:visible!important;align-content:start}
 #app .game-pife .pife-hand>.card{width:clamp(44px,8dvh,60px)!important;min-width:44px;max-width:calc((100% - 54px)/10);height:auto!important;aspect-ratio:5/7;transform:none;flex:0 1 auto}
 #app .game-pife .pife-hand>.card.selected{transform:none;outline-width:3px;outline-offset:0}
 #app .game-pife .pife-note{font-size:10px;line-height:13px;min-height:13px;height:13px;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .game-pife .pife-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:2px 0}
 #app .game-pife .pife-actions>button{height:44px;min-height:44px;min-width:44px;flex:none;padding:4px;font-size:12px;line-height:15px;white-space:normal}
 #app .game-pife .pife-rules{display:none}

 #app .game-maumau>.maumau-play{display:flex;flex-direction:column;flex:1 1 0;min-height:0;gap:5px}
 #app .game-maumau .maumau-felt{display:flex;flex-direction:column;flex:1 1 0;min-height:125px;padding:8px 14px;gap:5px;border-width:5px;border-radius:32px}
 #app .game-maumau .maumau-board{flex:1 1 0;min-height:0;align-items:center;gap:24px}
 #app .game-maumau .maumau-pile>.card{width:clamp(38px,8dvh,68px);height:auto;aspect-ratio:5/7}
 #app .game-maumau .maumau-last{font-size:10px;line-height:13px;min-height:13px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .game-maumau .maumau-hand-section{flex:0 0 auto;min-height:0;margin:0;padding:0}
 #app .game-maumau .hand-heading{height:14px;min-height:14px;line-height:14px;font-size:10px;margin:0}
 #app .game-maumau .maumau-hand{display:flex;justify-content:flex-start;height:100px;min-height:100px;max-height:100px;padding:7px 4px;gap:7px;overflow-x:auto;overflow-y:hidden;flex-wrap:nowrap}
 #app .game-maumau .maumau-hand>.card{width:60px;min-width:60px;max-width:none;height:auto;aspect-ratio:5/7;transform:none;flex:0 0 auto}
 #app .game-maumau .maumau-hand>.card.selected{transform:none;outline-width:3px;outline-offset:0}
 #app .game-maumau .maumau-selection{height:14px;min-height:14px;font-size:11px;line-height:14px;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .game-maumau .maumau-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 #app .game-maumau .maumau-actions>:is(button,select){min-height:44px;height:44px;min-width:44px;margin:0;padding:5px 8px;font-size:13px}
 #app .game-maumau .maumau-actions>select{padding-right:28px}
 #app .game-maumau .maumau-hint{min-height:13px;height:13px;font-size:10px;line-height:13px;margin:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 #app .game-maumau .maumau-rules{display:none}

 #app :is(.classic-game,.game-pife,.game-maumau)>.round-banner{position:absolute;z-index:5;inset:115px 16px 8px;max-width:760px;margin:auto;overflow:auto;display:flex;flex-wrap:wrap;justify-content:center;align-content:center;gap:12px;padding:20px}
 #app :is(.classic-game,.game-pife,.game-maumau)>.round-banner h2,#app :is(.classic-game,.game-pife,.game-maumau)>.round-banner>p{flex-basis:100%;margin:0}
 #app :is(.classic-game,.game-pife,.game-maumau)>.round-banner button{min-height:44px;min-width:44px}
 #app .classic-game:has(>.round-banner)>.classic-layout,#app .game-pife:has(>.round-banner)>.pife-play-area,#app .game-maumau:has(>.round-banner)>.maumau-play{visibility:hidden}

 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#social-root{position:fixed;right:20px;top:6px;z-index:10;width:78px;margin:0;padding:0}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) #social-root>details>summary{min-height:44px;height:44px;padding:8px;font-size:0}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) #social-root>details>summary:after{content:'Conversa';font-size:11px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#social-root:has(>details[open]){top:6px;bottom:10px;width:min(420px,90vw);overflow:auto;background:#20261e;border:1px solid var(--gold);border-radius:8px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) #social-root>details[open]>summary{font-size:13px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) #social-root>details[open]>summary:after{content:' · Fechar'}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) #social-root>details:not([open]) #social-unread{font-size:9px;max-width:76px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) dialog{max-height:calc(100dvh - 20px);overflow-y:auto;overscroll-behavior:contain}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>.update-notice{position:fixed;top:56px;z-index:11}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#toast{top:60px;bottom:auto}
}
@media(min-width:651px) and (max-width:1000px){
 #app .classic-game>.classic-layout{grid-template-columns:minmax(0,1fr)}
 #app .classic-game .classic-detail{display:none}
}
@media(min-width:1100px){
 #app .game-pife>.pife-play-area{display:grid;grid-template-columns:minmax(0,1fr) 380px;align-items:stretch;gap:16px}
 #app .game-pife .pife-hand-section{display:flex;flex-direction:column;align-self:center;width:100%;max-width:none}
 #app .game-pife .pife-hand{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:center;gap:6px!important;padding:4px!important}
 #app .game-pife .pife-hand>.card{width:clamp(60px,9dvh,70px)!important;min-width:60px;max-width:70px;flex:none}
 #app .game-pife .pife-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:651px) and (max-height:650px){
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)){grid-template-rows:44px minmax(0,1fr)}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>.masthead{height:44px;min-height:44px;padding-block:0}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play)) .brand small{display:none}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#social-root{top:0}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>.update-notice{top:44px}
 body.in-game:has(#app :is(.game-sueca-active,.game-scopone-active,.pife-play-area,.maumau-play))>#toast{top:48px}
 #app :is(.game-sueca-active,.game-scopone-active,.game-pife:has(.pife-play-area),.game-maumau:has(.maumau-play)){gap:3px;padding-bottom:5px}
 #app .classic-game .classic-hand-grid>.card{width:clamp(44px,8dvh,58px)}
}
