.maze-panel{background:#fffdf6;border-radius:16px;overflow:hidden;box-shadow:0 14px 28px #00000012}.levels{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:20px;background:#e7eddf}.levels button{padding:12px 8px;border:1px solid #9aaf8d;border-radius:10px;background:#fffdf6;color:#344e30;font:900 16px GuessNunito,sans-serif;min-height:48px}.levels button[aria-pressed=true]{background:#285e3a;color:#fff}.maze-tools{display:flex;align-items:end;flex-wrap:wrap;gap:14px;padding:18px 24px}.maze-tools label{display:grid;gap:5px;font-size:13px;font-weight:800;color:#415a3b}.maze-tools select{padding:10px 12px;min-height:44px;background:white;border:1px solid #98ab8d;border-radius:8px;color:#29452e;font:700 14px GuessNunito,sans-serif}.maze-stats{display:flex;justify-content:space-between;gap:12px;padding:15px 24px;background:#f0f1e5;color:#4a5b40}.maze-stats p{margin:0;font-size:12px}.maze-stats strong{display:block;color:#254d33;font-size:23px;font-weight:900;font-variant-numeric:tabular-nums}.play-layout{display:grid;grid-template-columns:minmax(0,1fr) 235px;gap:24px;padding:24px}.maze-view{overflow:auto;max-height:680px;align-self:start;border-radius:12px;background:#e6eddb;scrollbar-color:#7c9872 #e6eddb;overscroll-behavior:contain}.maze-view canvas{display:block;width:100%;height:auto;outline-offset:-4px;touch-action:pan-x pan-y}.maze-view.large canvas{width:var(--maze-size);max-width:none}.play-controls{display:flex;flex-direction:column;gap:14px;justify-content:center;color:#3d5537}.play-controls p{margin:0;font-size:14px;line-height:1.6}.play-controls #status{font-weight:800;min-height:68px}.legend{display:flex;align-items:center;gap:8px}.player-dot{width:15px;height:15px;border-radius:50%;background:#286443;display:inline-block}.exit-box{width:16px;height:16px;background:#f0c75d;border:2px solid #725118;margin-left:12px}.dpad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;max-width:210px;width:100%;margin:auto}.dpad button{min-height:52px;border:1px solid #8ba07e;border-radius:10px;background:#e6eddf;color:#2c5232;touch-action:none}.dpad button:first-child{grid-column:2}.dpad button:nth-child(2){grid-column:1}.dpad svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2.5}.dpad button:active{background:#caddbf}.hint-button{font:800 13px GuessNunito,sans-serif;min-height:44px;background:transparent;border:0;color:#52603b;text-decoration:underline;text-underline-offset:3px}.play-controls #saveNote{font-size:12px;color:#526249}.maze-game .section-nav a{font-size:12px}.maze-game button:disabled{opacity:1;background:#e1e5d8;color:#65705a;cursor:default}.maze-game ::selection{background:#f4d173;color:#253b2b}
@media(max-width:750px){.play-layout{grid-template-columns:1fr;padding:16px;gap:18px}.play-controls{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}.play-controls .legend,.play-controls #status,.play-controls #keys,.play-controls #saveNote{grid-column:1/-1}.play-controls #status{min-height:0}.dpad{grid-column:2;grid-row:4/7}.play-controls #startButton,.play-controls #restartButton,.play-controls #hintButton{grid-column:1}.play-controls #keys{font-size:12px}.maze-view{max-height:440px}.maze-tools{padding:15px 16px;gap:10px}.maze-tools .fan-button{font-size:13px;padding:10px 12px}.levels{padding:15px 12px;gap:6px}.levels button{font-size:13px;padding:10px 4px}.maze-stats{padding:14px 16px;flex-wrap:wrap}.maze-stats p{min-width:40%}.maze-stats strong{font-size:21px}.maze-game .section-nav a{font-size:11px}}

.maze-view:not(.large) canvas{max-width:680px;margin-inline:auto}
@media(max-width:750px){.maze-running .dpad{position:fixed;right:16px;bottom:16px;width:156px;padding:8px;z-index:20;border-radius:12px;background:#fffdf6;box-shadow:0 8px 24px #183c2c30;grid-template-columns:repeat(3,1fr)}.maze-running .dpad button{min-height:44px}}
