/* Games N Roses — portail 2026 et adaptation mobile complète.
   Les éléments desktop d'origine sont préservés hors des changements demandés. */
#home .home-title,#home .portal-note{display:none!important}
#home .portal-layout{position:absolute;inset:0;z-index:8;pointer-events:none}
#home .portal-column{
  position:absolute;top:50%;transform:translateY(-50%);
  width:min(410px,34vw);max-height:calc(100vh - 26px);display:flex;flex-direction:column;align-items:center;
  gap:clamp(9px,1.5vh,18px);pointer-events:auto;
}
#home .portal-column-left{left:clamp(16px,3.5vw,64px)}
#home .portal-column-right{right:clamp(16px,3.5vw,64px)}
#home .portal-brand{display:flex;justify-content:center;align-items:center;width:100%;min-width:0;flex:0 0 auto}
#home .portal-brand img{display:block;object-fit:contain;max-width:100%;height:auto;filter:drop-shadow(0 6px 18px rgba(0,0,0,.9)) drop-shadow(0 0 14px rgba(226,39,30,.18));}
#home .portal-brand-band img{width:clamp(74px,8.3vw,128px);max-height:clamp(74px,11.5vh,128px)}
#home .portal-brand-gnr img{width:min(92%,340px);max-height:80px}
/* Override original absolute nav positioning without touching button sizing. */
#home .portal-column .portal-menu{
  position:static!important;inset:auto!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  transform:none!important;width:100%!important;
  min-width:0!important;max-width:none!important;min-height:0!important;flex:0 1 auto;
  max-height:min(70vh,740px)!important;overflow-x:hidden!important;overflow-y:auto!important;
  grid-template-columns:1fr!important;
}
#home .portal-column .portal-menu button{flex-shrink:0}
#home .chow-countdown{width:100%;padding:12px 13px 10px;border-radius:17px;
  background:linear-gradient(135deg,rgba(8,5,9,.91),rgba(39,11,15,.88));
  border:1px solid rgba(237,92,82,.42);box-shadow:0 13px 35px rgba(0,0,0,.55),inset 0 0 22px rgba(255,30,20,.04);
  color:#fff;text-align:center;backdrop-filter:blur(6px)}
#home .chow-countdown-heading{font-family:Georgia,'Times New Roman',serif;font-size:clamp(11px,1.05vw,14px);font-weight:900;letter-spacing:.035em;line-height:1.2;text-shadow:0 2px 10px #000}
#home .chow-time{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:10px}
#home .chow-time>div{min-width:0;padding:6px 2px;border-radius:9px;background:rgba(0,0,0,.52);border:1px solid rgba(255,255,255,.09)}
#home .chow-time strong{display:block;font:800 clamp(19px,2.1vw,29px)/1.1 Arial,sans-serif;font-variant-numeric:tabular-nums;letter-spacing:.005em}
#home .chow-time span{display:block;margin-top:5px;color:#e6c9c5;font-size:clamp(7px,.63vw,9px);font-weight:800;letter-spacing:.025em}
#home .chow-date{font-size:clamp(8px,.72vw,10px);font-weight:700;letter-spacing:.08em;color:#e3c8c3;margin:9px 0 0}
#home .chow-countdown.ended .chow-time{display:none}
#home .chow-countdown.ended .chow-date{font-size:14px;color:#fff}
@media(min-width:761px) and (max-height:800px){
  #home .portal-column{gap:6px}
  #home .portal-brand-band img{width:min(72px,9vh);max-height:74px}
  #home .portal-brand-gnr img{max-height:46px}
  #home .portal-column .portal-menu{max-height:calc(100vh - 124px)!important}
  #home .chow-countdown{padding:9px 10px 7px}
  #home .chow-time{margin-top:7px}
}
/* Conserver le bouton de retour du jukebox sur ordinateur et mobile. */
.mobile-jukebox-back{display:block!important}
/* Navigation téléphones et tablettes étroites : deux sections distinctes, défilement naturel. */
@media(max-width:760px){
  #home{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain}
  #home .portal-video{position:fixed;inset:0;width:100%;height:100%;object-fit:cover;filter:brightness(.48)}
  #home .portal-layout{position:relative;inset:auto;width:100%;min-height:100%;display:flex;
    flex-direction:column;align-items:center;gap:21px;padding:28px max(13px,env(safe-area-inset-right)) 96px max(13px,env(safe-area-inset-left));
    background:linear-gradient(180deg,rgba(0,0,0,.26),rgba(0,0,0,.36) 58%,rgba(0,0,0,.62));
  }
  #home .portal-column{position:relative;inset:auto!important;top:auto!important;right:auto!important;
    left:auto!important;bottom:auto!important;transform:none!important;width:100%;max-width:520px;max-height:none;gap:11px}
  #home .portal-brand-band img{width:85px;max-height:85px}
  #home .portal-brand-gnr img{width:min(290px,80vw);max-height:68px}
  #home .portal-column .portal-menu{max-height:none!important;overflow:visible!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #home .portal-column .portal-menu button{min-width:0;width:100%!important;
    min-height:34px!important;padding:7px 8px!important;font-size:10px!important;
    line-height:1.15!important;letter-spacing:.03em!important;white-space:normal;overflow-wrap:anywhere}
  #home .portal-column .portal-menu button:hover,#home .portal-column .portal-menu button:focus-visible{transform:none!important}
  #home .chow-countdown{width:min(390px,100%);padding:12px}
  #home .chow-countdown-heading{font-size:clamp(12px,3.2vw,16px)}
  #home .chow-time strong{font-size:clamp(22px,7vw,30px)}
  #home .chow-time span{font-size:9px}
  #home .chow-date{font-size:10px}
  /* all internal screens remain in place with their own independent scrolling */
  .screen:not(#home) .content-scroll{padding:80px 12px calc(90px + env(safe-area-inset-bottom));
    width:100%;max-width:100%;overflow-x:hidden;-webkit-overflow-scrolling:touch}
  .screen:not(#home) .panel{max-width:100%;width:100%;min-width:0;padding:20px 15px;border-radius:16px}
  .screen:not(#home) h2{font-size:clamp(25px,8.5vw,45px);line-height:1.12;overflow-wrap:break-word}
  .screen:not(#home) .lede{font-size:15px}
  .screen:not(#home) .return-btn{position:fixed;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));z-index:90;
    padding:10px 13px;font-size:10px;max-width:calc(100% - 20px)}
  .screen:not(#home) img,.screen:not(#home) video:not(.bg-video){max-width:100%}
  .screen:not(#home) iframe{max-width:100%}
  /* Albums, YouTube, lyrics, platforms, photos and concert cards */
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px}
  .album-card{min-width:0;min-height:0}
  .video-grid{grid-template-columns:1fr!important;gap:12px}
  .tracks{columns:1!important}
  .ultimate-playlist{grid-template-columns:84px minmax(0,1fr);padding:10px;gap:11px}
  .ultimate-playlist img{width:84px}
  .ultimate-playlist strong{font-size:14px;overflow-wrap:anywhere}
  .ultimate-playlist span{font-size:12px}
  .platform-grid{grid-template-columns:1fr!important}
  .platform-card{min-height:70px}
  .show-selector{grid-template-columns:1fr!important;gap:12px}
  .photo-grid,.store-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
  .lyric-searchbar{display:flex;flex-direction:column;align-items:stretch;gap:8px}
  #lyricsSearch{width:100%;max-width:100%}
  .performance-frame,.pese-fallback iframe{width:100%;max-width:100%}
  .pese-head{flex-wrap:wrap}
  /* Merchandise, checkout and album tracklists */
  #merch .merch-scroll{padding:75px 10px 100px!important}
  #merch .merch-shell{width:100%;max-width:100%;padding:0}
  #merch .merch-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  #merch .merch-card{min-width:0}
  #merch .merch-card-body{padding:11px}
  #merch .merch-card h3{font-size:15px;overflow-wrap:anywhere}
  #merch .size-list{display:flex;flex-wrap:wrap;gap:5px}
  #merch .size-btn{min-width:0}
  #merch .merch-deal{display:flex;gap:7px;flex-wrap:wrap;justify-content:center;font-size:12px}
  #merch .usb-zone{padding:13px 10px}
  #merch .usb-options{grid-template-columns:1fr!important}
  #merch .usb-zone-head{flex-wrap:wrap;gap:5px}
  #merch .cart-drawer{position:absolute;top:0!important;bottom:0!important;left:0!important;right:auto!important;
    width:min(100vw,430px)!important;max-width:100%;border-radius:0 15px 15px 0;overscroll-behavior:contain}
  #merch .checkout-row{grid-template-columns:1fr!important}
  #merch input,#merch select,#merch textarea{max-width:100%;font-size:16px}
  /* Quiz, modal, text and interactive embeds */
  #quiz .quiz-layout{display:flex;flex-direction:column;width:100%;gap:15px;padding:15px 0 90px}
  #quiz .quiz-shell{width:100%;max-width:100%}
  #quiz .quiz-leaderboard{width:100%;max-width:100%;position:static}
  #quiz .quiz-card{padding:17px 13px}
  #quiz .quiz-answers{grid-template-columns:1fr!important}
  #quiz .quiz-answer{min-height:54px}
  #quiz .quiz-topline{flex-wrap:wrap}
  .modal{padding:10px;align-items:center}
  .modal-box{width:100%}
  .ratio{border-radius:9px}
  .history{font-size:16px;line-height:1.6}
  .history-sound-toggle{right:12px;bottom:65px}
  #musicToggle{left:max(9px,env(safe-area-inset-left))!important;bottom:max(9px,env(safe-area-inset-bottom))!important}
  #visitorCounter{right:max(9px,env(safe-area-inset-right));bottom:max(9px,env(safe-area-inset-bottom))}
}
@media(max-width:430px){
  #home .portal-layout{padding-top:17px;gap:18px}
  #home .portal-brand-band img{width:74px}
  #home .portal-column .portal-menu{gap:6px!important}
  #home .portal-column .portal-menu button{min-height:34px!important;font-size:10px!important;padding:7px 8px!important}
  #merch .merch-grid{grid-template-columns:1fr!important}
  .photo-grid,.store-grid{grid-template-columns:1fr 1fr!important}
}
@media(max-width:350px){
  #home .portal-column .portal-menu{grid-template-columns:1fr!important}
  #home .chow-time strong{font-size:20px}
}
@media(max-width:760px) and (orientation:landscape){
  #home .portal-layout{padding-top:14px}
  #home .portal-brand-band img{width:64px}
  #home .portal-column .portal-menu{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  #home .portal-column-right .portal-menu{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(prefers-reduced-motion:reduce){
  #home .portal-column .portal-menu button{transition:none!important}
}

/* Livres: sur téléphone, les 5 zones transparentes du visuel cinéma deviennent
   de vrais liens visibles et utilisables, car la vidéo est recadrée en portrait. */
@media(max-width:760px){
  #books .book-hit-area{position:absolute;inset:auto 12px 12px!important;left:12px!important;right:12px!important;
    bottom:max(20px,env(safe-area-inset-bottom))!important;height:auto!important;max-height:65vh;
    overflow-y:auto;display:grid;grid-template-columns:1fr!important;gap:8px!important;padding:15px 12px;
    border:1px solid rgba(255,125,90,.34);border-radius:18px;
    background:rgba(3,2,4,.86);backdrop-filter:blur(10px);box-shadow:0 18px 50px rgba(0,0,0,.52)}
  #books .book-hit-area::before{content:'CHOISIR UN LIVRE';font-family:Georgia,'Times New Roman',serif;
    font-size:20px;font-weight:900;color:#fff;letter-spacing:.035em;text-align:center;padding:3px 0 7px}
  #books .book-link{min-height:46px;padding:12px;border:1px solid rgba(255,255,255,.20);border-radius:10px;
    display:flex;align-items:center;justify-content:center;text-align:center;color:#fff;
    background:linear-gradient(90deg,rgba(40,7,9,.92),rgba(98,15,12,.78));font-weight:800;font-size:14px}
  #books .book-link span{display:block!important;opacity:1!important;visibility:visible!important;
    position:static!important;width:auto!important;height:auto!important;clip:auto!important;
    white-space:normal!important;overflow:visible!important}
  #books .book-link:focus-visible{outline:2px solid #fff;outline-offset:2px}
  /* Le jukebox d'origine reste intact sur ordinateur; la totalité de sa scène
     16:9 est visible sur mobile pour préserver l'emplacement des commandes. */
  #jukebox .mobile-jukebox-back{display:block!important}
  #jukebox .jukebox-stage{display:flex!important;justify-content:center;align-items:center;
    overflow:hidden!important;padding:65px 0 35px;background:#000}
  #jukebox .jukebox-canvas{position:relative!important;left:auto!important;top:auto!important;
    width:100vw!important;height:auto!important;aspect-ratio:16/9!important;max-height:none!important;
    transform:none!important;flex:0 0 auto}
  #jukebox #jukeboxPlayHotspot{min-width:44px;min-height:44px}
  #direct .direct-wrap{grid-template-columns:1fr!important;padding:74px 10px 28px;
    gap:16px;align-content:start;overflow-y:auto;-webkit-overflow-scrolling:touch}
  #direct .tv-wrap{width:100%;max-width:100%;margin:0 auto;aspect-ratio:1648/928;max-height:none}
  #direct .live-chat-wrap{width:100%;height:min(50vh,490px);min-height:220px}
  #tickets .ticket-center{width:100%;max-width:100%}
  #tickets .ticket-poster-link{max-width:100%;width:min(100%,470px)}
  #tickets .ticket-poster-link img{max-height:66vh;object-fit:contain}
  #tickets .ticket-cta{font-size:11px;text-align:center;padding:9px 10px}
  #performance .performance-frame{width:100%;max-width:100%}
  #performance .performance-frame iframe{max-width:100%}
  #lyrics .lyrics-tools{flex-direction:column;align-items:stretch;gap:9px}
  #lyrics #lyricsCount{white-space:normal}
}
@media(max-width:430px){
  #books .book-hit-area{max-height:72vh}
  #direct .live-chat-wrap{height:44vh}
}
/* Tablettes : le panneau ne doit pas dépasser de son contenant. */
@media(max-width:1050px){
  .screen:not(#home) .content-scroll{padding-left:clamp(12px,3vw,32px);padding-right:clamp(12px,3vw,32px)}
  .screen:not(#home) .content-scroll>.panel{width:100%;max-width:100%;min-width:0}
  #merch .merch-shell{width:100%;max-width:100%;min-width:0}
}
@media(max-width:760px){
  /* Titre de la page des lives : retour à la ligne plutôt que débordement. */
  #lives h2.lives-title{white-space:normal!important;overflow-wrap:break-word;font-size:clamp(21px,5.7vw,32px)!important;line-height:1.13}
  /* Panier : occupe la largeur utile; la boutique ne se déplace pas hors écran. */
  #merch.cart-open .merch-scroll{left:0!important;right:0!important}
  #merch .cart-drawer{top:0!important;left:0!important;right:auto!important;bottom:0!important;
    width:min(100vw,430px)!important;max-width:100%!important;height:100%!important;
    border-radius:0 15px 15px 0!important}
}
