/* Keep the complete navigation on short landscape screens. */
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 #pug-shell.theme-pug{min-height:100svh;display:flex;flex-direction:column}
 #pug-shell.theme-pug #pug-page{flex:1;min-height:0}
 #pug-shell.theme-pug #pug-stage,#pug-shell.theme-pug .hero{min-height:calc(100svh - 113px)}
 #pug-shell.theme-pug .hero{padding-bottom:8px}
 #pug-shell.theme-pug .site-footer{flex:none;margin:0;padding:0;min-height:56px}
 #pug-shell.theme-pug .footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:12px;min-height:56px;padding:4px max(16px,env(safe-area-inset-right)) 4px max(16px,env(safe-area-inset-left))}
 #pug-shell.theme-pug .footer-branding{flex:none}
 #pug-shell.theme-pug .footer-branding .brand{font-size:17px;white-space:nowrap}
 #pug-shell.theme-pug .footer-branding p{display:none}
 #pug-shell.theme-pug .footer-nav{display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:nowrap}
 #pug-shell.theme-pug .footer-nav a,#pug-shell.theme-pug .showcase-help summary,#pug-shell.theme-pug .pug-report-entry{display:flex;align-items:center;min-height:48px;min-width:48px;font-size:12px;line-height:16px;white-space:nowrap}
 #pug-shell.theme-pug .showcase-help{font-size:12px;margin:0}
 #pug-shell.theme-pug .pug-report-entry{padding:0;border:0;margin:0}
 #pug-shell.theme-pug .lobby-page>.map-line{align-self:center;padding:4px 8px;border-radius:10px;background:#075b7ce6;color:#fff9eb}
}
@media(max-width:760px) and (max-height:500px) and (orientation:landscape){
 #pug-shell.theme-pug .footer-branding{display:none}
 #pug-shell.theme-pug .footer-inner,#pug-shell.theme-pug .footer-nav{gap:8px}
 #pug-shell.theme-pug .footer-nav a,#pug-shell.theme-pug .showcase-help summary,#pug-shell.theme-pug .pug-report-entry{font-size:11px}
}
@media(max-width:650px) and (max-height:500px) and (orientation:landscape){
 #pug-shell.theme-pug .inner{padding-top:4px;padding-bottom:4px}
 #pug-shell.theme-pug .form-composition{margin-top:4px}
 #pug-shell.theme-pug .form-page .form-grid:not(.single){padding:6px;row-gap:4px}
 #pug-shell.theme-pug .form-grid label{gap:2px;font-size:11px;line-height:14px}
 /* The header and footer already link to the full game catalogue. */
 #pug-shell.theme-pug .hero>.back{display:none}
}
@media(max-width:1000px) and (max-height:500px) and (orientation:landscape){
 #pug-shell.theme-pug .queue-entry.form-grid.single>.button.primary{grid-column:2;grid-row:1}
 #pug-shell.theme-pug .queue-entry.form-grid.single>.field-note{grid-row:2;margin:0}
}
@media(max-width:1000px) and (max-height:350px) and (orientation:landscape){
 #pug-shell.theme-pug .queue-page:not(.entry){gap:4px 10px}
 #pug-shell.theme-pug .queue-page>.page-heading{margin:0}
 #pug-shell.theme-pug .queue-roster{min-height:140px;padding:2px 8px}
 #pug-shell.theme-pug .queue-player{min-height:66px;padding:3px 0;gap:1px 5px}
 #pug-shell.theme-pug .queue-player .avatar,#pug-shell.theme-pug .queue-player>.icon{width:28px;height:28px}
 #pug-shell.theme-pug .queue-player h3{font-size:11px;line-height:14px;justify-content:flex-start}
 #pug-shell.theme-pug .queue-player p{font-size:10px;line-height:13px}
 #pug-shell.theme-pug .queue-controls .countdown{min-height:36px;padding:2px 8px}
 #pug-shell.theme-pug .queue-controls .countdown strong{width:30px;height:30px;flex-basis:30px;font-size:25px}
 #pug-shell.theme-pug .queue-controls>p:not(.field-note){padding:2px 6px;font-size:10px;line-height:13px}
 #pug-shell.theme-pug .queue-page>.secondary-actions .button{width:100%}
 /* The primary button and live countdown already explain the current action. */
 #pug-shell.theme-pug .queue-controls>.field-note{display:none}
 #pug-shell.theme-pug .lobby-page{gap:2px 10px}
 #pug-shell.theme-pug .lobby-grid>section{min-height:140px;margin:0;padding:2px 8px}
 #pug-shell.theme-pug .lobby-grid>section .section-heading{margin-bottom:0;min-height:20px}
 #pug-shell.theme-pug .lobby-grid>section .section-heading h2{font-size:12px;line-height:18px}
 #pug-shell.theme-pug .lobby-page .player-row{min-height:58px;padding:2px 0;gap:1px 4px;grid-template-columns:24px minmax(0,1fr)}
 #pug-shell.theme-pug .lobby-page .player-row .avatar{width:24px;height:24px}
 #pug-shell.theme-pug .lobby-page .player-row strong{font-size:10px;line-height:13px}
 #pug-shell.theme-pug .lobby-page .player-row small,#pug-shell.theme-pug .lobby-page .player-status{font-size:9px;line-height:12px}
 #pug-shell.theme-pug .lobby-page .lobby-actions{padding:0;margin:0}
 #pug-shell.theme-pug .lobby-page .lobby-actions p{display:none}
 #pug-shell.theme-pug .lobby-page .secondary-actions{padding:0 6px;margin:0}
 #pug-shell.theme-pug .lobby-page .secondary-actions .button{height:48px;padding:0;font-size:9px;line-height:12px}
 #pug-shell.theme-pug .lobby-page .invite-details{display:none}
}
