/* Maijum Coletivo and Efeito de Estufa (option B), on top of magnotherm.css, which gives them
   the colour bars, the floating screens and the scene changer. Made by tools/make_cases.py.
   Nothing moves for anyone whose system asks for less motion. */
.cs{--e:cubic-bezier(.3,.7,.2,1)}

/* the four badges in one row; hover one and the badge grows inside its frame, the frame stays put */
.cs-logos{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:none;overflow:visible}
.cs-logos > .cs-badge{position:relative;display:block;width:100%;aspect-ratio:1/1;overflow:hidden}
.cs-badge video{display:block;width:100%;height:100%;object-fit:cover;transition:scale .6s var(--e)}
.cs-badge:hover video{scale:1.12}
.b-in .bp .cs-logos > .cs-badge{opacity:0;transition:opacity .8s ease calc(var(--i) * 90ms)}
.b-in .bp .cs-logos.seen > .cs-badge{opacity:1}

/* the scene changers in each brand's own colours */
.cs-mj .mt-chips button[aria-pressed="true"]{background:#cb85b4;color:#19081e}
.cs-mj .mt-chips button i{background:#3b653d}
.cs-ef .mt-chips button[aria-pressed="true"]{background:#ff4217;color:#fff5e3}
.cs-ef .mt-chips button i{background:#ffc726}

/* a full picture, moving very slowly while it's on screen */
.cs-drift img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;scale:1.001}
.cs-drift.go img{animation:cs-drift 16s ease-in-out infinite alternate}
@keyframes cs-drift{to{scale:1.07}}

/* pairs in portrait, cropped from the middle */
.cs-pair img{aspect-ratio:4/5;object-fit:cover;height:auto}
.cs-lift img{transition:translate .6s var(--e)}
.cs-lift img:hover{translate:0 -10px}

/* ---------- Maijum: the sticker sheet, stuck down one at a time ---------- */
.cs-stickers{aspect-ratio:16/9;background:#0b0b0b;cursor:default}
.cs-stickers img{position:absolute;height:auto;rotate:var(--r);cursor:pointer;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.45));transition:rotate .5s var(--e),scale .5s var(--e),translate .5s var(--e)}
.cs-stickers img:hover{rotate:0deg;scale:1.08;translate:0 -6px;z-index:5}
.cs-stickers.wait img{opacity:0;scale:1.6;rotate:calc(var(--r) * 3)}
.cs-stickers.go img{animation:cs-stick .7s var(--e) calc(var(--i) * 110ms) both}
@keyframes cs-stick{from{opacity:0;scale:1.6;rotate:calc(var(--r) * 3)}60%{opacity:1;scale:.96}to{opacity:1;scale:1;rotate:var(--r)}}
.cs-stickers img.wob{animation:cs-wob .6s var(--e)}
@keyframes cs-wob{25%{rotate:calc(var(--r) - 9deg)}55%{rotate:calc(var(--r) + 7deg)}80%{rotate:calc(var(--r) - 3deg)}}


/* ---------- Efeito de Estufa: the cloud, puffing rings ---------- */
.cs-puff{aspect-ratio:16/9;background:var(--ground);cursor:pointer}
.cs-puff svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.cs-puff .ring{fill:none;stroke:#fff5e3;stroke-width:2px;vector-effect:non-scaling-stroke;
  transform-origin:800px 450px;opacity:0;transform:scale(1)}
.cs-puff.go .ring{animation:cs-ring 13.5s linear calc(var(--i) * -1.5s) infinite}
.cs-puff .ring.burst{animation:cs-ring 2.6s cubic-bezier(.2,.6,.3,1) 0s 1 forwards}
@keyframes cs-ring{0%{transform:scale(1);opacity:0}8%{opacity:.9}100%{transform:scale(7.5);opacity:0}}
.cs-puff img{position:absolute;left:50%;top:50%;height:auto;translate:-50% -50%;z-index:1;
  transition:scale .5s var(--e)}
.cs-puff:hover img{scale:1.04}
.cs-puff img.pop{animation:cs-pop .55s var(--e)}
@keyframes cs-pop{40%{scale:1.12}}

@media (prefers-reduced-motion:reduce){
  .cs-drift.go img,.cs-puff.go .ring,.cs-stickers.go img{animation:none}
  .cs-stickers.wait img{opacity:1;scale:1;rotate:var(--r)}
  .cs-puff .ring{opacity:.6;transform:scale(calc(1 + var(--i) * .7))}
}
