/* Labirynt: korzysta ze styli strony (style.css), tu tylko to, co własne. */
.maze-page { display: flex; flex-wrap: wrap; gap: 36px 56px; align-items: flex-start; padding: 28px 0 0; }
.maze-head { flex: 1 1 100%; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.maze-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.maze-text p { font-size: 18px; max-width: 30em; color: var(--ink-2); }
.maze-text .how { font-size: 15px; color: var(--muted); }
.mz-stats { display: flex; flex-wrap: wrap; gap: 0; border: var(--line) solid var(--ink); font: 500 11px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); align-self: flex-start; background: var(--card); }
.mz-stats > * { padding: 8px 16px; border-right: var(--line) solid var(--ink); } .mz-stats > *:last-child { border-right: 0; }
.mz-stats b { display: block; color: var(--ink); font: 500 22px var(--mono); font-variant-numeric: tabular-nums; text-transform: none; }
.mz-log { background: var(--card); border: var(--line) solid var(--ink); max-width: 440px; }
.mz-log h2, .mz-log h3 { padding: 10px 16px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; }
.mz-log ol { margin: 0; padding: 12px 16px 14px 2.6em; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.mz-log li.empty { list-style: none; margin-left: -1.4em; color: var(--muted); }
.maze-game { flex: 1 1 460px; max-width: 560px; }
@media (max-width: 860px) { .maze-game { order: -1; flex-basis: 100%; } .maze-head { order: -2; } .maze-page { gap: 24px; } }
#maze { display: block; width: 100%; height: auto; aspect-ratio: 1; touch-action: none; background: #1c1d1f; }
#maze:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.mz-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.go-btn.ghost { background: var(--card); color: var(--ink); }
.go-btn.ghost:hover { background: var(--accent); color: #0b0b0a; }
.go-btn[hidden], .mz-cta[hidden] { display: none; }
.mz-cta { font-size: 14px; font-weight: 700; padding: 8px 0; }
.maze-game .go-sub { margin: 0 0 6px; max-width: 24em; }
.mz-toast {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 8px; width: max-content; max-width: calc(100% - 28px);
  background: #efeee9; color: #0b0b0a; border: 2px solid #0b0b0a; padding: 9px 14px; font-size: 14px; font-weight: 600; line-height: 1.35; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s;
}
.mz-toast.on { opacity: 1; translate: -50% 0; }
.maze-page + .rules { margin-top: 96px; }
#maze.bump { animation: mz-bump .18s ease-out; }
@keyframes mz-bump { 30% { translate: 3px 0; } 60% { translate: -2px 0; } }
@media (prefers-reduced-motion: reduce) { #maze.bump { animation: none; } .mz-toast { transition: none; } }
@media (max-width: 640px) { .mz-toast { font-size: 13px; padding: 8px 12px; bottom: 10px; } }
