/* Firefly Flash */
[hidden]{display:none!important}
.ff{max-width:480px;display:flex;flex-direction:column;gap:12px;padding-bottom:calc(24px + var(--cv-sab))}
.ff-seg .cv-seg__opt{min-width:0;padding:0 22px;font-size:22px}
.ff-stage{padding:14px 16px 16px;margin-top:62px;z-index:1;min-height:0}
.ff-sheldon{position:absolute!important;right:2px;top:-74px;height:150px;z-index:4;pointer-events:none}
.ff-frame{position:relative;width:min(262px,76%);display:grid;grid-template-columns:repeat(5,1fr);gap:8px 4px;padding:14px 10px 10px;border-radius:22px;background:rgba(10,18,50,.42);box-shadow:inset 0 0 0 2px rgba(255,255,255,.14)}
.ff-string{position:absolute!important;left:6px;right:6px;top:-9px;height:16px;border-bottom:3px solid #E9D8B5;border-radius:0 0 50% 50%/0 0 100% 100%;opacity:.8}
.ff-lantern{position:relative;justify-self:center;width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.1);box-shadow:inset 0 0 0 2px rgba(255,255,255,.28);transition:background-color 220ms,box-shadow 220ms}
.ff-lantern::before{content:"";position:absolute;left:50%;top:-6px;width:12px;height:7px;margin-left:-6px;border-radius:4px 4px 1px 1px;background:#C9B48C}
.ff-lantern.is-lit{background:radial-gradient(circle at 35% 30%,#FFF6B8,#FFD23F 58%,#F0A21E);box-shadow:0 0 16px 4px rgba(255,214,80,.75),inset 0 -4px 0 rgba(180,110,10,.35);animation:ff-lit 380ms var(--cv-spring)}
@keyframes ff-lit{from{transform:scale(.6)}}
.ff-field{position:relative;width:100%;aspect-ratio:100/52;margin-top:8px}
.ff-fly{--sz:48px;position:absolute;width:var(--sz);height:var(--sz);translate:-50% -50%;opacity:0;pointer-events:none;border-radius:50%;
  background:radial-gradient(circle at 50% 50%,#FFFBD0 0 22%,#FFE56A 40%,rgba(255,200,40,.55) 62%,rgba(255,200,40,0) 72%);filter:drop-shadow(0 0 10px rgba(255,220,90,.9))}
.ff-fly::before,.ff-fly::after{content:"";position:absolute;top:18%;width:34%;height:26%;border-radius:80% 20% 80% 20%;background:rgba(255,255,255,.5)}
.ff-fly::before{left:-4%;transform:rotate(-24deg)}
.ff-fly::after{right:-4%;transform:scaleX(-1) rotate(-24deg)}
.ff-fly.is-flash{animation:ff-flash var(--dur,1200ms) ease-in-out}
@keyframes ff-flash{0%{opacity:0;transform:scale(.7)}12%{opacity:1;transform:scale(1)}82%{opacity:1}100%{opacity:0;transform:scale(.9)}}
.ff-fly.is-reveal{opacity:1;transition:opacity 900ms ease-out}
.ff-fly.is-go{animation:ff-go 640ms ease-in var(--dl,0ms) both}
@keyframes ff-go{0%{opacity:0;transform:scale(.8)}18%{opacity:1;transform:scale(1)}100%{opacity:1;transform:translate(var(--tx),var(--ty)) scale(.4)}}
.ff-ins{position:relative;z-index:3;display:flex;align-items:center;justify-content:flex-start;gap:8px;margin:0 0 6px;padding:0 92px 0 6px;font:400 24px/1.1 var(--cv-font-display);color:#FFE070;text-shadow:0 2px 0 rgba(0,0,0,.3)}
.ff-ins .cv-i{width:28px;height:28px}
.ff-trail{position:absolute;height:8px;margin-top:-4px;border-radius:4px;transform-origin:0 50%;pointer-events:none;background:linear-gradient(90deg,rgba(255,226,110,0),rgba(255,226,110,.9));filter:blur(1px);opacity:0;animation:ff-trail 700ms ease-out var(--dl,0ms) both}
@keyframes ff-trail{0%{opacity:0;transform:rotate(var(--rot)) scaleX(0)}30%{opacity:.9}100%{opacity:0;transform:rotate(var(--rot)) scaleX(1)}}
.ff-say{margin:10px 0 0;min-height:30px;text-align:center;font:400 26px/1.15 var(--cv-font-display);color:#FFF7EC;text-shadow:0 2px 0 rgba(0,0,0,.25)}
.ff-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.ff-choices .cv-choice{color:var(--cv-ink);min-width:0;min-height:104px;font-size:60px;border-radius:30px}
.ff-choices .cv-choice[aria-disabled="true"]{opacity:.45;cursor:default}
.ff-choices .cv-choice.is-glow{animation:ff-glow 800ms ease-in-out 3;box-shadow:0 0 0 5px #FFF7EC,0 0 26px 8px rgba(255,220,90,.95)}
@keyframes ff-glow{50%{transform:scale(1.07)}}
.ff-actions{display:flex;gap:12px;flex-wrap:wrap}
.ff-ready{flex:1 1 150px;min-height:84px;font-size:30px;font-family:var(--cv-font-display);font-weight:400}
.ff-slow{flex:1 1 150px;gap:10px;padding:0 18px}
.ff-slow img{width:44px;height:44px;border-radius:50%;background:#FFFBF4;box-shadow:0 0 0 2px var(--cv-line)}
.ff-next{flex:1 1 100%;min-height:84px;font-size:28px}
.ff-tip{margin-top:4px}
.ff-stage[data-phase="busy"] ~ .ff-actions .ff-ready,.ff-stage[data-phase="busy"] ~ .ff-actions .ff-slow{opacity:.55}
@media(prefers-reduced-motion:reduce){
  .ff-fly.is-flash{animation:none;opacity:1}
  .ff-fly.is-go,.ff-lantern.is-lit,.ff-choices .cv-choice.is-glow{animation:none}
  .ff-fly.is-reveal{transition:none}
  .ff-trail{display:none}
}
