/* R7366 - index + story pages polish */

@media (min-width:821px){
  body.home-story-v2 .home-story-puzzle[data-anchor="auth-right"]{
    --story-left:79vw!important;
    --story-top:58vh!important;
    --story-width:clamp(190px,18vw,285px)!important;
    --story-rotate:-2deg!important;
  }

  body.home-story-v2 .home-controls-demo__head{
    display:grid!important;
    grid-template-columns:minmax(0,.92fr) minmax(0,1fr)!important;
    gap:24px!important;
    align-items:start!important;
  }

  body.home-story-v2 .home-r7363-demo-steps,
  body.home-story-v2 .home-controls-demo__lead{
    font-size:13px!important;
    line-height:1.55!important;
  }

  body.home-story-v2 .home-r7363-demo-steps{
    margin:0!important;
    max-width:340px!important;
    display:flex!important;
    flex-direction:column!important;
    gap:3px!important;
    font-style:italic!important;
    font-weight:700!important;
    letter-spacing:0!important;
  }

  body.home-story-v2 .home-r7363-demo-steps span{
    display:block!important;
  }

  body.home-story-v2 .home-r7363-demo-note{
    margin-top:10px!important;
  }

  body.home-story-v2 [data-fun-facts-root]{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

.about-story-page .story-kicker{
  white-space:normal!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.35!important;
}

body.about-story-page--project .about-story-quicknav__inner{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}

@media (max-width:820px){
  body.about-story-page--project .about-story-quicknav__inner{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  .about-story-page .story-kicker{
    font-size:12px!important;
  }

  .platform-joke-overlay__stage{
    width:100%!important;
    height:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
  }

  .platform-joke-overlay__image{
    max-width:min(88vw,360px)!important;
    max-height:min(56vh,500px)!important;
    margin:0 auto!important;
  }

  .platform-joke-overlay__message{
    width:min(92vw,360px)!important;
    bottom:112px!important;
    left:50%!important;
    transform:translate(-50%,18px)!important;
  }

  .platform-joke-overlay.is-ready .platform-joke-overlay__message{
    transform:translate(-50%,0)!important;
  }
}

@media (max-width:420px){
  .platform-joke-overlay__image{
    max-height:min(52vh,440px)!important;
  }

  .platform-joke-overlay__message{
    bottom:126px!important;
    font-size:14px!important;
  }
}
