/* 由 tools/adv-release-build.cjs 從 ../redesign-preview/maze-adv/ma.css 產生，請改來源後重跑。 */
/* 2026-10-28 注音迷宮進階版「路牌模式」（搭配 ma-core.js、ma.js；html.ma-signs＝路牌模式） */
/* ── 分類頁：模式鈕沿用 hide-mode.css 的 .hm-mode */
.hm-mode.ma-m-signs i{background:#FFF8DA}
.hm-mode.on .ma-ic-w{animation:ma-walk 2.2s linear infinite}
.hm-mode.on .ma-ic-s{animation:ma-sway 1.6s ease-in-out infinite;transform-origin:24px 30px}
@keyframes ma-walk{from{stroke-dashoffset:60}to{stroke-dashoffset:0}}
@keyframes ma-sway{50%{transform:rotate(8deg)}}
.hm-cm.ma-m-signs{border-color:#F2A30F;color:#9A6A00;background:#FFF8DA}
/* ── 遊戲頁：路牌（黃色圓牌＋木頭柱子，同說明影片） */
.ma-sign circle{fill:#FFD23F;stroke:#24402B;stroke-width:3}
.ma-sign text{text-anchor:middle;font-weight:900;fill:#24402B;font-family:"Park","Microsoft JhengHei",sans-serif}
.ma-pole{stroke:#8B5A2B;stroke-width:4;stroke-linecap:round}
.ma-sign.ok circle{filter:drop-shadow(0 0 4px #FFE27A)}
/* 牆：紅磚 */
.ma-wall rect{fill:#C8553D;stroke:#4A1A12;stroke-width:3}
.ma-wall path{stroke:#7A2E22;stroke-width:2;fill:none}
/* 寶石：下一顆發亮、跳一跳；收到了就不見（飛進左欄） */
html.ma-signs #stars{opacity:0}
.ma-gem-in{transition:opacity .3s,transform .3s}
.ma-gem text{text-anchor:middle;font-weight:900;fill:#fff;stroke:#24402B;stroke-width:2.5;paint-order:stroke fill;font-family:"Park","Microsoft JhengHei",sans-serif}
.ma-num circle{fill:#fff;stroke:#24402B;stroke-width:2}.ma-num text{fill:#24402B;stroke:none;font-size:12px}
.ma-gem:not(.next):not(.got) .ma-gem-in{opacity:.55}
.ma-gem.next .ma-gem-in{animation:ma-bob 1s ease-in-out infinite;filter:drop-shadow(0 0 6px #FFE27A)}
.ma-gem.got .ma-gem-in{opacity:0;transform:scale(1.6)}
@keyframes ma-bob{50%{transform:translateY(-5px) scale(1.08)}}
/* 出口的門：三個小燈＝收了幾顆寶石，收齊了門打開 */
.ma-door-f{fill:#24402B}
.ma-door-l{fill:#8B5A2B;stroke:#24402B;stroke-width:2;transform-origin:-14px 0;transition:transform .8s cubic-bezier(.4,1.4,.5,1)}
.ma-knob{fill:#FFD23F;transition:opacity .3s}
.ma-door.open .ma-door-l{transform:scaleX(.12)}.ma-door.open .ma-knob{opacity:0}
.ma-door.open .ma-door-f{fill:#FFF6D6;filter:drop-shadow(0 0 8px #FFD23F)}
.ma-slots circle{fill:#fff;stroke:#24402B;stroke-width:2}.ma-slots circle.on{fill:#FFD23F}
/* 左欄模式小鈕 */
.ma-has-switch{position:relative}
html:root body .ma-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}
.ma-switch i{width:24px;height:24px;display:grid;place-items:center}.ma-switch i svg{width:22px;height:22px}
html:root body .ma-switch.ma-on{border-color:#F2A30F;background:#FFF8DA!important;color:#9A6A00!important}
@media(prefers-reduced-motion:reduce){.ma-gem.next .ma-gem-in,.ma-door-l,.hm-mode *{animation:none!important;transition:none!important}}
