@media(min-width:1001px){
 #game .grid,#game .catalog.filtered .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
 #game .art-card{padding:8px 8px 10px;min-height:0}
 #game .art-card .card-art{aspect-ratio:1600/904;width:100%;height:auto;flex:none;background:#fff}
 #game .art-card .card-art img{inset:0;position:absolute;width:100%;height:100%;object-fit:contain;max-width:none;max-height:none}
 #game .card-caption{min-height:54px;padding:10px 0 0;flex-basis:auto}
 #game .card-name{font-size:clamp(16px,1.45vw,23px);line-height:1.12}
 #game .card-action{font-size:clamp(13px,1vw,16px);min-height:44px;padding:6px 10px;white-space:nowrap}
 #game .catalog-title{margin:8px 0 14px!important}
 #game .catalog-title h2{font-size:36px}
 #game .catalog>.profile-switch{float:right;margin:8px 0 8px 20px}
 #game .catalog-title{clear:both}
 #game .difficulty-choices{margin-bottom:20px}
}
@media(min-width:1800px){#game .grid,#game .catalog.filtered .grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1001px) and (orientation:landscape){
 #game.game{padding:126px 5% 32px;background:#eaf0df url('assets/citadela-approved.webp') center top/cover fixed}
 #game .app-header{inset:8px 6% auto;height:105px}
 #game .sketchbook{padding:18px 22px 12px;background:#fffcf3fa;box-shadow:0 8px 35px #123b5433,inset 0 0 0 4px #fffdf5}
 #game .sketchbook>.profile-switch{position:absolute;right:26px;top:83px;margin:0;min-height:44px;font-size:13px;max-width:280px}
 #game .catalog-title{min-height:66px;padding-right:290px;margin:14px 0 10px!important}
 #game .catalog-title h2{font-size:32px}
 #game #catalog-count{display:none}
}
@media(min-width:1001px) and (orientation:landscape){#game.game::before{display:none}#game .catalog>.profile-switch{position:absolute;right:26px;top:83px;float:none;margin:0;min-height:44px;font-size:13px;max-width:280px}}

/* Complete portrait stories must not masquerade as landscape compositions. */
@media(min-width:1001px){.art-card:has(.card-art[data-preview-format="portrait"]){align-self:start}.art-card .card-art[data-preview-format="portrait"]{aspect-ratio:1/1;height:auto}.art-card .card-art[data-preview-format="portrait"] img{object-fit:contain;width:100%;height:100%}}
