/* 4dsHub V22 — Games page + wider Digital Twin */

/* GAMES PAGE */
body.home-reference-mode.concept-mode .concept-games.games-v22{
  width:min(1480px,92vw)!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:clamp(34px,4.5vw,74px) 0 clamp(70px,8vw,118px)!important;
  background:transparent!important;
  overflow:visible!important;
}
.games-v22__hero{
  position:relative;
  max-width:1040px;
  margin:0 auto clamp(68px,8vw,118px);
  text-align:center;
}
.games-v22__hero::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:clamp(-42px,-3vw,-28px);
  width:min(620px,68vw);
  height:1px;
  transform:translateX(-50%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  box-shadow:0 0 24px rgba(255,255,255,.16);
}
.games-v22__eyebrow{
  margin:0 0 20px;
  color:rgba(255,255,255,.48);
  font-size:clamp(10px,.72vw,12px);
  font-weight:900;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.games-v22__hero h2{
  margin:0;
  color:#fff;
  font-size:clamp(46px,5.5vw,88px);
  line-height:.9;
  letter-spacing:-.075em;
  font-weight:950;
}
.games-v22__intro{
  max-width:780px;
  margin:28px auto 0;
  color:rgba(255,255,255,.68);
  font-size:clamp(15px,1.15vw,19px);
  line-height:1.5;
  letter-spacing:-.025em;
}
.games-v22__worlds{display:grid;gap:0;}
.games-v22__world{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,.95fr) minmax(360px,.82fr);
  align-items:center;
  gap:clamp(42px,7vw,112px);
  min-height:clamp(640px,72svh,840px);
  padding:clamp(58px,7vw,96px) 0;
  border-top:1px solid rgba(255,255,255,.09);
}
.games-v22__world:nth-child(even){grid-template-columns:minmax(360px,.82fr) minmax(0,.95fr);}
.games-v22__world:nth-child(even) .games-v22__visual{grid-column:2;grid-row:1;}
.games-v22__world:nth-child(even) .games-v22__copy{grid-column:1;grid-row:1;}
.games-v22__visual{
  position:relative;
  min-width:0;
  display:grid;
  place-items:center;
  min-height:520px;
  isolation:isolate;
}
.games-v22__halo{
  position:absolute;
  width:min(42vw,560px);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.10),rgba(255,255,255,.025) 34%,transparent 68%);
  filter:blur(12px);
  opacity:.55;
  z-index:-1;
}
.games-v22__visual::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:7%;
  width:min(72%,520px);
  height:24px;
  transform:translateX(-50%);
  background:radial-gradient(ellipse,rgba(0,0,0,.68),transparent 68%);
  filter:blur(12px);
  z-index:-1;
}
.games-v22__visual img{
  display:block;
  width:min(100%,610px);
  max-height:690px;
  object-fit:contain;
  object-position:center;
  filter:drop-shadow(0 28px 70px rgba(0,0,0,.42));
  transform:translate3d(0,0,0);
  transition:transform .7s cubic-bezier(.16,1,.3,1),filter .7s ease;
}
.games-v22__world:hover .games-v22__visual img{
  transform:translate3d(0,-8px,0) scale(1.018);
  filter:drop-shadow(0 34px 84px rgba(0,0,0,.54));
}
.games-v22__copy{position:relative;max-width:590px;}
.games-v22__number{
  display:inline-block;
  margin-bottom:18px;
  color:rgba(255,255,255,.3);
  font-size:13px;
  font-weight:950;
  letter-spacing:.22em;
}
.games-v22__copy h3{
  margin:0;
  color:#fff;
  font-size:clamp(42px,4.6vw,76px);
  line-height:.9;
  letter-spacing:-.07em;
  font-weight:950;
}
.games-v22__meta{
  margin:18px 0 18px!important;
  color:rgba(255,255,255,.48)!important;
  font-size:clamp(10px,.75vw,12px)!important;
  line-height:1.45!important;
  letter-spacing:.13em!important;
  text-transform:uppercase;
  font-weight:900!important;
}
.games-v22__copy > p:not(.games-v22__meta){
  margin:0;
  color:rgba(255,255,255,.77);
  font-size:clamp(15px,1.05vw,18px);
  line-height:1.62;
  letter-spacing:-.018em;
}
.games-v22__copy > a{
  display:inline-flex;
  align-items:center;
  gap:16px;
  margin-top:30px;
  min-height:48px;
  padding:0 20px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  background:rgba(255,255,255,.025);
  font-size:11px;
  line-height:1;
  font-weight:950;
  letter-spacing:.13em;
  transition:transform .3s ease,border-color .3s ease,background .3s ease;
}
.games-v22__copy > a b{font-size:18px;font-weight:500;transition:transform .3s ease;}
.games-v22__copy > a:hover,
.games-v22__copy > a:focus-visible{transform:translateY(-3px);border-color:rgba(255,255,255,.58);background:rgba(255,255,255,.07);outline:none;}
.games-v22__copy > a:hover b{transform:translate(3px,-3px);}

/* cinematic page reveal without a permanent animation loop */
.games-v22.is-active .games-v22__reveal{animation:gamesV22Reveal .85s cubic-bezier(.16,1,.3,1) both;}
.games-v22.is-active .games-v22__world:nth-child(2){animation-delay:.06s;}
.games-v22.is-active .games-v22__world:nth-child(3){animation-delay:.12s;}
.games-v22.is-active .games-v22__world:nth-child(4){animation-delay:.18s;}
.games-v22.is-active .games-v22__world:nth-child(5){animation-delay:.24s;}
@keyframes gamesV22Reveal{from{opacity:0;transform:translateY(28px);filter:blur(7px)}to{opacity:1;transform:translateY(0);filter:blur(0)}}

/* DIGITAL TWIN: wider modal and full uncropped 16:9 video */
@media(min-width:761px){
  body.digital-twin-modal-open .dt-modal-overlay.is-open .dt-modal{
    width:min(1440px,96vw)!important;
    height:min(92svh,980px)!important;
  }
  body.digital-twin-modal-open .dt-modal-overlay.is-open .dt-video-stage{
    width:min(1280px,100%)!important;
    max-width:1280px!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    margin:0 auto!important;
    background:#000!important;
  }
  body.digital-twin-modal-open .dt-modal-overlay.is-open .dt-loop-video{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    object-fit:contain!important;
    object-position:center center!important;
  }
}
@media(max-width:760px){
  body.digital-twin-modal-open .dt-modal-overlay.is-open .dt-video-stage{
    width:100%!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:16/9!important;
  }
  body.digital-twin-modal-open .dt-modal-overlay.is-open .dt-loop-video{
    position:relative!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    object-fit:contain!important;
  }
}

@media(max-width:900px){
  body.home-reference-mode.concept-mode .concept-games.games-v22{
    width:min(92vw,720px)!important;
    padding:8px 0 64px!important;
  }
  .games-v22__hero{margin-bottom:56px;text-align:left;}
  .games-v22__hero h2{font-size:clamp(42px,12vw,72px);}
  .games-v22__intro{margin-left:0;}
  .games-v22__world,
  .games-v22__world:nth-child(even){
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    min-height:0;
    padding:48px 0 58px;
  }
  .games-v22__world:nth-child(even) .games-v22__visual,
  .games-v22__world:nth-child(even) .games-v22__copy{grid-column:auto;grid-row:auto;}
  .games-v22__visual{min-height:0;order:1;}
  .games-v22__copy{max-width:none;order:2;}
  .games-v22__visual img{width:min(100%,520px);max-height:64svh;}
  .games-v22__halo{width:min(78vw,440px);}
  .games-v22__copy h3{font-size:clamp(40px,12vw,66px);}
}

@media(prefers-reduced-motion:reduce){
  .games-v22.is-active .games-v22__reveal{animation:none!important;}
  .games-v22__visual img,.games-v22__copy>a{transition:none!important;}
}
