/* GTA6SUOMI mobile layout - shared by every page.
   Keeps the desktop design intact and adapts navigation, cards and forms. */
:root{--mobile-hit:44px}
html{scroll-padding-top:92px}
body{max-width:100%;overflow-x:clip}
.main,.container,.section,.panel,.wall-wrap,.wall-feed,.wall-compose,.news-card,.feature,.guide-card,.gallery-item,.media-card{min-width:0}
img,video,canvas,svg{max-width:100%;height:auto}
iframe{max-width:100%;border:0}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
table{max-width:100%;display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
button,input,textarea,select{max-width:100%}
button,.btn,.icon-link,.header-cta,.chip,.quicklinks a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
:where(a,button,input,textarea,select):focus-visible{outline:3px solid #ff80d1;outline-offset:3px}
.mobile-nav-toggle{display:none}
.header{isolation:isolate}
@media(max-width:900px){
 .header{position:sticky;top:0;z-index:150;overflow:visible}
 .header-row{position:relative;display:flex!important;flex-wrap:nowrap!important;gap:10px!important;align-items:center;min-height:68px;padding:9px 0!important}
 .brand{flex:0 1 auto;min-width:0!important;gap:9px!important}
 .brand img{width:44px!important;height:44px!important;flex:none;border-width:1.5px}
 .brand-text{min-width:0}
 .brand-text strong{font-size:clamp(17px,4.3vw,23px)!important;letter-spacing:-.3px;white-space:nowrap}
 .header-cta{display:none!important}
 .mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;gap:9px;margin-left:auto;flex:0 0 auto;padding:10px 13px;min-height:44px;color:white;background:#28132d;border:1px solid #a14c89;border-radius:11px;font:800 13px/1.2 Inter,Arial,sans-serif;letter-spacing:.2px;cursor:pointer}
 .mobile-nav-toggle .mobile-bars{font-size:20px;line-height:1}
 .has-mobile-menu .top-nav{display:none!important;position:absolute!important;top:calc(100% + 2px);left:0;right:0;z-index:151;order:unset!important;margin:0!important;padding:9px!important;width:100%!important;max-height:min(65dvh,560px);overflow-y:auto;overscroll-behavior:contain;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;flex-wrap:nowrap!important;gap:2px!important;background:#130d1e;border:1px solid #81436e;border-radius:0 0 16px 16px;box-shadow:0 17px 35px rgba(0,0,0,.57)}
 .has-mobile-menu .top-nav.mobile-open{display:flex!important}
 .has-mobile-menu .top-nav a{display:flex;align-items:center;min-height:46px;font-size:15px!important;text-align:left;padding:11px 14px!important;border-bottom:1px solid rgba(255,166,220,.12)!important;border-radius:7px;white-space:normal}
 .has-mobile-menu .top-nav a.active{color:#ffabd9;background:rgba(255,75,180,.11)}
 .icon-nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#8f487b transparent}
 .icon-nav .icon-grid{display:flex!important;grid-template-columns:none!important;width:max-content!important;min-width:100%;max-width:none;gap:0;padding:0 10px;margin:0}
 .icon-nav .icon-link{flex:0 0 auto;min-width:88px;min-height:74px!important;padding:10px 10px!important;gap:7px;scroll-snap-align:start}
 .icon-nav .icon-link .icon{font-size:21px!important}
 .icon-nav .icon-link span:last-child{font-size:11px!important;letter-spacing:.1px}
 .icon-nav{scroll-snap-type:x proximity}
 .container{width:calc(100% - 32px)!important;max-width:var(--max);margin-inline:auto}
 .section{padding:26px 0}
 .section-head{gap:10px;flex-wrap:wrap}
 .section-head a{display:inline-block;min-height:40px;padding:9px 0}
 .home-grid,.two-column,.forum-layout{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
 .sidebar,.forum-side{grid-template-columns:minmax(0,1fr)!important}
 .footer-inner{flex-direction:column!important;align-items:flex-start!important;gap:13px;padding-top:22px;padding-bottom:24px}
 .footer-links{gap:12px 18px}
 .ad-strip-inner{padding-top:24px;padding-bottom:24px}
 .map-panel iframe{width:100%;max-width:100%}
 .promo-panel{min-height:180px}
}
@media(max-width:700px){
 .ticker{font-size:9px;line-height:1.4;letter-spacing:.55px;padding:6px 8px}
 .hero{min-height:0!important}
 .hero-inner{padding:30px 0 30px!important}
 .hero h1{font-size:clamp(30px,9vw,49px)!important;letter-spacing:-1px!important;line-height:1.06!important}
 .hero .lead{font-size:15px!important;line-height:1.5}
 .section h2{font-size:clamp(26px,7vw,38px)!important;line-height:1.13!important}
 .eyebrow{font-size:11px;letter-spacing:1.3px}
 .grid-three,.grid-two,.guide-grid,.feature-grid,.gallery-grid{grid-template-columns:minmax(0,1fr)!important;gap:15px!important}
 .news-card img,.media-card img{width:100%;height:auto!important;aspect-ratio:16/9!important;object-fit:cover}
 .news-card-body,.media-body,.guide-card,.feature,.faq-item{padding:18px!important}
 .news-card h3,.guide-card h3,.feature h3,.panel h3,.faq-item h3{font-size:19px!important;line-height:1.34!important}
 .news-footer,.meta-row{gap:8px;flex-wrap:wrap}
 .news-footer a{display:inline-block;min-height:42px;padding:11px 0}
 .panel{padding:18px}
 .btn{min-height:44px;padding:12px 15px}
 .section-head{align-items:flex-start!important}
 .thread{grid-template-columns:minmax(0,1fr)!important}
 .thread img{width:100%;max-height:230px;aspect-ratio:16/9;object-fit:cover}
 .thread-stats{grid-column:auto}
 .wall-intro{display:block!important}
 .wall-status-pill{display:inline-block;max-width:100%;margin-top:12px}
 .wall-compose,.wall-feed{padding:17px 15px!important;border-radius:15px}
 .wall-compose input,.wall-compose textarea,.contact-form input,.contact-form textarea,.forum-reply-input{font-size:16px!important;min-width:0;width:100%}
 .wall-compose textarea{min-height:134px}
 .wall-submit-row{align-items:stretch;gap:10px}
 .wall-submit-row .btn{min-height:46px;margin-left:auto}
 .wall-feed-head{gap:10px;align-items:flex-start;flex-wrap:wrap}
 .wall-refresh{min-height:44px}
 .forum-replies{margin-left:7px!important;padding-left:13px!important}
 .forum-post-text{font-size:15px}
 .forum-reply-button,.forum-secondary,.forum-primary{min-height:44px}
 .forum-reply-actions{flex-wrap:wrap}
 .contact-form button{min-height:46px}
 .count-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .count-grid div{padding:11px 4px}
 .count-grid strong{font-size:clamp(20px,7vw,31px)}
 .count-grid span{font-size:10px;overflow-wrap:anywhere}
 /* The original hero artwork includes its own GTA6SUOMI lettering.
    Display the full artwork above a legible countdown rather than crop it. */
 .home-hero-v26{display:block!important;position:relative;min-height:0!important;aspect-ratio:auto!important;height:auto!important;max-height:none!important;background:#10051c!important;overflow:hidden}
 .home-hero-v26 .hero-backdrop-img{display:block!important;position:relative!important;z-index:0!important;inset:auto!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:1672/941!important;object-fit:contain!important;object-position:center top!important}
 .home-hero-v26::after{display:none!important}
 .home-hero-v26 .hero-v26-top{display:none!important}
 .home-hero-v26 .hero-v26-center{position:relative;display:block!important;min-height:0!important;flex:none!important;width:calc(100% - 24px)!important;margin:0 auto!important;padding:0 0 15px!important}
 .home-hero-v26 .release-spotlight-v26{display:flex!important;flex-direction:column!important;width:100%!important;max-width:none!important;margin:0!important;padding:15px 10px!important;gap:11px!important;border-radius:16px}
 .release-spotlight-v26 .release-copy{min-width:0;width:100%;text-align:center}
 .release-spotlight-v26 .release-copy small{font-size:10px!important;letter-spacing:1.2px}
 .release-spotlight-v26 .release-copy h2{font-size:clamp(21px,6vw,34px)!important;line-height:1.08!important;overflow-wrap:anywhere}
 .release-spotlight-v26 .release-copy p{font-size:12px!important;line-height:1.5!important}
 .release-spotlight-v26 .release-count{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;width:100%!important;max-width:480px!important;min-width:0!important}
 .release-spotlight-v26 .release-count .cell{min-width:0!important;padding:10px 3px!important;border-radius:9px!important}
 .release-spotlight-v26 .release-count strong{font-size:clamp(20px,6.3vw,33px)!important}
 .release-spotlight-v26 .release-count span{font-size:8px!important;letter-spacing:0!important;white-space:normal}
}
@media(max-width:380px){
 .container{width:calc(100% - 22px)!important}
 .brand img{width:39px!important;height:39px!important}
 .brand-text strong{font-size:17px!important}
 .mobile-nav-toggle{padding:9px 10px;font-size:12px;gap:6px}
 .icon-nav .icon-link{min-width:80px}
 .wall-submit-row .btn{width:100%;margin:0}
 .release-spotlight-v26 .release-copy h2{font-size:21px!important}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 .btn,.icon-link,.news-card,.mobile-nav-toggle{transition:none!important}
 .hero-backdrop-img{animation:none!important}
}


/* V3: narrow phones, safe areas and reliable touch layouts. */
@supports (padding: max(0px)){
  .header-row,.footer-inner{padding-left:max(0px,env(safe-area-inset-left));padding-right:max(0px,env(safe-area-inset-right))}
}
:where(.main,.section,.panel,.wall-wrap,.wall-feed,.wall-compose,.news-card,.news-card-body,.forum-post,.forum-reply,.feature,.guide-card,.media-card,.thread-body){min-width:0;max-width:100%}
:where(.news-card,.panel,.feature,.guide-card,.wall-message,.forum-post,.forum-reply) :where(h1,h2,h3,p,a,span){overflow-wrap:anywhere}
:where(input,textarea,select){box-sizing:border-box}
:where(button,.btn,.mobile-nav-toggle,.wall-refresh,.wall-load-more){cursor:pointer}
@media(max-width:900px){
  .header-row .top-nav{min-width:0}
  .has-mobile-menu .top-nav{padding-bottom:max(9px,env(safe-area-inset-bottom))!important}
  .icon-nav{max-width:100vw}
  .icon-nav .icon-grid{box-sizing:border-box}
  .wall-feed-head>*{min-width:0}
  .wall-message-header{min-width:0}
  .wall-message-text{overflow-wrap:anywhere}
  .contact-form,.contact-form label,.wall-compose form{min-width:0}
  .contact-form input,.contact-form textarea,.wall-compose input,.wall-compose textarea{width:100%;max-width:100%}
  .forum-reply-input{max-width:100%}
}
@media(max-width:480px){
  .container{width:calc(100% - 24px)!important}
  .header-row{gap:7px!important}
  .brand-text strong{font-size:clamp(16px,4.4vw,20px)!important}
  .wall-submit-row .btn{width:100%;margin:0}
  .wall-char-count{width:100%}
  .wall-feed-head .wall-refresh{max-width:100%}
  .ad-strip .btn{width:100%;text-align:center}
  .chip-row{gap:7px}
  .chip{min-height:44px}
}
@media(max-width:700px) and (orientation:landscape){
  .has-mobile-menu .top-nav{max-height:65dvh}
}
