/* ActuallySpeak Kids — win/celebration effects (js/kids-fx.js).
   Particles, the win page, the gold treasure chest, map/home/backpack chest art.
   Transforms + opacity only for anything that moves. */

/* ============================== particle layer ============================== */
#askfx-layer { position: fixed; inset: 0; z-index: 1300; pointer-events: none; overflow: hidden; contain: strict; }
.askfx-p { position: absolute; left: 0; top: 0; display: block; will-change: transform, opacity; pointer-events: none; }
.askfx-p svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.askfx-star__glow {
  position: absolute; inset: -70%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,240,150,.95) 0, rgba(255,210,70,.45) 30%, rgba(255,200,60,0) 62%);
}
.askfx-spark::before {
  content: ''; position: absolute; inset: -40%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,247,200,.9), rgba(255,230,120,0) 62%);
}
.askfx-glowring { border-radius: 50%; background: radial-gradient(circle, rgba(255,232,130,.9) 0, rgba(255,200,60,.42) 38%, rgba(255,200,60,0) 68%); }
.askfx-flash { position: absolute; inset: 0; background: #FFFDF2; opacity: 0; }
.askfx-conf { border-radius: 2px; }
.askfx-conf.is-dot { border-radius: 50%; }
.askfx-coin {
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFFBD9 0 14%, #FFD94A 34%, #F2A812 70%, #B86E06 100%);
  box-shadow: inset 0 0 0 2px rgba(150,80,0,.35), 0 0 8px rgba(255,210,80,.7);
}
.askfx-gem {
  background: linear-gradient(135deg, rgba(255,255,255,.85) 0 18%, var(--g, #3FD07A) 40%, rgba(0,0,0,.25) 100%), var(--g, #3FD07A);
  clip-path: polygon(50% 0, 100% 40%, 50% 100%, 0 40%);
}

/* the ⭐ counter getting hit by a star */
.askfx-pill-hit { animation: askfxPill .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes askfxPill {
  0% { transform: scale(1); }
  35% { transform: scale(1.28); box-shadow: 0 0 0 4px rgba(255,236,150,.65), 0 0 22px 6px rgba(255,205,70,.85); }
  100% { transform: scale(1); }
}
.askfx-ghostpill { z-index: 1250; pointer-events: none; transition: opacity .35s ease; }
.askfx-ghostpill.is-out { opacity: 0; }

/* rotating golden light rays (ASKFx.rays) */
.askfx-rays { position: absolute; left: 50%; top: 50%; z-index: 0; pointer-events: none; }
.askfx-rays i, .askfx-rays b { position: absolute; inset: 0; border-radius: 50%; display: block; }
.askfx-rays i {
  background: repeating-conic-gradient(from 0deg, rgba(255,222,110,.62) 0 9deg, rgba(255,222,110,0) 9deg 24deg);
  -webkit-mask: radial-gradient(circle, #000 12%, rgba(0,0,0,.6) 38%, transparent 70%);
          mask: radial-gradient(circle, #000 12%, rgba(0,0,0,.6) 38%, transparent 70%);
  animation: askfxSpin 14s linear infinite;
}
.askfx-rays b { inset: 22%; background: radial-gradient(circle, rgba(255,240,170,.85), rgba(255,214,90,.25) 45%, rgba(255,214,90,0) 70%); }
@keyframes askfxSpin { to { transform: rotate(360deg); } }

/* ================================ WIN PAGE ================================ */
.askfx-win {
  position: fixed; inset: 0; z-index: 60; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch;
  color: #fff;
  background:
    radial-gradient(ellipse 70% 42% at 50% 24%, rgba(255,210,90,.42), rgba(255,190,60,.12) 55%, rgba(255,190,60,0) 75%),
    radial-gradient(ellipse 120% 60% at 50% 110%, rgba(67,169,74,.35), rgba(67,169,74,0) 60%),
    linear-gradient(180deg, #0F3D24 0%, #08281A 55%, #051A10 100%);
}
.askfx-win::before { /* soft leaf shadows at the edges, like looking out of the jungle */
  content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(ellipse 40% 26% at -6% 8%, #03130A 0 60%, transparent 62%),
    radial-gradient(ellipse 34% 22% at 106% 14%, #03130A 0 60%, transparent 62%),
    radial-gradient(ellipse 30% 18% at -4% 70%, #03130A 0 60%, transparent 62%),
    radial-gradient(ellipse 30% 18% at 104% 78%, #03130A 0 60%, transparent 62%);
}
.askfx-win__in {
  position: relative; max-width: 480px; min-height: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom));
}
.askfx-win__top { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; min-height: 52px; }
.askfx-win__home {
  width: 48px; height: 48px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.1);
  font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.askfx-win__sub { font-weight: 900; font-size: .88em; color: rgba(255,236,190,.88); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.askfx-win__pill { font-size: 1em; padding: 7px 14px; }
.askfx-win__hero { position: relative; width: 170px; height: 196px; margin-top: auto; /* centres short pages */ display: flex; align-items: flex-end; justify-content: center; }
.askfx-win__hero .kiki-host { position: relative; z-index: 2; display: block; width: 152px; animation: askfxKikiIn .7s cubic-bezier(.2,1.5,.4,1) both; }
.askfx-win__hero .kiki-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.askfx-rays--hero { top: 52% !important; }
.askfx-win__t {
  margin: 4px 0 0; font-size: 2.6em; line-height: 1.05; font-weight: 900; letter-spacing: .5px; color: #FFE36E;
  text-shadow: 0 3px 0 #B45309, 0 5px 0 #7A3B05, 0 10px 18px rgba(0,0,0,.5);
  animation: askfxTitle .6s cubic-bezier(.2,1.6,.4,1) .15s both;
}
.askfx-win__stars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin: 10px 0 4px; height: 104px; }
.askfx-slot { position: relative; display: block; width: 80px; height: 80px; }
.askfx-slot--0 { transform: translateY(4px) rotate(-14deg); }
.askfx-slot--1 { width: 102px; height: 102px; transform: translateY(-8px); }
.askfx-slot--2 { transform: translateY(4px) rotate(14deg); }
.askfx-slot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.askfx-slot__empty path { fill: rgba(0,0,0,.38); stroke: rgba(255,255,255,.2); stroke-width: 4; stroke-linejoin: round; }
.askfx-slot__full { opacity: 0; transform: scale(0); filter: drop-shadow(0 0 10px rgba(255,214,90,.75)) drop-shadow(0 4px 0 rgba(122,59,5,.6)); }
.askfx-slot.is-on .askfx-slot__full { animation: askfxSlot .62s cubic-bezier(.2,1.6,.4,1) forwards; }
.askfx-slot.is-on::after { /* one shine sweep across the new star */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.9) 50%, rgba(255,255,255,0) 65%) no-repeat;
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L64 31 L92 37.5 L71.5 57.5 L77 84 L50 73 L23 84 L28.5 57.5 L8 37.5 L36 31 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 L64 31 L92 37.5 L71.5 57.5 L77 84 L50 73 L23 84 L28.5 57.5 L8 37.5 L36 31 Z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  animation: askfxSweep .9s ease .45s both;
}
.askfx-slot.is-instant .askfx-slot__full { animation: none; opacity: 1; transform: none; }
.askfx-slot.is-instant::after { display: none; }
.askfx-win__plus {
  display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 6px; padding: 4px 20px; border-radius: 999px;
  font-size: 1.6em; font-weight: 900; color: #FFE36E; background: rgba(0,0,0,.28); border: 2.5px solid rgba(255,214,90,.6);
  text-shadow: 0 2px 0 rgba(122,59,5,.8); opacity: 0; transform: scale(.4);
}
.askfx-win__plus span { font-size: .85em; }
.askfx-win__plus.is-in { animation: askfxPop .5s cubic-bezier(.2,1.6,.4,1) forwards; }
.askfx-win.is-instant .askfx-win__plus { opacity: 1; transform: none; }
.askfx-win__words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 6px 0 2px; animation: askfxUp .5s ease .5s both; }
.askfx-wchip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--j-ink); font-weight: 900; font-size: .9em; box-shadow: 0 3px 0 rgba(0,0,0,.25);
}
.askfx-wchip__pic { position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 22px; }
.askfx-wchip__pic .ask-wordart { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; border-radius: 0; aspect-ratio: auto; box-shadow: none; border: 0; }
.askfx-wchip__pic .ask-wordart__svg, .askfx-wchip__pic .ask-wordart__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* the chest that just became ready */
.askfx-win__chest {
  display: flex; align-items: center; gap: 10px; width: 100%; max-width: 360px; margin: 12px 0 0; padding: 6px 14px 6px 6px;
  border-radius: 24px; text-align: left;
  background: linear-gradient(180deg, rgba(255,214,90,.26), rgba(255,214,90,.08)); border: 2.5px solid rgba(255,214,90,.6);
  animation: askfxUp .55s cubic-bezier(.2,1.4,.4,1) both;
}
.askfx-win__chest[hidden] { display: none; }
.askfx-wchest { position: relative; flex: none; width: 118px; padding: 0; border: 0; background: none; cursor: pointer; display: block; }
.askfx-wchest img { position: relative; z-index: 1; display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
button.askfx-wchest { animation: askfxBounce 1.3s ease-in-out infinite; }
button.askfx-wchest::before {
  content: ''; position: absolute; inset: -30% -20%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,226,120,.9), rgba(255,200,60,.3) 40%, rgba(255,200,60,0) 68%);
  animation: askfxGlow 1.3s ease-in-out infinite;
}
.askfx-wchest.is-open { width: 96px; }
.askfx-wchest__txt b { display: block; font-size: 1.15em; font-weight: 900; color: #FFE36E; line-height: 1.15; text-shadow: 0 2px 0 rgba(122,59,5,.7); }
.askfx-wchest__txt small { display: block; margin-top: 3px; font-weight: 900; font-size: .9em; color: rgba(255,255,255,.85); }
.askfx-win.has-chest .askfx-win__hero { width: 140px; height: 156px; }
.askfx-win.has-chest .askfx-win__hero .kiki-host { width: 122px; }
.askfx-win.has-chest .askfx-win__t { font-size: 2.3em; }

.askfx-win__foot { width: 100%; max-width: 400px; margin-top: auto; padding-top: 16px; }
.askfx-win__go { width: 100%; animation: askfxUp .5s ease .35s both; }
.askfx-win__again {
  width: 100%; min-height: 50px; margin-top: 6px; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 900; font-size: 1.02em; color: rgba(255,255,255,.82);
}

/* ============================ TREASURE CHEST OVERLAY ============================ */
.askfx-tr { position: fixed; inset: 0; z-index: 1000; opacity: 0; transition: opacity .25s ease; color: #fff; overflow: hidden; }
.askfx-tr.is-in { opacity: 1; }
.askfx-tr.is-out { opacity: 0; pointer-events: none; }
.askfx-tr__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 45% at 50% 40%, rgba(255,200,70,.5), rgba(255,180,40,.12) 55%, rgba(255,180,40,0) 76%),
    linear-gradient(180deg, #123F26 0%, #0A2A19 50%, #04160C 100%);
}
.askfx-tr__in {
  position: relative; height: 100%; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center; padding: calc(56px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
}
.askfx-tr__stage { position: relative; width: 100%; height: 380px; flex: none; }
.askfx-tr__glow {
  position: absolute; left: 50%; bottom: -20px; width: 340px; height: 300px; margin-left: -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,120,.75), rgba(255,200,60,.25) 45%, rgba(255,200,60,0) 70%);
  opacity: .55; transform: scale(.85); transition: opacity .8s ease, transform .8s ease;
}
.askfx-tr__stage.is-charging .askfx-tr__glow { opacity: 1; transform: scale(1.25); }
.askfx-tr__stage.is-open .askfx-tr__glow { opacity: 1; transform: scale(1.4); }
.askfx-rays--chest i { animation-duration: 10s; }
.askfx-tr__chest {
  position: absolute; left: 50%; bottom: 0; z-index: 2; width: 280px; height: 215px; margin-left: -140px;
  padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 92%;
  animation: askfxChestIn .6s cubic-bezier(.2,1.5,.4,1) both;
}
.askfx-tr__img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 16px rgba(0,0,0,.5)); }
.askfx-tr__img.is-open { opacity: 0; }
.askfx-tr__stage.is-open .askfx-tr__img.is-closed { opacity: 0; }
.askfx-tr__stage.is-open .askfx-tr__img.is-open { opacity: 1; }
.askfx-tr__chest.is-wobble { animation: askfxChestIn .6s cubic-bezier(.2,1.5,.4,1) both, askfxWob 1s ease-in-out .6s infinite; }
.askfx-tr__chest.is-shake { animation: askfxShake .82s linear forwards; }
.askfx-tr__stage.is-open .askfx-tr__chest { animation: askfxLand .5s cubic-bezier(.2,1.6,.4,1); }
.askfx-tr__gift { position: absolute; left: 50%; top: 32%; z-index: 3; width: 168px; height: 168px; margin: -84px 0 0 -84px; opacity: 0; transform: translateY(150px) scale(.2); }
.askfx-tr__stage.is-open .askfx-tr__gift { animation: askfxGiftUp .95s cubic-bezier(.2,1.25,.4,1) .12s forwards; }
.askfx-tr__float { position: absolute; inset: 0; display: block; }
.askfx-tr__gift.is-shine .askfx-tr__float { animation: askfxFloat 2.6s ease-in-out .3s infinite; }
.askfx-tr__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 16px rgba(255,236,160,.85)) drop-shadow(0 10px 12px rgba(0,0,0,.45)); }
.askfx-tr__float i { display: none; position: absolute; inset: 0; font-style: normal; font-size: 112px; line-height: 168px; text-align: center; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.askfx-tr__gift.is-emoji .askfx-tr__float i { display: block; }
.askfx-tr__gift.is-emoji .askfx-shine { display: none; }
.askfx-shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.95) 50%, rgba(255,255,255,0) 62%) no-repeat;
  background-size: 260% 100%; background-position: 170% 0;
  -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.askfx-tr__gift.is-shine .askfx-shine { animation: askfxSweep 1.1s ease .05s 2; }
.askfx-tr__gift.is-away { animation: askfxAway .38s cubic-bezier(.5,0,.9,.5) forwards !important; }
.askfx-tr__hint {
  margin-top: 18px; min-height: 40px; font-size: 1.5em; font-weight: 900; color: #FFE36E; text-shadow: 0 3px 0 rgba(122,59,5,.8);
  animation: askfxHint 1.2s ease-in-out infinite; transition: opacity .2s;
}
.askfx-tr__hint.is-out { opacity: 0; animation: none; }
.askfx-tr__stage.is-open ~ .askfx-tr__hint { display: none; }
.askfx-tr__found { margin-top: 14px; animation: askfxPop .5s cubic-bezier(.2,1.6,.4,1) both; }
.askfx-tr__found small { display: block; font-size: 1.1em; font-weight: 900; color: rgba(255,255,255,.88); }
.askfx-tr__found b {
  display: block; font-size: 2.3em; line-height: 1.08; font-weight: 900; color: #FFE36E;
  text-shadow: 0 3px 0 #B45309, 0 5px 0 #7A3B05, 0 10px 18px rgba(0,0,0,.5);
}
.askfx-tr__got { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.askfx-tr__chip {
  padding: 6px 16px; border-radius: 999px; font-weight: 900; font-size: 1.25em; background: rgba(0,0,0,.3);
  border: 2.5px solid rgba(255,214,90,.6); color: #FFE36E; animation: askfxPop .45s cubic-bezier(.2,1.6,.4,1) both;
}
.askfx-tr__chip.is-leaf { color: #C9F2B5; border-color: rgba(140,220,120,.6); animation-delay: .12s; }
.askfx-tr__ok { width: 100%; max-width: 360px; margin-top: 18px; animation: askfxUp .45s ease both; }
.askfx-tr [hidden] { display: none !important; }

/* ============================ MAP / HOME / BACKPACK chest art ============================ */
.askm-chest.askfx-mchest { width: 72px; height: auto; display: block; }
.askm-chest.askfx-mchest .askm-chsvg { display: none; }
.askm-chest.askfx-mchest::before { display: none; }
.askfx-mchest img { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.askm-chest.askfx-mchest.is-shut img { filter: grayscale(.95) brightness(1.08) contrast(.85) drop-shadow(0 3px 2px rgba(61,42,24,.25)); opacity: .78; }
.askfx-mchest__lock {
  position: absolute; right: -6px; bottom: -4px; z-index: 2; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; background: #fff; border: 2px solid var(--t-line-d,#D8CBB0); box-shadow: 0 2px 0 rgba(0,0,0,.12);
}
.askm-chest.askfx-mchest.is-ready { width: 112px; height: auto; animation: askfxBounce 1.3s ease-in-out infinite; filter: none; }
.askm-chest.askfx-mchest.is-ready img { filter: drop-shadow(0 6px 8px rgba(122,59,5,.45)); }
.askm-chest.askfx-mchest.is-ready::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 190px; height: 190px; margin: -95px 0 0 -95px; z-index: 0; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255,214,90,.55) 0 10deg, rgba(255,214,90,0) 10deg 26deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%); mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: askfxSpin 12s linear infinite;
}
.askm-chest.askfx-mchest.is-ready::before {
  display: block; content: ''; position: absolute; inset: -18% -10%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,230,130,.95), rgba(255,200,60,.35) 42%, rgba(255,200,60,0) 70%);
  animation: askfxGlow 1.3s ease-in-out infinite;
}
.askfx-mchest__tag {
  position: absolute; left: 50%; bottom: -14px; z-index: 3; transform: translateX(-50%); white-space: nowrap;
  padding: 3px 12px; border-radius: 999px; font-weight: 900; font-size: .82em; color: #fff;
  background: var(--j-green-btn, #2F8A3B); border: 2.5px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.18);
}
.askm-chest.askfx-mchest.is-open { width: 74px; height: auto; }
.askm-chest.askfx-mchest.is-open img { filter: drop-shadow(0 4px 4px rgba(61,42,24,.3)); }
.askm-chest.askfx-mchest .askm-chest__spark { z-index: 2; }

/* home tile + treasure progress card */
.askfx-htile__ic { position: relative; display: block; width: 92px; height: 52px; }
.askfx-htile__ic img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 4px rgba(122,59,5,.35)); }
.askh-tile.is-ready .askfx-htile__ic { animation: askfxBounce 1.4s ease-in-out infinite; }
.askh-tile.is-ready .askfx-htile__ic::before {
  content: ''; position: absolute; inset: -30% -16%; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(255,226,120,.95), rgba(255,200,60,.3) 45%, rgba(255,200,60,0) 70%);
  animation: askfxGlow 1.4s ease-in-out infinite;
}
.askfx-tchest { display: block; width: 58px; flex: none; }
.askfx-tchest img { display: block; width: 100%; height: auto; }
.askfx-tchest.is-shut img { filter: grayscale(.9) brightness(1.08) contrast(.85); opacity: .8; }
.askfun-treasure.is-ready .askfx-tchest { animation: askfxBounce 1.4s ease-in-out infinite; }

/* backpack gift art */
.askfx-gic { display: grid; place-items: center; width: 46px; height: 46px; }
.askfx-gic img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(61,42,24,.28)); }
.askfx-gic i { display: none; font-style: normal; font-size: 32px; line-height: 1; }
.askfx-gic.is-emoji i { display: block; }
.askm-bp__slot.is-got .askfx-gic { transition: transform .15s; }
.askm-bp__slot.is-got:active .askfx-gic { transform: scale(1.15) rotate(-6deg); }
.askfx-bpchest { display: inline-block; width: 46px; height: auto; vertical-align: middle; }
.askfx-bpchest.is-shut { width: 38px; filter: grayscale(.9) brightness(1.08); opacity: .8; }

/* ================================ keyframes ================================ */
@keyframes askfxPop { 0% { opacity: 0; transform: scale(.4); } 100% { opacity: 1; transform: scale(1); } }
@keyframes askfxUp { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
@keyframes askfxKikiIn { 0% { opacity: 0; transform: translateY(40px) scale(.6); } 100% { opacity: 1; transform: none; } }
@keyframes askfxTitle { 0% { opacity: 0; transform: scale(.3) rotate(-6deg); } 100% { opacity: 1; transform: none; } }
@keyframes askfxSlot {
  0% { opacity: 0; transform: scale(0) rotate(-40deg); }
  55% { opacity: 1; transform: scale(1.35) rotate(8deg); }
  78% { transform: scale(.92) rotate(-2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes askfxSweep { from { background-position: 160% 0; } to { background-position: -60% 0; } }
@keyframes askfxBounce { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(-9px) scale(1.03); } 70% { transform: translateY(0) scale(1.04, .96); } }
@keyframes askfxGlow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes askfxChestIn { 0% { opacity: 0; transform: translateY(60px) scale(.5); } 100% { opacity: 1; transform: none; } }
@keyframes askfxWob { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3.5deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
@keyframes askfxShake {
  0% { transform: rotate(0) scale(1); }
  10% { transform: rotate(-4deg) translateX(-2px) scale(1.01); }
  20% { transform: rotate(4deg) translateX(2px) scale(1.02); }
  30% { transform: rotate(-6deg) translateX(-4px) scale(1.03); }
  40% { transform: rotate(6deg) translateX(4px) scale(1.04); }
  50% { transform: rotate(-8deg) translateX(-5px) scale(1.05); }
  60% { transform: rotate(8deg) translateX(5px) scale(1.06); }
  70% { transform: rotate(-10deg) translateX(-6px) scale(1.07); }
  80% { transform: rotate(10deg) translateX(6px) scale(1.08); }
  90% { transform: rotate(-6deg) translateY(-6px) scale(1.12); }
  100% { transform: rotate(0) translateY(-10px) scale(1.14); }
}
@keyframes askfxLand { 0% { transform: translateY(-10px) scale(1.14); } 60% { transform: translateY(2px) scale(.97, 1.03); } 100% { transform: none; } }
@keyframes askfxGiftUp {
  0% { opacity: 0; transform: translateY(150px) scale(.2); }
  15% { opacity: 1; }
  62% { opacity: 1; transform: translateY(-26px) scale(1.25); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes askfxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes askfxAway { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(260px) scale(.15); } }
@keyframes askfxHint { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ============================ reduced motion: end state ============================ */
@media (prefers-reduced-motion: reduce) {
  .askfx-win *, .askfx-win *::before, .askfx-win *::after, .askfx-tr *, .askfx-tr *::before, .askfx-tr *::after,
  .askfx-mchest, .askfx-mchest::before, .askfx-mchest::after, .askfx-htile__ic, .askfx-htile__ic::before, .askfx-tchest,
  .askfx-rays i, .askfx-pill-hit { animation: none !important; }
}
html.ask-reduced .askfx-win *, html.ask-reduced .askfx-win *::before, html.ask-reduced .askfx-win *::after,
html.ask-reduced .askfx-tr *, html.ask-reduced .askfx-tr *::before, html.ask-reduced .askfx-tr *::after,
html.ask-reduced .askfx-mchest, html.ask-reduced .askfx-mchest::before, html.ask-reduced .askfx-mchest::after,
html.ask-reduced .askfx-htile__ic, html.ask-reduced .askfx-htile__ic::before, html.ask-reduced .askfx-tchest,
html.ask-reduced .askfx-rays i, html.ask-reduced .askfx-pill-hit { animation: none !important; }
.askfx-win.is-instant .askfx-slot.is-on .askfx-slot__full { opacity: 1; transform: none; }
.askfx-tr.is-instant .askfx-tr__gift { opacity: 1; transform: none; }
.askfx-tr.is-instant .askfx-tr__chest { transform: none; }
.askfx-tr.is-instant .askfx-tr__found, .askfx-tr.is-instant .askfx-tr__chip, .askfx-tr.is-instant .askfx-tr__ok { opacity: 1; transform: none; }
.askfx-tr.is-instant .askfx-tr__hint { display: none; }
