.maze-game { max-width: 650px; margin: 0 auto; }
.maze-game .game-intro { margin: 0 auto 18px; }
.maze-scene { max-width: 505px; margin: 0 auto; padding: 12px; border: 1px solid #dbe5d5; border-radius: 26px; background: #f0f4e6; box-shadow: 0 8px 24px #24473508; }
.maze-legend { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 7px 9px; color: #315c50; font-size: .88rem; font-weight: 650; }
.maze-legend > span { display: inline-flex; gap: 8px; align-items: center; }
.maze-legend svg { width: 32px; height: 32px; }
.maze-board { width: 100%; height: auto; display: block; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 17px; cursor: pointer; }
.maze-game .game-status { margin: 15px 0 10px; min-height: 1.5em; color: #416352; font-size: .9rem; }
.maze-movement { display: grid; grid-template-columns: repeat(3, 56px); grid-template-rows: repeat(3, 44px); gap: 5px; justify-content: center; margin: 10px auto 16px; }
.maze-direction { border: 1px solid #cdded6; background: #fffdf7; border-radius: 13px; color: #275e50; display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 0 #e0e8df; min-width: 44px; min-height: 44px; touch-action: manipulation; }
.maze-direction svg { width: 26px; height: 26px; }
.maze-direction:active { box-shadow: none; transform: translateY(2px); background: #e6efe4; }
.maze-direction:hover { background: #eaf2e7; }
.maze-direction:focus-visible { outline: 3px solid #b27631; outline-offset: 3px; }
.maze-direction:disabled { opacity: .42; cursor: default; }
.maze-dir-0 { grid-column: 2; grid-row: 1; }
.maze-dir-1 { grid-column: 3; grid-row: 2; }
.maze-dir-2 { grid-column: 2; grid-row: 3; }
.maze-dir-3 { grid-column: 1; grid-row: 2; }
.maze-center { grid-column: 2; grid-row: 2; display: grid; place-items: center; color: #7d9f82; }
.maze-center svg { width: 24px; height: 24px; }
.maze-actions { justify-content: center; gap: 8px; }
.maze-actions .btn { font-size: .92rem; padding: 11px 15px; min-height: 44px; }
.maze-help { max-width: 430px; margin: 15px auto 0; text-align: center; }
@media (max-width: 380px) { .maze-scene { padding: 8px; border-radius: 20px; } .maze-actions .btn { padding: 10px 12px; font-size: .85rem; } }
@media (min-width: 800px) { .maze-movement { grid-template-rows: repeat(3, 48px); } }
@media (prefers-reduced-motion: reduce) { .maze-direction { transition: none; } }
