body.storefront-page.cs-cinema-home main .brand-worlds #cinematic-world-grid.cinematic-world-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: auto !important;
  gap: 10px !important;
  padding: 5px 2px !important;
  overflow: visible;
}

body.storefront-page.cs-cinema-home main .brand-worlds #cinematic-world-grid.cinematic-world-grid li .brand-worlds-tile {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #191e24 !important;
  width: 100%;
  height: clamp(86px, 10.4vw, 148px) !important;
  padding: clamp(10px, 1.5vw, 24px) !important;
  border: 1px solid #ffffff30 !important;
  border-radius: 9px !important;
  box-sizing: border-box;
  transition: transform 200ms ease-out, border-color 200ms ease-out !important;
}

body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid .brand-worlds-tile[data-cinematic-world]::after {
  content: '';
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  background: linear-gradient(90deg, #10151bdb 0%, #10151b65 57%, #10151b00 100%);
  z-index: -1;
  opacity: 1;
  pointer-events: none;
}

body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid .brand-worlds-tile img.cinematic-tile-art {
  position: absolute !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: 68% center !important;
  z-index: -2;
  transform: none;
  transition: transform 200ms ease-out;
}

body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid .brand-worlds-tile img:not(.cinematic-tile-art) {
  width: min(var(--brand-size, 90%), 68%) !important;
  height: clamp(35px, 5.5vw, 76px) !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  transform: none;
  transition: transform 200ms ease-out;
  transform-origin: left center;
}

body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid a.brand-worlds-tile:focus-visible {
  outline: 2px solid #ff9a27 !important;
  outline-offset: 2px !important;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid a.brand-worlds-tile:hover {
    transform: translateY(-3px);
    border-color: #ff9a27 !important;
  }
  body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid a.brand-worlds-tile:hover img.cinematic-tile-art {
    transform: scale(1.04);
  }
  body.storefront-page.cs-cinema-home main #cinematic-world-grid.cinematic-world-grid a.brand-worlds-tile:hover img:not(.cinematic-tile-art) {
    transform: scale(1.03);
  }
}

@media (max-width: 760px) {
  body.storefront-page.cs-cinema-home main .brand-worlds #cinematic-world-grid.cinematic-world-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  body.storefront-page.cs-cinema-home main .brand-worlds #cinematic-world-grid.cinematic-world-grid li .brand-worlds-tile {
    height: clamp(74px, 22vw, 125px) !important;
  }
}

body.world-page .world-hero .cinematic-world-logo {
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  object-fit: contain;
  object-position: left center;
  width: clamp(105px, 25vw, 350px) !important;
  height: auto !important;
  max-width: 75% !important;
  max-height: clamp(34px, 9vw, 120px) !important;
  margin-bottom: clamp(2px, 1vw, 14px);
  transform-origin: left center;
}

body.world-page .world-masthead-logo[src^="/assets/world-refresh/"] {
  background: transparent !important;
  border: 0 !important;
}

@media (max-width: 540px) {
  body.world-page .world-hero:has(.cinematic-world-logo) {
    min-height: 150px !important;
  }
}

.world-opening {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
}

.world-opening-shade,
.world-opening-scene {
  position: absolute;
  inset: 0;
}
.world-opening-shade { background: #0b0e13; opacity: 0; }
.world-opening-scene { overflow: hidden; background: #141922; }
.world-opening-art { width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.world-opening-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a101ad9, #0a101a20 66%);
}
.world-opening-mark {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
  transform-origin: 0 0;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  #cinematic-world-grid.cinematic-world-grid .brand-worlds-tile,
  #cinematic-world-grid.cinematic-world-grid .brand-worlds-tile img {
    transition: none !important;
    transform: none !important;
  }
  .world-opening { display: none; }
}

.world-opening-tile-art {
  position: absolute;
  object-fit: cover;
  object-position: 68% center;
  border-radius: 9px;
}
