/* 由 tools/adv-release-build.cjs 從 ../redesign-preview/focus-adv/fl.css 產生，請改來源後重跑。 */
/* 2026-10-28 專注力遊戲進階版「瓢蟲模式」（搭配 fl.js；html.fl-on＝瓢蟲模式） */
/* ── 分類頁：模式鈕沿用 hide-mode.css 的 .hm-mode */
.hm-mode.fl-m-bug i{background:#FFF0EE}
.hm-mode.on .fl-ic-bug{animation:fl-crawl 1.4s ease-in-out infinite}
.hm-mode.on .fl-ic-eye{animation:fl-look 2s ease-in-out infinite}
@keyframes fl-crawl{0%,100%{transform:translateY(2px) rotate(-6deg)}50%{transform:translateY(-3px) rotate(6deg)}}
@keyframes fl-look{0%,100%{transform:translateX(-4px)}50%{transform:translateX(4px)}}
.hm-cm.fl-m-bug{border-color:#F7A0A0;color:#C8352B;background:#FFF0EE}
/* ── 遊戲頁：小瓢蟲＋走過的彩色線 */
#fl-layer{position:absolute;inset:0;width:100%;height:100%;z-index:6;pointer-events:none;overflow:visible}
html:not(.fl-on) #fl-layer{display:none}
.fl-trail{fill:none;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.fl-bug{pointer-events:auto;cursor:grab;touch-action:none}
.fl-bug .fl-halo{fill:#FFE27A;opacity:0;transition:opacity .2s}
.fl-bug:not(.home) .fl-bug-in{animation:fl-wiggle 1.6s ease-in-out infinite}
.fl-bug.held{cursor:grabbing}.fl-bug.held .fl-halo{opacity:.55}.fl-bug.held .fl-bug-in{animation:fl-walk .25s ease-in-out infinite}
.fl-bug.wait .fl-bug-in{animation:fl-wait .9s ease-in-out infinite}
.fl-bug.home{pointer-events:none}.fl-bug.home .fl-bug-in{transform:scale(.7);opacity:.85}
@keyframes fl-wiggle{0%,100%{transform:rotate(-5deg)}50%{transform:rotate(5deg)}}
@keyframes fl-walk{50%{transform:scale(1.06) rotate(4deg)}}
@keyframes fl-wait{50%{transform:translateY(-6px)}}
html.fl-on #paper,html.fl-on #stage{touch-action:none}
html.fl-on #picker{opacity:0!important;pointer-events:none!important}/* 走到終點是我們幫忙選，不用給小朋友看選單 */
/* 第 2 關：還沒找到的注音蓋起來、小瓢蟲可以點；中間的喇叭 */
#board .pair-node.fl-cover{background:#fff!important;border-radius:16px}
#board .pair-node.fl-cover::after{content:"？";position:absolute;inset:0;display:grid;place-items:center;font:900 clamp(30px,4vw,64px)/1 "Park","Microsoft JhengHei",sans-serif;color:#2F8EEB;background:#E6F2FD;border:5px solid #9FD0FA;border-radius:16px}
html.fl-lv2 .fl-bug:not(.home):not(.chosen) .fl-halo{opacity:.3}
.fl-bug.chosen .fl-halo{opacity:.75}
.fl-bug.no .fl-bug-in{animation:fl-no .5s}
@keyframes fl-no{20%,60%{transform:translateX(-8px)}40%,80%{transform:translateX(8px)}}
.fl-spk{position:absolute;left:3%;top:42%;z-index:8;display:flex;flex-direction:column;align-items:center;gap:4px;width:11%;padding:1.2% 0 1%;border:0;border-radius:24px;background:linear-gradient(#63B0F7,#2F8EEB);box-shadow:inset 0 -6px 0 rgba(0,0,0,.14),0 6px 0 #1F6FC0,0 10px 20px rgba(31,111,192,.3);cursor:pointer;animation:fl-spkin .5s cubic-bezier(.3,1.6,.5,1)}
.fl-spk[hidden]{display:none}
.fl-spk svg{width:62%}.fl-spk b{color:#fff;font:900 clamp(14px,1.5vw,22px)/1 "Park","Microsoft JhengHei",sans-serif}
.fl-spk.talk .fl-w1{animation:fl-wave .45s ease-in-out 3}.fl-spk.talk .fl-w2{animation:fl-wave .45s ease-in-out .1s 3}
@keyframes fl-wave{50%{opacity:.2}}@keyframes fl-spkin{from{transform:scale(0)}}
/* 左欄模式小鈕 */
.fl-has-switch{position:relative}
html:root body .fl-switch{position:static;margin:6px auto 0!important;display:flex;align-items:center;gap:2px;padding:1px 8px 1px 2px;height:30px;border:2px solid #CFE8C3;border-radius:999px;background:#fff!important;color:#2E7A38!important;font:900 13px/1 Park,"Microsoft JhengHei",sans-serif;cursor:pointer;box-shadow:0 2px 0 #E3F1DA}
.fl-switch i{width:24px;height:24px;display:grid;place-items:center}.fl-switch i svg{width:22px;height:22px}
html:root body .fl-switch.fl-active{border-color:#F7A0A0;background:#FFF0EE!important;color:#C8352B!important}
@media(prefers-reduced-motion:reduce){.fl-bug *,.fl-spk,.hm-mode *{animation:none!important}}
