/* Tilt neon home — our pieces on top of the neon frontend (mascot, logo, doodle dice). */

/* the 3D mascot leaning on the hero reels (placed by brand/neon/mascot.js) */
.hero-mascot{position:absolute;pointer-events:none;opacity:0;transition:opacity .6s;left:auto;right:8%;top:20%;
  width:clamp(170px, 22vw, 320px);aspect-ratio:1/1.05}
.hero-mascot.is-ready{opacity:1}
.hero-mascot.is-tucked{visibility:hidden}   /* hidden, not removed, so he can be measured and placed again */

/* the dealer behind the Hold'em table in "The table is open": the table's canvas draws over his chest */
.final-copy{grid-row:1}
.final-gl{z-index:1;grid-row:2}
.final-gl,.final-mascot{grid-column:1}   /* one cell, so on narrow screens they don't split the row into two columns */
.final-mascot{position:relative;grid-row:2;justify-self:center;align-self:start;pointer-events:none;
  width:clamp(140px, 16vw, 250px);aspect-ratio:1/1.05;margin-top:var(--dealer-top, 4%);opacity:0;transition:opacity .6s}
.final-mascot.is-ready{opacity:1}
@media (min-width:900px){
  .final-copy{grid-column:1;grid-row:1}
  .final-gl,.final-mascot{grid-column:2;grid-row:1}
}

/* Why Tilt: the doodle dice from the Dice card (plain images in the HTML; js/blobs.js adds the hop) */
.why-blobs{position:relative;display:flex;align-items:flex-end;justify-content:center;gap:clamp(4px,2vw,24px);
  height:clamp(240px,30vw,380px);padding-bottom:6%;pointer-events:none}
.why-blobs .blob{width:min(44%,240px);height:auto;transform-origin:50% 92%;animation:blobBob 3.4s ease-in-out infinite;
  filter:drop-shadow(0 22px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(255,61,154,.22))}
.why-blobs .blob.r{animation-delay:-1.7s;filter:drop-shadow(0 22px 22px rgba(0,0,0,.55)) drop-shadow(0 0 18px rgba(61,240,255,.22))}
@keyframes blobBob{50%{transform:translateY(-6px) scaleY(1.02) scaleX(.99)}}
.why-blobs.is-hop .blob{animation:blobHop 1.1s cubic-bezier(.3,.7,.4,1) both}
.why-blobs.is-hop .blob.r{animation-delay:.12s}
@keyframes blobHop{0%{transform:none}14%{transform:scaleY(.86) scaleX(1.08)}42%{transform:translateY(-70px) rotate(-10deg) scaleY(1.06) scaleX(.95)}
  70%{transform:translateY(0) rotate(4deg) scaleY(.9) scaleX(1.07)}84%{transform:scaleY(1.04) scaleX(.97)}100%{transform:none}}

/* Three steps: a doodle die drops onto each step, with the step number on a neon badge (pink, cyan, lime) */
.step-blobs{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end;justify-items:center;
  padding:0 var(--s-4);pointer-events:none}
.step-blobs .sb{position:relative;width:min(50%,150px);margin-bottom:14px}   /* in place by default: the drop below is an enhancement js/blobs.js arms */
.step-blobs.is-armed .sb{opacity:0;transform:translateY(-120px)}
.step-blobs img{display:block;width:100%;height:auto;filter:drop-shadow(0 16px 16px rgba(0,0,0,.55));transform-origin:50% 92%;animation:blobBob 3.4s ease-in-out infinite}
.step-blobs .sb:nth-child(2) img{animation-delay:-1.1s}
.step-blobs .sb:nth-child(3) img{animation-delay:-2.2s}
.step-blobs b{--tube:var(--pink);position:absolute;right:-4%;top:-4%;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:var(--bg);color:var(--text);font:700 16px/1 var(--font-mono);border:2px solid var(--tube);box-shadow:0 0 12px color-mix(in srgb, var(--tube) 55%, transparent)}
.step-blobs .sb:nth-child(2) b{--tube:var(--cyan)}
.step-blobs .sb:nth-child(3) b{--tube:var(--lime)}
.step-blobs.is-armed.is-in .sb{animation:stepDrop .9s cubic-bezier(.3,1.4,.5,1) both}
.step-blobs.is-armed.is-in .sb:nth-child(2){animation-delay:.25s}
.step-blobs.is-armed.is-in .sb:nth-child(3){animation-delay:.5s}
@keyframes stepDrop{0%{opacity:0;transform:translateY(-120px) rotate(-12deg)}60%{opacity:1;transform:translateY(6px) rotate(3deg) scaleY(.92)}100%{opacity:1;transform:none}}
@media (max-width:640px){.step-blobs .sb{width:min(78%,110px)}.step-blobs b{width:28px;height:28px;font-size:13px}}
@media (prefers-reduced-motion:reduce){
  .why-blobs .blob,.why-blobs.is-hop .blob,.step-blobs.is-in .sb,.step-blobs img{animation:none}
  .step-blobs.is-armed .sb{opacity:1;transform:none}
}

/* no sideways scroll on narrow desktops (a doodle in the balance section ran past the edge) */
html,body{overflow-x:clip}

/* game card buttons read "Play Crash Tower", not "PlayCrash Tower" (flex dropped the space before the name) */
.btn-play .play-name{white-space:pre}

/* the headline: two lines on desktop, so the reels and the mascot have room under it */
.hero-title{font-size:clamp(34px,5.4vw,92px);max-width:16ch}
@media (max-width:767px){.hero-title{font-size:clamp(30px,9.4vw,44px)}}
/* a slimmer drip under the headline leaves more room for the reels on short screens */
.doodle-hero-drip{width:min(44%,380px)}
