/* 「注音迷宮探險」分類頁：Z2 機器人解迷宮（搭配 cat-maze.js；綠色主視覺共用樣式在 home-e.css） */
.z2-wrap{display:grid;grid-template-columns:minmax(0,540px) minmax(0,1fr);gap:30px;align-items:start;padding:0 6px 8px}
.z2-left{display:flex;flex-direction:column;gap:12px}
.z2-board{position:relative;aspect-ratio:1/1;max-height:540px;padding:12px;border-radius:26px;background:#fff;border:3px solid #CFE6B6;box-shadow:0 14px 30px rgba(46,125,50,.12)}
.z2-board.flip{animation:z2-pop .45s cubic-bezier(.34,1.56,.64,1)}@keyframes z2-pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.04)}100%{transform:none;opacity:1}}
.z2-svg{display:block;width:100%;height:100%;overflow:visible}
.z2-trail{fill:none;stroke:#E53935;stroke-width:9;stroke-linecap:round;stroke-linejoin:round;opacity:.92;filter:drop-shadow(0 0 3px #fff)}
.z2-mk path{stroke:#fff;stroke-width:3;stroke-linejoin:round}.z2-mk.start path{fill:#36b995}.z2-mk.goal path{fill:#f5a12f}
.z2-star{font-size:34px;fill:#DCE8D2;stroke:#9DB993;stroke-width:1;paint-order:stroke;text-anchor:middle;dominant-baseline:central}
.z2-star.lit{fill:#F2B824;stroke:#8a5a00}
.z2-head-dot circle{fill:#fff;stroke:#3E9A4A;stroke-width:4}
.z2-info{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:20px;background:#F4FAEE;border:2px solid #CFE6B6}
.z2-zy{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:linear-gradient(135deg,#4CA64C,#1F6B3A);color:#fff;font-size:32px;font-weight:900;flex:none}
.z2-info>div{display:flex;flex-direction:column;gap:2px;min-width:0}.z2-name{font-size:19px;color:#1F6B3A;white-space:nowrap}
.z2-stars i{font-style:normal;font-size:18px;color:#DCE8D2;margin-right:2px;transition:color .3s}.z2-stars i.lit{color:#F2B824}
.z2-prog{margin-left:auto;font-size:13px;font-weight:800;color:#6b726d;white-space:nowrap}
html body.fun-portal .cz-root .z2-go{display:inline-flex;align-items:center;padding:9px 18px!important;min-height:0!important;border-radius:999px!important;background:linear-gradient(145deg,#8FCB6A,#3E9A4A 60%,#21713A)!important;color:#fff!important;font-weight:900;font-size:16px!important;box-shadow:0 4px 0 #1B5E30!important;white-space:nowrap;text-decoration:none}
.z2-right{display:flex;flex-direction:column;gap:12px}
.z2-head{display:flex;align-items:center;gap:16px}
.z2-robot{width:100px;flex:none;animation:g-bob 3.4s ease-in-out infinite}
.z2-bubble{position:relative;padding:9px 16px;border-radius:18px;background:#fff;border:2px solid var(--g-line);box-shadow:0 6px 16px rgba(46,125,50,.1);font-size:16px;font-weight:900;line-height:1.4;color:var(--g-deep);text-align:center}
.z2-bubble b{color:#2E9B3E;font-size:1.1em}
.z2-bubble::after{content:'';position:absolute;left:-10px;top:50%;width:16px;height:16px;translate:0 -50%;rotate:45deg;background:#fff;border-left:2px solid var(--g-line);border-bottom:2px solid var(--g-line)}
.z2-legend{margin:0 0 0 auto;font-size:13px;font-weight:900;color:#5C7A5E;white-space:nowrap}.z2-legend i{display:inline-block;width:14px;height:14px;border-radius:5px;margin:0 3px -2px 8px;background:var(--c)}
.z2-legend i.g0,.z2-cell.g0{--c:#8FCB6A}.z2-legend i.g1,.z2-cell.g1{--c:#F2B824}.z2-legend i.g2,.z2-cell.g2{--c:#3E9A4A}
.z2-cells{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px 12px}
html body.fun-portal .cz-root .z2-cell.lesson-card{position:relative;display:block!important;min-height:0!important;aspect-ratio:1;padding:5px!important;border:3px solid var(--c)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 0 color-mix(in srgb,var(--c) 70%,#000)!important;cursor:pointer;outline:none;transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.z2-cell img{display:block;width:100%;height:100%;object-fit:contain;opacity:.7;transition:opacity .3s}
.z2-cell b{position:absolute;right:-7px;top:-9px;display:grid;place-items:center;min-width:26px;height:26px;padding:0 3px;border-radius:10px;background:var(--c);color:#fff;font-size:16px;font-weight:900;box-shadow:0 2px 0 rgba(0,0,0,.2)}
html body.fun-portal .cz-root .z2-cell.lesson-card:hover,html body.fun-portal .cz-root .z2-cell.lesson-card:focus-visible{transform:translateY(-4px) scale(1.05)}
.z2-cell:hover img,.z2-cell.on img{opacity:1}
html body.fun-portal .cz-root .z2-cell.lesson-card.on{transform:translateY(-4px) scale(1.07);box-shadow:0 0 0 4px rgba(143,203,106,.45),0 6px 0 color-mix(in srgb,var(--c) 70%,#000)!important}
@media(max-width:1300px){.z2-wrap{grid-template-columns:minmax(0,460px) minmax(0,1fr);gap:20px}.z2-cells{grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.z2-robot{width:84px}.z2-prog{display:none}.z2-legend{display:none}}
@media(max-height:700px){.z2-wrap{grid-template-columns:minmax(0,400px) minmax(0,1fr)}.z2-board{max-height:400px}.z2-robot{width:72px}.z2-bubble{font-size:14px;padding:6px 12px}.z2-cells{grid-template-columns:repeat(9,minmax(0,1fr));gap:9px}.z2-cell b{min-width:22px;height:22px;font-size:13px}}
@media(max-width:1100px){.z2-wrap{grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:16px}.z2-cells{grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.z2-name{font-size:16px}}

html body.fun-portal #catalog.cz-on{background:#fff!important}
html body.fun-portal #catalog.cz-on .section-heading>img{display:none!important}
html body.fun-portal #catalog.cz-on .section-heading{padding-left:0!important}
#catalog.cz-on .section-heading h1{color:#1F6B3A!important}#catalog.cz-on .section-heading p{color:#5C7A5E!important}
html body.fun-portal #catalog.cz-on .lesson-note{display:none!important}
#game-cards.cz-root{display:block!important}
html body.fun-portal #catalog.cz-on .gs-layer{display:block!important}
@media(prefers-reduced-motion:reduce){.z2-robot{animation:none!important}}
