/* Only Stage 2 changes; original main.css and media.css remain the baseline. */
body{min-width:0;overflow-x:visible}
#wrapper{min-height:100vh}
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #efa200;outline-offset:3px}
.toggle_mnu{cursor:pointer}
.nav .link-multi .ico,.nav .link-multi:hover .ico{background:url(../img/multi-monitors.svg) center no-repeat}
.nav a[aria-disabled]{cursor:default}
@media(min-width:1200px){
 .header{height:115.59375px;box-sizing:border-box}
 .header .nav{display:flex;justify-content:flex-start;width:auto;gap:14px}
 .header .nav li{margin:0;flex:0 0 auto}
 .header .nav li:nth-child(1){width:92px}
 .header .nav li:nth-child(2){width:108px}
 .header .nav li:nth-child(3){width:106px}
 .header .nav li:nth-child(4){width:132px}
 .header .nav li:nth-child(5){width:68px}
 .header .nav li:nth-child(6){width:60px}
 .header .nav a{white-space:normal}
 .nav .ico{vertical-align:top;margin-bottom:4px}
 .nav a>span:last-child{line-height:16.8px}
}
@media(max-width:1199px){.header .nav{width:190px;float:none}.nav.is-open{display:block}.nav li{margin:10px 0 15px}.nav a{padding:0 8px}.toggle_mnu.active{z-index:20}}
.catalog-row.gallery-grid{display:grid;gap:0;align-items:start}
.gallery-grid:before,.gallery-grid:after{display:none}
.gallery-latest{grid-template-columns:repeat(4,minmax(0,1fr))}
.gallery-multi{grid-template-columns:repeat(2,minmax(0,1fr))}
.gallery-mobile{grid-template-columns:repeat(6,minmax(0,1fr))}
.gallery-cell{min-width:0}
.photo-item{margin-left:auto;margin-right:auto}
.photo-item img{height:auto}
.photo-item .over{z-index:2}
.photo-item .t{max-width:100%;box-sizing:border-box;white-space:nowrap;overflow:hidden;pointer-events:none;display:flex}
.caption-name{min-width:0;overflow:hidden;text-overflow:ellipsis}
.caption-meta{flex:none;white-space:pre}
.pagin{display:flex;flex-wrap:wrap;justify-content:center;gap:7px}
.pagin li{margin:0}.pagin a{min-width:28px;min-height:28px;display:flex;align-items:center;justify-content:center}
.footer{display:flex;justify-content:space-between;align-items:flex-start;gap:25px}
.footer .copy{position:static;text-align:left;flex:0 0 auto}
.footer .footer-links{display:flex;gap:45px}
.footer-contact{display:flex;align-items:center;gap:18px}
.footer-contact>a{color:#fff;font-size:16px;font-weight:300;text-decoration:none}
.footer-contact>a:hover{color:#efa200}
.social a[aria-disabled]{cursor:default}
.catalog-bx h1{font-size:24px;font-weight:400;color:#666;margin:0 0 20px}
.catalog-bx h2{font-size:20px;font-weight:400;color:#666}
.catalog-bx p,.catalog-bx .game-list{color:#666;line-height:1.5}
.catalog-bx a:not(.sort a):not(.pagin a):not(.over){color:#666}
.game-list{columns:3;column-gap:30px}.game-list li{break-inside:avoid;margin-bottom:12px}
.prototype-note{font-size:14px}
.search-result{display:flex;gap:24px;padding:20px 0;border-bottom:1px solid #cacaca;align-items:center}
.search-result>a{flex:0 0 200px;text-align:center}
.search-result img{max-width:200px;max-height:140px;width:auto;height:auto;vertical-align:middle}
.search-result h2{margin:0 0 12px}
.search-result p{margin:8px 0}
.search-result>div{min-width:0;overflow-wrap:anywhere}
dialog{background:#303030;color:#fff;border:3px solid #efa200;padding:26px;box-sizing:border-box}
dialog{width:530px;max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:auto}
dialog::backdrop{background:rgba(0,0,0,.7)}
dialog h2{font-size:24px;font-weight:400;border-bottom:2px solid #efa200;padding-bottom:12px;margin:0 30px 16px 0}
@media(max-width:991px){.gallery-latest{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-mobile{grid-template-columns:repeat(4,minmax(0,1fr))}.footer{flex-wrap:wrap}.game-list{columns:2}}
@media(max-width:767px){.gallery-latest{grid-template-columns:repeat(2,minmax(0,1fr))}.gallery-mobile{grid-template-columns:repeat(3,minmax(0,1fr))}.gallery-multi{grid-template-columns:1fr}.footer{flex-direction:column;align-items:center}.footer .copy{text-align:center}.footer .footer-links{gap:30px}.search-result{gap:15px}.search-result>a{flex-basis:100px}.search-result img{max-width:100px;max-height:100px}.search-result h2{font-size:18px}.game-list{columns:1}.sort li{margin-bottom:5px}.pagin a{min-height:40px;min-width:36px}}
@media(max-width:480px){.gallery-latest{grid-template-columns:1fr}.gallery-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}.photo-item .t{font-size:12px}.footer-contact{gap:16px}.footer .footer-links{flex-direction:column;gap:15px}.footer-links .links li{margin-bottom:12px}}
