@media(max-width:1000px){
 #editor .editor-top{height:44px;min-height:44px;padding:0 5px;gap:5px}#editor .editor-top .blue{min-height:44px;height:44px;font-size:11px;padding:5px 8px}#editor .editor-top strong{font-size:11px}#editor .editor-foot{display:none}
}
@media(max-width:550px){
 #game.game{height:auto;min-height:100dvh;padding:64px 8px 12px;background:#fdf8e9 url('assets/skin-v15-mobile.webp') center top/100% auto no-repeat;overflow:visible}#game.game::before{display:none}
 #game .app-header{top:2px;left:10px;right:10px;height:56px}#game .mobile-brand{height:56px;width:150px;background-size:contain}#game .parents.nav-sprite{top:5px;right:0;width:44px;height:44px}#game .back-collections{display:none}
 #game .sketchbook{position:relative;inset:auto;display:flex;padding:5px 6px 8px;border:1px solid #d4b574;border-radius:18px;background:#fffcf2f2}
 #game .catalog-toolbar{height:44px;flex:0 0 44px;margin:0 0 5px;gap:0}#game .categories{height:44px;flex:1;padding:0 2px}#game .categories .nav-sprite{height:44px;min-height:44px;padding:2px;gap:2px;font-size:10px}#game .categories .ui-icon{width:18px;height:18px}
 #game #my-colors{position:absolute;top:-58px;left:0;width:55px;height:44px;min-height:44px}
 #game .catalog{position:static;width:100%;height:auto;display:block;padding:0;background:none;border:0}
 #game .catalog>.profile-switch{display:flex;margin:0;position:absolute;top:54px;right:8px;max-width:46%;height:44px;min-height:44px;font-size:11px;padding:2px 9px 2px 3px;gap:4px}#game .profile-switch .portrait-medallion{width:31px}#game .profile-switch small{display:none}#game .profile-switch>span:not(.portrait-medallion){max-width:95px}
 #game .catalog-title{display:flex;align-items:center;min-height:44px;height:44px;margin:0!important;padding:0 48% 0 4px}#game .catalog-title h2{font-size:16px;line-height:1.15;margin:0}#game .catalog-subtitle,#game #catalog-count{display:none}
 #game .difficulty-choices{display:flex;flex-wrap:nowrap;gap:4px;height:44px;margin:0 0 6px;overflow:auto}#game .difficulty-choices button{flex:1;white-space:nowrap;min-height:44px;padding:4px 6px;font-size:11px}#game .difficulty-choices[hidden]{display:none!important}
 #game .grid,#game .catalog.filtered .grid{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;gap:8px}
 #game .art-card,#game .catalog:not(.filtered) .art-card{height:clamp(178px,48vw,230px);min-height:0;padding:7px 6px 6px;border-radius:14px}#game .card-art{min-height:0}#game .card-caption{flex-basis:49px;padding-top:3px;gap:2px}#game .card-action{height:27px;min-height:27px;font-size:12px}#game .card-name{font-size:13px}#game .card-progress{bottom:57px}#game .pager{position:static;height:48px;flex:0 0 48px;margin:8px 0 0;gap:24px;width:100%;font-size:15px}#game .pager button,#game .pager #next{height:44px;width:74px}
}

/* Short laptop displays: no decorative outer margins or redundant footer. */
@media (min-width:1001px) and (max-height:950px) and (orientation:landscape){
 #editor{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}
 #editor .editor-top{height:44px;min-height:44px;padding:0 8px;gap:8px;flex-wrap:nowrap}
 #editor .editor-top strong{font-size:14px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #editor .editor-top .blue{height:44px;min-height:44px;padding:4px 12px;font-size:12px}
 #editor .editor-foot{display:none}
}
