/* ── 完成三拍（2026-10-30，src/finish-flow.js）──────────────────────────────
   ① 结果：沿用课堂庆祝的流动光斑 + 玻璃圆盘对勾，收拢成一张玻璃卡（本次数据 + 学习积分 + 等级进度）
   ② 升级：整屏换成新等级的天色（取 zx-redesign.css 里 .gr-sky.is-lvN 的 --gr-sky），太阳沿弧线走到新等级
   ③ 连胜：暖色光斑 + 玻璃圆盘里的火焰，天数翻页，本周一到周日连成一条（补签日蓝色） */
.fx {
  --fx-ink: #14181b; --fx-ink-2: rgba(60, 60, 67, .72); --fx-ink-3: rgba(60, 60, 67, .45);
  --fx-green: #248A3D; --fx-green-2: #34C759; --fx-orange: #ff8a2b;
  position: fixed; inset: 0; z-index: 2147482000;
  color: var(--fx-ink); font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  opacity: 0; transition: opacity .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.fx.is-in { opacity: 1; }
.fx-beat {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; justify-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 22px calc(env(safe-area-inset-bottom, 0px) + 26px);
  opacity: 0; transform: scale(1.03); pointer-events: none;
  transition: opacity .38s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.fx-beat.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-beat.is-past { opacity: 0; transform: scale(.97); }
.fx-glass {
  width: min(360px, 100%); border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .36));
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .55), inset 0 -1px 0 rgba(255, 255, 255, .25), 0 24px 50px -24px rgba(16, 60, 40, .32);
}
.fx-actions { grid-row: 2; display: grid; width: min(360px, 100%); }
.fx .fx-btn {
  height: 56px; border: 0; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--fx-green-2); cursor: pointer; transition: opacity .12s ease;
}
.fx .fx-btn:active { opacity: .8; }
.fx .fx-btn:focus-visible { outline: 3px solid rgba(52, 199, 89, .35); outline-offset: 3px; }

/* ① 结果 */
.fx-result { background: #eef3f1; }
.fx-result::before, .fx-result::after, .fx-burst::before, .fx-streak::before, .fx-streak::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(46px); opacity: .85; pointer-events: none;
}
.fx-result::before { width: 78vmin; height: 78vmin; left: -22vmin; top: 8vh; background: radial-gradient(circle at 40% 40%, #7fe0a4, rgba(127, 224, 164, 0) 68%); animation: fx-float-a 9s ease-in-out infinite alternate; }
.fx-result::after { width: 70vmin; height: 70vmin; right: -20vmin; top: 34vh; background: radial-gradient(circle, #8fd3ff, rgba(143, 211, 255, 0) 68%); animation: fx-float-b 11s ease-in-out infinite alternate; }
.fx-burst::before { width: 54vmin; height: 54vmin; left: -27vmin; top: -40vmin; background: radial-gradient(circle, #ffd27a, rgba(255, 210, 122, 0) 66%); opacity: .55; animation: fx-float-c 13s ease-in-out infinite alternate; }
.fx-burst { position: absolute; left: 50%; top: 40%; width: 0; height: 0; transition: top .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx-burst::after {
  content: ""; position: absolute; z-index: 1; left: -56px; top: -56px; width: 112px; height: 112px; border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .6), 0 22px 44px -16px rgba(29, 120, 73, .38);
  transform: scale(.2); opacity: 0;
}
.fx-result.is-on .fx-burst::after { animation: fx-disc .55s cubic-bezier(.2, .9, .25, 1.35) forwards; }
.fx-mark { position: absolute; z-index: 2; left: -60px; top: -60px; width: 120px; height: 120px; overflow: visible; }
.fx-bars rect { fill: var(--fx-green-2); transform-box: fill-box; transform-origin: center; transform: scaleY(.2); }
.fx-result.is-on .fx-bars rect { animation: fx-bar .9s cubic-bezier(.4, 0, .2, 1) calc(.2s + var(--i) * 45ms) forwards; }
.fx-check { fill: none; stroke: var(--fx-green); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; filter: drop-shadow(0 3px 6px rgba(29, 154, 73, .25)); }
.fx-result.is-on .fx-check { animation: fx-draw .45s cubic-bezier(.3, .7, .2, 1) 1.05s forwards; }
.fx-ring { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(40, 177, 76, .18); opacity: 0; }
.fx-result.is-on .fx-ring { animation: fx-ring 1.4s cubic-bezier(.2, .7, .3, 1) 1.1s forwards; }
.fx-result.is-on .fx-ring.is-2 { animation-delay: 1.25s; }
.fx-result.is-on .fx-ring.is-3 { animation-delay: 1.4s; }
.fx-sparks i { position: absolute; left: 0; top: 0; width: var(--w); height: 6px; margin: -3px 0 0 calc(var(--w) / -2); border-radius: 3px; background: var(--c); opacity: 0; transform: rotate(var(--a)) translateX(30px) scaleX(.3); }
.fx-result.is-on .fx-sparks i { animation: fx-spark 1s cubic-bezier(.15, .75, .25, 1) calc(1.1s + var(--delay)) forwards; }
.fx-word { align-self: start; margin: calc(40vh + 82px) 0 0; font-size: 30px; font-weight: 800; letter-spacing: .02em; opacity: 0; transform: translateY(10px); }
.fx-result.is-on .fx-word { animation: fx-up .5s ease 1.3s forwards; }
.fx-res { position: absolute; left: 22px; right: 22px; top: calc(env(safe-area-inset-top, 0px) + 31vh); display: grid; justify-items: center; opacity: 0; pointer-events: none; transform: translateY(26px) scale(.94); transition: opacity .4s ease .18s, transform .75s cubic-bezier(.2, 1.3, .35, 1) .18s; }
.fx-res .fx-glass { padding: 24px 18px 18px; }
.fx-stats { display: flex; align-items: center; }
.fx-stat { flex: 1; min-width: 0; margin: 0; display: grid; justify-items: center; gap: 4px; }
.fx-stat b { display: flex; align-items: center; justify-content: center; height: 56px; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.fx-stat.is-accent b { font-size: 56px; line-height: 1; letter-spacing: -.04em; color: var(--fx-green); }
.fx-stats.is-n3 .fx-stat b { height: 46px; font-size: 28px; }
.fx-stats.is-n3 .fx-stat.is-accent b { font-size: 46px; line-height: 1; }
.fx-stat > span { font-size: 13px; color: var(--fx-ink-2); white-space: nowrap; }
.fx-div { flex: none; width: 1px; height: 56px; background: linear-gradient(transparent, rgba(60, 60, 67, .18), transparent); }
.fx-gain { margin-top: 18px; padding: 16px 4px 0; border-top: .5px solid rgba(60, 60, 67, .14); }
.fx-stats + .fx-gain { margin-top: 20px; }
.fx-glass > .fx-gain:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.fx-gain-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fx-pts { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.fx-pts b { display: inline-flex; align-items: center; line-height: 1; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--fx-green); font-variant-numeric: tabular-nums; }
.fx-pts > span { font-size: 13px; color: var(--fx-ink-2); }
.fx-pts.is-quiet > span { font-size: 14px; font-weight: 600; color: var(--fx-ink); }
.fx-pts.is-quiet em { font-style: normal; font-size: 14px; font-weight: 700; color: var(--fx-ink-2); font-variant-numeric: tabular-nums; }
.fx-lv { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fx-ink-2); white-space: nowrap; }
.fx-lvdot { width: 12px; height: 12px; border-radius: 50%; background: var(--gr-sky, linear-gradient(180deg, #5d5ea3, #ffc8a0)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.fx-bar { position: relative; height: 8px; margin-top: 12px; border-radius: 4px; background: rgba(60, 60, 67, .1); overflow: hidden; }
.fx-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #7ed6a8, var(--fx-green-2)); transition: width 1.1s cubic-bezier(.2, .8, .2, 1); }
.fx-next { margin: 8px 0 0; font-size: 12px; color: var(--fx-ink-3); }
.fx-result .fx-actions { opacity: 0; transform: translateY(10px); transition: opacity .4s ease .45s, transform .4s ease .45s; pointer-events: none; }
.fx-result.is-result .fx-burst { top: 17%; transform: scale(.6); }
.fx-result.is-result .fx-word { opacity: 0 !important; animation: none; transition: opacity .25s ease; }
.fx-result.is-result .fx-res, .fx-result.is-result .fx-actions { opacity: 1; transform: none; pointer-events: auto; }
.fx-result.is-result .fx-sparks, .fx-result.is-result .fx-ring { display: none; }

/* ② 升级 */
.fx .fx-beat.gr-sky { position: absolute; border-radius: 0; padding: calc(env(safe-area-inset-top, 0px) + 24px) 22px calc(env(safe-area-inset-bottom, 0px) + 26px); box-shadow: none; }
.fx .fx-level { background: var(--gr-sky, linear-gradient(180deg, #ffb26a, #ffd78c 55%, #fff4da)); color: #15201a; align-content: center; grid-template-rows: auto auto auto auto auto 1fr auto; text-align: center; }
.fx .fx-level.is-dark { color: #fff; }
.fx-arc { width: min(340px, 88vw); margin-top: 10vh; overflow: visible; }
.fx-arc-track { fill: none; stroke: currentColor; stroke-opacity: .32; stroke-width: 1.5; stroke-dasharray: 3 6; }
.fx-arc-dots circle { fill: currentColor; fill-opacity: .3; }
.fx-arc-dots circle.is-past { fill-opacity: .65; }
.fx-arc-body { transform: translate(var(--tx), var(--ty)); }
.fx-level.is-on .fx-arc-body { animation: fx-sun 1.5s cubic-bezier(.45, 0, .2, 1) .25s both; }
.fx-arc-glow { fill: #fff5c8; opacity: .45; }
.fx-level.is-on .fx-arc-glow { animation: fx-glow 2.4s ease-in-out 1.6s infinite alternate; }
.fx-lv-kicker { margin: 18px 0 0; font-size: 14px; font-weight: 700; letter-spacing: .3em; opacity: .7; }
.fx-lv-num { margin: 6px 0 0; font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.fx-lv-name { margin: 8px 0 0; font-size: 30px; font-weight: 800; letter-spacing: .12em; }
.fx-lv-reward { justify-self: center; margin: 22px 0 0; padding: 9px 16px; border-radius: 999px; font-size: 14px; background: rgba(255, 255, 255, .32); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.fx-level.is-dark .fx-lv-reward { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.fx-level :is(.fx-lv-kicker, .fx-lv-num, .fx-lv-name, .fx-lv-reward) { opacity: 0; transform: translateY(10px); }
.fx-level.is-on :is(.fx-lv-kicker, .fx-lv-num, .fx-lv-name, .fx-lv-reward) { animation: fx-up .5s ease forwards; }
.fx-level.is-on .fx-lv-kicker { animation-delay: .9s; }
.fx-level.is-on .fx-lv-num { animation-delay: 1.05s; }
.fx-level.is-on .fx-lv-name { animation-delay: 1.2s; }
.fx-level.is-on .fx-lv-reward { animation-delay: 1.5s; }
.fx-level .fx-actions { grid-row: 7; }
.fx .fx-level > * { position: relative; z-index: 1; }

/* ③ 连胜 */
.fx-streak { background: #fbf4ec; align-content: start; grid-template-rows: auto auto auto auto auto 1fr auto; text-align: center; }
.fx-streak::before { width: 80vmin; height: 80vmin; left: -24vmin; top: -6vh; background: radial-gradient(circle at 45% 45%, #ffcf8a, rgba(255, 207, 138, 0) 68%); animation: fx-float-a 10s ease-in-out infinite alternate; }
.fx-streak::after { width: 72vmin; height: 72vmin; right: -22vmin; top: 30vh; background: radial-gradient(circle, #ffb3a0, rgba(255, 179, 160, 0) 68%); opacity: .7; animation: fx-float-b 12s ease-in-out infinite alternate; }
.fx-flame-stage { position: relative; width: 132px; height: 132px; margin-top: 11vh; display: grid; place-items: center; }
.fx-flame-disc { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(150deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .4)); -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .6), 0 22px 44px -18px rgba(214, 104, 30, .45); }
.fx-flame { position: relative; width: 66px; height: 77px; transform-origin: 50% 92%; }
.fx-streak.is-on .fx-flame-disc { animation: fx-disc .55s cubic-bezier(.2, .9, .25, 1.35) both; }
.fx-streak.is-on .fx-flame { animation: fx-flame-in .6s cubic-bezier(.2, .9, .25, 1.3) .15s both, fx-flicker 1.6s ease-in-out .9s infinite alternate; }
.fx-streak-num { margin: 22px 0 0; font-size: 84px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.fx-roll { display: inline-flex; flex-direction: column; height: 1em; overflow: hidden; vertical-align: top; }
.fx-roll b { display: block; height: 1em; font-weight: inherit; }
.fx-streak.is-on .fx-roll:not(.is-single) b { animation: fx-roll .7s cubic-bezier(.3, 1.3, .4, 1) .7s both; }
.fx-streak-title { margin: 10px 0 0; font-size: 22px; font-weight: 800; letter-spacing: .02em; }
.fx-week { margin-top: 26px; padding: 18px 14px 14px; }
.fx-days { display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.fx-day { position: relative; display: grid; justify-items: center; gap: 7px; }
.fx-day i { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: rgba(60, 60, 67, .1); transition: transform .45s cubic-bezier(.2, .9, .25, 1.35), background .3s ease; }
.fx-day.is-on i, .fx-day.is-on.join-l::before, .fx-day.is-on.join-r::after { background: linear-gradient(180deg, #ffb347, var(--fx-orange)); }
.fx-day.is-freeze i, .fx-day.is-freeze.join-l::before, .fx-day.is-freeze.join-r::after { background: linear-gradient(180deg, #8fd3ff, #4aa8f0); }
.fx-day.join-l::before, .fx-day.join-r::after { content: ""; position: absolute; top: 0; height: 30px; }
.fx-day.join-l::before { left: 0; right: 50%; }
.fx-day.join-r::after { left: 50%; right: 0; }
.fx-day.is-on i::after { content: ""; position: absolute; left: 10px; top: 8px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg); }
.fx-day.is-today span { color: var(--fx-ink); font-weight: 800; }
.fx-day span { font-size: 12px; color: var(--fx-ink-3); }
.fx-day.is-future i { background: rgba(60, 60, 67, .06); }
.fx-day.is-today.is-pending i { transform: scale(.35); background: rgba(60, 60, 67, .1); }
.fx-day.is-today.is-pending::before, .fx-day.is-today.is-pending::after { opacity: 0; }
.fx-day::before, .fx-day::after { transition: opacity .3s ease .25s; }
.fx-week-note { margin: 14px 0 0; font-size: 13px; color: var(--fx-ink-2); }
.fx-week-note b { color: var(--fx-green); }
.fx-week-note.is-milestone { font-weight: 700; color: #b5540c; }
.fx-streak .fx-actions { grid-row: 7; }

@keyframes fx-disc { to { transform: scale(1); opacity: 1; } }
@keyframes fx-bar { 0% { transform: scaleY(.2); } 45% { transform: scaleY(1.15); } 70% { transform: scaleY(.6); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes fx-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateX(30px) scaleX(.3); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scaleX(1); } }
@keyframes fx-up { to { opacity: 1; transform: none; } }
@keyframes fx-float-a { to { transform: translate(14vmin, 6vh) scale(1.08); } }
@keyframes fx-float-b { to { transform: translate(-12vmin, -8vh) scale(1.1); } }
@keyframes fx-float-c { to { transform: translate(8vmin, 10vmin) scale(.9); } }
@keyframes fx-sun { from { transform: translate(var(--fx), var(--fy)); } to { transform: translate(var(--tx), var(--ty)); } }
@keyframes fx-glow { to { opacity: .2; } }
@keyframes fx-flame-in { from { transform: scale(.3) translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fx-flicker { 0% { transform: scale(1, 1); } 50% { transform: scale(.97, 1.04); } 100% { transform: scale(1.02, .98); } }
@keyframes fx-roll { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .fx, .fx-beat, .fx-res, .fx-result .fx-actions, .fx-burst, .fx-bar i, .fx-day i { transition: none; }
  .fx-result::before, .fx-result::after, .fx-burst::before, .fx-streak::before, .fx-streak::after { animation: none; }
  .fx .fx-burst::after, .fx .fx-flame-disc { animation: none !important; transform: none; opacity: 1; }
  .fx .fx-bars { display: none; }
  .fx .fx-check { animation: none !important; stroke-dashoffset: 0; }
  .fx .fx-sparks, .fx .fx-ring, .fx .fx-word { display: none; }
  .fx .fx-flame, .fx .fx-arc-body, .fx .fx-arc-glow { animation: none !important; }
  .fx .fx-roll b { animation: none !important; transform: translateY(-100%); }
  .fx .fx-roll.is-single b { transform: none; }
  .fx-level :is(.fx-lv-kicker, .fx-lv-num, .fx-lv-name, .fx-lv-reward) { animation: none !important; opacity: 1; transform: none; }
}

/* ── 动效 v2（2026-10-30「玻璃与天空」，配 src/finish-flow.js 的光层 + src/ui-sfx.js 的声音）──────────
   光层画布在背景光斑之上、内容之下；滚轮数字；圆盘后的金色光线；卡片回弹落位、内容错开出现；进度条和按钮各扫一道光。 */
.fx .fx-beat > .fx-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
.fx .fx-streak > .fx-canvas { z-index: 2; } /* 火星从玻璃圆盘、本周卡片前面飘过 */
:where(.fx-beat > :not(.fx-canvas)) { position: relative; z-index: 1; }
.fx.has-canvas .fx-sparks { display: none; }

.fx-rays {
  position: absolute; left: -150px; top: -150px; width: 300px; height: 300px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: repeating-conic-gradient(from 6deg, rgba(255, 200, 90, 0) 0deg 7deg, rgba(255, 200, 90, .55) 10deg, rgba(255, 200, 90, 0) 13deg 22.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 54px, #000 64px, rgba(0, 0, 0, .55) 100px, transparent 150px);
  mask-image: radial-gradient(circle, transparent 54px, #000 64px, rgba(0, 0, 0, .55) 100px, transparent 150px);
}
.fx-result.is-on .fx-rays { animation: fx-rays 2.4s cubic-bezier(.2, .7, .3, 1) 1s both; }
.fx-result.is-result .fx-rays { display: none; }

.fx .fx-odo { display: inline-flex; height: 1em; line-height: 1; font-size: inherit; color: inherit; }
.fx-odo-col { display: block; height: 1em; overflow: hidden; }
.fx-odo-col.is-grow { max-width: 0; transition: max-width .45s cubic-bezier(.2, .8, .2, 1) var(--dl, 0ms); }
.fx-odo.is-go .fx-odo-col.is-grow { max-width: .75em; }
.fx-odo-strip { display: block; transition: transform var(--odo-ms, 1250ms) cubic-bezier(.33, 1, .68, 1) var(--dl, 0ms); }
.fx-odo-strip i { display: block; height: 1em; font-style: normal; text-align: center; }
.fx-odo.is-go .fx-odo-strip { transform: translateY(calc(var(--n) * -1em)); }
.fx-odo.is-rolling .fx-odo-col { -webkit-mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 14%, #000 86%, transparent); }
.fx-odo.is-done .fx-odo-strip, .fx-odo.is-done .fx-odo-col { transition: none; }

.fx-res .fx-stats, .fx-res .fx-gain { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .55s cubic-bezier(.2, .8, .2, 1); }
.fx-result.is-result .fx-res .fx-stats { opacity: 1; transform: none; transition-delay: .3s; }
.fx-result.is-result .fx-res .fx-gain { opacity: 1; transform: none; transition-delay: .44s; }

.fx-bar i::before, .fx-bar i::after { content: ""; position: absolute; pointer-events: none; opacity: 0; }
.fx-bar i::after { inset: 0; border-radius: inherit; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%) no-repeat; background-size: 200% 100%; background-position: 150% 0; }
.fx-bar.is-fill i::after { animation: fx-bar-sheen 1.3s ease .2s; }
.fx-bar i::before { right: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle, #fff 0 28%, rgba(52, 199, 89, .55) 52%, rgba(52, 199, 89, 0) 72%); }
.fx-bar.is-fill i::before { animation: fx-bar-head 1.4s ease both; }

.fx .fx-btn { position: relative; overflow: hidden; isolation: isolate; }
.fx .fx-btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .42) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.fx-result.is-result .fx-btn::after { animation: fx-btn-sheen 1.1s ease 1.7s; }
.fx-level.is-on .fx-btn::after { animation: fx-btn-sheen 1.1s ease 2.4s; }
.fx-streak.is-on .fx-btn::after { animation: fx-btn-sheen 1.1s ease 1.9s; }

@keyframes fx-rays { 0% { opacity: 0; transform: scale(.55) rotate(-8deg); } 22% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3) rotate(28deg); } }
@keyframes fx-bar-sheen { from { opacity: 1; background-position: 150% 0; } to { opacity: 1; background-position: -50% 0; } }
@keyframes fx-bar-head { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-btn-sheen { to { transform: translateX(120%); } }
@media (prefers-reduced-motion: reduce) {
  .fx .fx-rays, .fx-bar i::before, .fx-bar i::after, .fx .fx-btn::after { display: none; }
  .fx-odo-strip, .fx-odo-col, .fx-res .fx-stats, .fx-res .fx-gain { transition: none !important; }
}
