.dialog.maze{width:min(940px,100%);padding:28px 32px 30px;background:#f2e7ce;color:#26474c}.maze .eyebrow{font-size:10px}.dialog.maze h2{margin:8px 0;font-size:29px}.maze-intro{margin:0 0 16px!important;font-size:13px!important;line-height:1.7!important}.maze-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr);gap:26px;align-items:center}.maze-chart{min-width:0}.maze-chart-label{display:flex;justify-content:space-between;font-size:11px;color:#557576;margin-bottom:8px}.maze-board{display:block;width:min(100%,58vh);max-height:none;margin:auto;aspect-ratio:1;border:6px solid #214653;border-radius:9px;background:#214653;box-shadow:0 12px 24px #25424922;touch-action:none;cursor:pointer}.maze-board:focus-visible{outline:3px solid #b77f29;outline-offset:4px}.maze-board [hidden]{display:none}.maze-board [data-maze-player]{transition:transform .09s ease-out}.maze-cleared{border-color:#aa802d}.maze-legend{display:flex;justify-content:center;gap:22px;font-size:11px;color:#567274;margin-top:10px}.maze-legend i{display:inline-block;width:10px;height:10px;border-radius:50%;background:#143c4c;margin-right:5px}.maze-sidebar>small{font-size:10px;letter-spacing:1px;color:#737d69}.maze-sidebar h3{font-size:22px;margin:10px 0}.maze-sidebar>p{font-size:12px;line-height:1.8}.maze-count{display:flex;align-items:center;gap:12px;border-top:1px solid #cfc2a5;padding-top:12px;margin:14px 0}.maze-count strong{font-size:28px;color:#ad792d}.maze-count span{font-size:11px;color:#677b75}.maze-pad{display:grid;grid-template-columns:48px 48px 48px;grid-template-rows:44px 44px;gap:5px;justify-content:center}.maze-pad button{border:1px solid #436671;background:#214653;color:#fff0ce;border-radius:9px;font-size:23px;touch-action:manipulation}.maze-pad button:first-child{grid-column:2}.maze-pad button:nth-child(2){grid-column:1;grid-row:2}.maze-pad button:nth-child(3){grid-column:2;grid-row:2}.maze-pad button:nth-child(4){grid-column:3;grid-row:2}.maze-pad button:hover{background:#386b73}.maze-pad button:active{transform:translateY(1px)}.maze-key-hint{text-align:center;font-size:10px!important;color:#687d77}.maze-tools{display:flex;gap:7px;flex-wrap:wrap;justify-content:center}.maze-tools button{padding:9px 11px;min-height:40px;border:1px solid #b7ac8f;border-radius:7px;background:#fff5dd;color:#345d60;font-size:11px}.maze-tools button:last-child{background:#efd28e;border-color:#cfae68}.maze-tools button:disabled{opacity:.4}.maze-sidebar .maze-feedback{background:#e1e6d4;border-radius:8px;padding:12px;min-height:58px;margin-bottom:0;color:#345d60;font-size:12px}.maze-note{font-size:10px!important;margin:14px 0 0!important;color:#7a8270}.maze-preview{min-height:100svh;background:radial-gradient(ellipse at top,#3c7880,#112f40 70%);display:grid;place-items:center;padding:20px}.maze-preview .dialog{max-height:none}.maze-preview-back{display:inline-block;margin-top:14px;color:#476765;font-size:12px}
@media(max-width:600px){.dialog.maze{padding:25px 18px 20px}.dialog.maze h2{font-size:24px}.maze-layout{grid-template-columns:1fr;gap:12px}.maze-board{max-height:none;width:min(100%,340px);margin:auto}.maze-chart-label{max-width:340px;margin:0 auto 6px}.maze-sidebar>small,.maze-sidebar h3,.maze-sidebar>p:not(.maze-feedback):not(.maze-key-hint){display:none}.maze-sidebar{display:grid;grid-template-columns:1fr 1fr;gap:8px}.maze-count{margin:0;padding:0;border:0;justify-content:center}.maze-count strong{font-size:24px}.maze-count span{max-width:80px;line-height:1.5}.maze-pad{grid-row:span 2;grid-column:2;grid-template-columns:44px 44px 44px;grid-template-rows:42px 42px}.maze-key-hint{margin:0!important;align-self:center}.maze-tools,.maze-sidebar .maze-feedback{grid-column:1/-1}.maze-sidebar .maze-feedback{min-height:0;margin:0}.maze-legend{margin-top:7px}.maze-intro{font-size:12px!important;margin-bottom:10px!important}.maze-preview{padding:12px}}
@media(prefers-reduced-motion:reduce){.maze-board [data-maze-player]{transition:none}}
@media(max-width:600px){#chapterTrail{max-width:calc(100% - 24px);overflow-x:auto;scrollbar-width:none}#chapterTrail span{flex-shrink:0}}
