/* EXOLAND V57 | Desktop fit and mobile play selector improvements.
   Deliberately scoped away from the main .hero section and gameplay dialogs. */
#games .game-catalog {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:stretch;
  gap:16px;
  min-width:0;
}
#games .game-catalog > .game-showcase {
  position:relative;
  box-sizing:border-box;
  display:block;
  width:100%;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:5/4;
  overflow:hidden;
  isolation:isolate;
  border-radius:20px;
  text-align:left;
}
#games .game-catalog > .game-showcase img {
  position:absolute!important;
  inset:0;
  display:block;
  width:100%!important;
  height:100%!important;
  max-width:none;
  object-fit:cover!important;
  object-position:center 43%!important;
  filter:none!important;
  opacity:1!important;
  transition:transform .32s ease;
}
#games .game-catalog > .game-showcase:hover img {transform:scale(1.035)}
#games .game-catalog > .game-showcase::after{
  content:'';
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(2,8,24,.12) 0%,rgba(2,8,24,.02) 38%,rgba(2,8,24,.85) 100%);
}
#games .game-catalog > .game-showcase .game-availability{position:absolute;z-index:2;top:15px;left:16px;max-width:calc(100% - 32px)}
#games .game-catalog > .game-showcase .game-showcase-body{
  position:absolute;z-index:2;inset:auto 0 0;
  box-sizing:border-box;
  display:flex;flex-direction:column;align-items:flex-start;
  width:100%;gap:7px;padding:22px 23px 22px;
  background:none!important;
}
#games .game-catalog > .game-showcase .game-showcase-body strong{
  font-size:clamp(20px,2vw,34px);
  line-height:1.07;
  max-width:100%;
  white-space:normal;
  text-shadow:0 3px 18px rgba(0,0,0,.62);
}
#games .game-catalog > .game-showcase .game-showcase-body small{
  font-size:clamp(9px,.8vw,11px);
  max-width:100%;line-height:1.5;
  overflow-wrap:anywhere;
  text-shadow:0 2px 9px #000b;
}
#arcade,#racer {
  box-sizing:border-box;
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(0,.78fr);
  gap:24px;
  align-items:center;
  min-width:0;
  min-height:460px;
}
#arcade > .arcade-image,#racer > .arcade-image{
  position:relative;
  box-sizing:border-box;
  display:block;
  width:100%;
  height:390px;
  min-height:0;
  border-radius:17px;
  overflow:hidden;
  text-align:left;
}
#arcade > .arcade-image img,#racer > .arcade-image img{
  position:absolute;
  inset:0;
  width:100%;height:100%;
  display:block;
  object-fit:cover!important;
  object-position:center 46%!important;
  filter:none!important;
  opacity:1!important;
}
#arcade > .arcade-image .arcade-live,#racer > .arcade-image .arcade-live{position:absolute;z-index:2;top:14px;left:14px}
#arcade > .arcade-copy,#racer > .arcade-copy{box-sizing:border-box;min-width:0;align-self:center}
#arcade > .arcade-copy > .orange-label,#racer > .arcade-copy > .orange-label{line-height:1.3}
@media(max-width:1150px){
  #arcade,#racer{grid-template-columns:minmax(0,1fr) minmax(0,.92fr);min-height:420px;gap:20px}
  #arcade > .arcade-image,#racer > .arcade-image{height:340px}
}
@media(max-width:780px){
  #games .game-catalog{grid-template-columns:minmax(0,1fr);gap:14px}
  #games .game-catalog > .game-showcase{aspect-ratio:3/2;max-width:100%;border-radius:16px}
  #games .game-catalog > .game-showcase .game-showcase-body{padding:18px 18px 17px;gap:5px}
  #games .game-catalog > .game-showcase .game-showcase-body strong{font-size:clamp(22px,7vw,32px)}
  #games .game-catalog > .game-showcase .game-showcase-body small{font-size:10px}
  #arcade,#racer{display:flex;flex-direction:column;gap:16px;min-height:0;padding-bottom:20px}
  #arcade > .arcade-image,#racer > .arcade-image{
    width:100%;height:auto;aspect-ratio:16/9;flex:0 0 auto;
  }
  #arcade > .arcade-copy,#racer > .arcade-copy{width:100%;align-self:stretch}
}
@media(prefers-reduced-motion:reduce){#games .game-catalog > .game-showcase img{transition:none!important}}


/* V57: constrain feature panels on desktop. The earlier layout allowed
   the artwork to grow independently of the column, causing a clipped
   right-hand description and a large empty region below the picture. */
@media (min-width:781px){
  body #arcade.arcade.shell,
  body #racer.arcade.shell{
    box-sizing:border-box!important;
    display:grid!important;
    grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr)!important;
    align-items:center!important;
    gap:clamp(16px,2.4vw,36px)!important;
    width:calc(100% - 40px)!important;
    max-width:1380px!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    padding:clamp(16px,2.1vw,28px)!important;
    margin-inline:auto!important;
    overflow:hidden!important;
  }
  body #arcade.arcade.shell > .arcade-image,
  body #racer.arcade.shell > .arcade-image{
    box-sizing:border-box!important;
    display:block!important;
    position:relative!important;
    justify-self:stretch!important;
    align-self:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    overflow:hidden!important;
    border-radius:17px;
    padding:0!important;
    margin:0!important;
  }
  body #arcade.arcade.shell > .arcade-image img,
  body #racer.arcade.shell > .arcade-image img{
    display:block!important;
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:cover!important;
    object-position:50% 50%!important;
    transform:none!important;
  }
  body #arcade.arcade.shell > .arcade-copy,
  body #racer.arcade.shell > .arcade-copy{
    box-sizing:border-box!important;
    position:relative!important;
    display:block!important;
    justify-self:stretch!important;
    align-self:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin:0!important;
    padding:0!important;
    overflow-wrap:break-word;
  }
  body #arcade.arcade.shell > .arcade-copy h2,
  body #racer.arcade.shell > .arcade-copy h2{
    max-width:100%!important;
    font-size:clamp(30px,3.25vw,62px)!important;
    line-height:1.05!important;
    overflow-wrap:normal;
  }
  body #arcade.arcade.shell > .arcade-copy p,
  body #racer.arcade.shell > .arcade-copy p,
  body #arcade.arcade.shell > .arcade-copy ul,
  body #racer.arcade.shell > .arcade-copy ul{
    box-sizing:border-box;
    max-width:100%!important;
    min-width:0;
    overflow-wrap:break-word;
  }
  /* Both covers are always framed with the same proportions and centering. */
  body #games .game-catalog > .game-showcase{
    min-width:0!important;
    max-width:100%!important;
    aspect-ratio:5/4!important;
    overflow:hidden!important;
  }
  body #games .game-catalog > .game-showcase img{
    max-width:100%!important;
    transform:none;
  }
}
@media (min-width:781px) and (max-width:1080px){
  body #arcade.arcade.shell,
  body #racer.arcade.shell{
    grid-template-columns:minmax(0,1fr) minmax(0,.95fr)!important;
    width:calc(100% - 28px)!important;
    padding:16px!important;
    gap:18px!important;
  }
  body #arcade.arcade.shell > .arcade-copy h2,
  body #racer.arcade.shell > .arcade-copy h2{font-size:clamp(29px,3.7vw,44px)!important}
}

/* Mobile choice sheet. Icons and buttons are native SVG/CSS, not emoji. */
#exolandGamePicker{
  color:#eef8ff;
  background:linear-gradient(156deg,#0b1d42,#080f2a 66%,#170c31);
  border:1px solid rgba(93,206,255,.53);
  border-radius:23px;
  width:min(94vw,620px);
  max-height:min(88dvh,840px);
  padding:0;
  overflow:auto;
  box-shadow:0 28px 90px rgba(0,0,0,.77),0 0 36px rgba(66,209,255,.15);
}
#exolandGamePicker::backdrop{background:rgba(1,5,18,.82);backdrop-filter:blur(9px)}
#exolandGamePicker .picker-inner{padding:22px;box-sizing:border-box}
#exolandGamePicker .picker-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:15px}
#exolandGamePicker .picker-kicker{display:block;color:#81eaff;font:800 11px/1.3 'Exo 2',sans-serif;letter-spacing:.16em;margin-bottom:7px}
#exolandGamePicker h2{color:#f4f7ff;margin:0;font:900 clamp(23px,5.7vw,32px)/1.1 'Exo 2',sans-serif;letter-spacing:-.025em}
#exolandGamePicker .picker-x{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;padding:10px;background:rgba(34,56,100,.65);border:1px solid rgba(132,195,246,.4);border-radius:12px;color:#fff;cursor:pointer}
#exolandGamePicker .picker-x svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#exolandGamePicker .picker-intro{font:500 13px/1.65 'Exo 2',sans-serif;color:#b7ceea;margin:0 0 17px}
#exolandGamePicker .picker-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#exolandGamePicker .picker-option{display:flex;flex-direction:column;align-items:stretch;gap:0;text-align:left;overflow:hidden;min-width:0;padding:0;border:1px solid rgba(121,179,233,.35);border-radius:15px;background:#122448;color:#fff;cursor:pointer;transition:border-color .2s,transform .2s}
#exolandGamePicker .picker-option:hover,#exolandGamePicker .picker-option:focus-visible{border-color:#6ef2ff;transform:translateY(-2px);outline:0}
#exolandGamePicker .picker-option img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}
#exolandGamePicker .picker-option-copy{display:flex;flex-direction:column;gap:5px;padding:13px}
#exolandGamePicker .picker-option-copy strong{font:900 14px/1.2 'Exo 2',sans-serif;color:#fff}
#exolandGamePicker .picker-option-copy small{font:650 11px/1.45 'Exo 2',sans-serif;color:#a0dcef}
#exolandGamePicker .picker-foot{font:500 11px/1.5 'Exo 2',sans-serif;color:#94aed1;margin:15px 0 0}
@media(max-width:520px){
  #exolandGamePicker{width:calc(100vw - 18px);border-radius:19px}
  #exolandGamePicker .picker-inner{padding:17px}
  #exolandGamePicker .picker-grid{grid-template-columns:1fr;gap:11px}
  #exolandGamePicker .picker-option{display:grid;grid-template-columns:41% minmax(0,1fr);min-height:112px}
  #exolandGamePicker .picker-option img{height:100%;aspect-ratio:auto;object-fit:cover}
  #exolandGamePicker .picker-option-copy{justify-content:center;gap:8px;padding:12px}
}

/* Make the chooser reliably visible above the mobile dock and page chrome. */
#exolandGamePicker:modal{position:fixed;inset:0;margin:auto;z-index:2147483000;box-sizing:border-box}
#exolandGamePicker .picker-option{touch-action:manipulation}
@media(max-width:520px){#exolandGamePicker .picker-grid{align-items:stretch}}
