/* Cinematic media layers; the existing navigation, title and paper edge stay in place. */
.portal-hero-bg{background-image:url('./assets/media/brainrot-hero-poster.jpg');background-position:center;transform:none;animation:none}
.portal-hero-video{object-position:center;pointer-events:none}
.portal-hero::after{background:linear-gradient(180deg,rgba(4,9,17,.34),rgba(4,9,17,.08) 44%,rgba(4,9,17,.5)),linear-gradient(90deg,rgba(4,9,17,.18),transparent 55%,rgba(4,9,17,.12))}
.hero-stars{display:none}
.hero-noise{opacity:.06}
.hero-media-actions{position:absolute;z-index:5;left:50%;transform:translateX(-50%);bottom:clamp(100px,13vh,150px);display:flex;align-items:end;justify-content:flex-end;pointer-events:none}
.trailer-dock{position:fixed;z-index:80;left:max(22px,calc((100vw - var(--max))/2));bottom:max(28px,env(safe-area-inset-bottom));transition:bottom .28s ease;pointer-events:auto}
.portal-footer{padding-bottom:calc(116px + env(safe-area-inset-bottom))}
.hero-watch-trailer,.hero-motion-toggle{pointer-events:auto}
.hero-watch-trailer{display:flex;align-items:center;padding:12px;min-height:88px;border:2px solid #e5b563;border-radius:14px;background:linear-gradient(125deg,#fff5da,#f4dfb6);color:#63401e;box-shadow:0 8px 28px rgba(0,0,0,.24);transition:transform .18s ease,box-shadow .18s ease,min-height .28s ease,padding .28s ease;cursor:pointer}
.hero-watch-trailer:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(0,0,0,.34)}
.hero-watch-trailer>img{width:80px;height:60px;flex:none;margin-right:16px;object-fit:cover;border-radius:7px;transition:width .28s ease,height .28s ease,margin .28s ease}
.hero-watch-trailer .trailer-button-copy{display:grid;gap:5px;width:166px;flex:none;overflow:hidden;white-space:nowrap;opacity:1;margin-right:16px;transition:width .28s ease,margin .28s ease,opacity .2s ease}
.hero-watch-trailer small{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.hero-watch-trailer strong{font-size:20px;line-height:1.1;font-weight:900;text-transform:uppercase}
.trailer-play-icon{flex:none;width:38px;height:38px;fill:#875b31;transition:width .28s ease,height .28s ease}
.trailer-play-icon path{fill:#fff5da}

/* Collapse to the original compact floating control once the hero has been left.
   The whole compact control remains clickable. */
.trailer-dock.is-compact .hero-watch-trailer{min-height:70px;padding:10px}
.trailer-dock.is-compact .hero-watch-trailer>img{width:64px;height:46px;margin-right:12px}
.trailer-dock.is-compact .trailer-button-copy{width:0;margin-right:0;opacity:0;pointer-events:none}
.trailer-dock.is-compact .trailer-play-icon{width:34px;height:34px}

.hero-motion-toggle{display:flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:1px solid rgba(255,243,216,.5);border-radius:24px;background:rgba(6,13,24,.7);color:#fff5da;font-size:12px;font-weight:700;cursor:pointer;backdrop-filter:blur(8px)}
.hero-motion-toggle[hidden]{display:none}
.hero-motion-toggle{width:44px;height:44px;padding:0;justify-content:center}
.hero-motion-toggle>span{display:none}
.hero-motion-toggle svg{width:15px;height:15px;fill:currentColor;flex:none}
.hero-motion-toggle .motion-play{display:none}
.hero-motion-toggle[data-paused="true"] .motion-pause{display:none}
.hero-motion-toggle[data-paused="true"] .motion-play{display:block}
.hero-watch-trailer:focus-visible,.hero-motion-toggle:focus-visible{outline:3px solid #fff3c8;outline-offset:5px;box-shadow:0 0 0 3px #63401e}
@media(max-width:680px){
  .hero-logo-stage{align-self:center;padding:0!important}
  .hero-game-title{transform:translateY(-12vh)}
  .portal-hero-bg{background-position:50% center}
  .portal-hero-video{object-position:50% center}
  .hero-media-actions{bottom:max(116px,calc(env(safe-area-inset-bottom) + 100px))}
  .trailer-dock{left:14px;bottom:max(18px,env(safe-area-inset-bottom))}
  .hero-watch-trailer{padding:10px;min-height:76px}
  .hero-watch-trailer>img{width:54px;height:50px;margin-right:10px}
  .hero-watch-trailer .trailer-button-copy{width:148px;margin-right:12px}
  .hero-watch-trailer small{font-size:10px}
  .hero-watch-trailer strong{font-size:clamp(14px,4vw,17px)}
  .trailer-play-icon{width:32px;height:32px}
  .trailer-dock.is-compact .hero-watch-trailer{min-height:64px;padding:8px}
  .trailer-dock.is-compact .hero-watch-trailer>img{width:50px;height:44px;margin-right:10px}
  .trailer-dock.is-compact .trailer-button-copy{width:0;margin-right:0;opacity:0;pointer-events:none}
  .trailer-dock.is-compact .trailer-play-icon{width:32px;height:32px}
  .hero-motion-toggle{margin-left:auto;min-height:44px;font-size:11px}
}
@media(max-width:350px){.hero-watch-trailer .trailer-button-copy{width:132px;margin-right:8px}.trailer-dock.is-compact .trailer-button-copy{width:0;margin-right:0}}
@media(max-height:560px){.hero-media-actions{bottom:96px}.hero-watch-trailer{min-height:62px;padding:8px}.hero-watch-trailer>img{height:44px}.hero-watch-trailer strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){.portal-hero-video,.trailer-dock,.hero-watch-trailer,.hero-watch-trailer>img,.hero-watch-trailer .trailer-button-copy,.trailer-play-icon{transition:none}}

/* Keep the navigation visually identical after the trailer dock switches to compact mode. */
.world-home:has(.trailer-dock.is-compact) .portal-header{
  background:rgba(17,17,18,.27)!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:blur(2px) saturate(104%)!important;
  -webkit-backdrop-filter:blur(2px) saturate(104%)!important;
}