:root{--maze-garden-wide: url(/game-assets/maze/garden-wide.webp?v=eef89907);--maze-garden-tall: url(/game-assets/maze/garden-tall.webp?v=9b68a50c)}.maze-adventure{--maze-ink: #2E4A3C;--maze-surface: #FFFDF8;--maze-max: #6830B0;--maze-maggie: #D9480F;--maze-header-room: 96px;max-width:960px;margin:0 auto;display:flex;flex-direction:column;gap:.75rem}.maze-adventure__title{display:none;margin:0;font:800 1.15rem/1.2 var(--font-display);color:var(--color-purple)}.maze-adventure__toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.5rem .75rem}.maze-adventure__level{display:inline-flex;align-items:center;gap:.5rem;font:600 .95rem var(--font-display);color:var(--color-dark)}.maze-adventure__level select{min-height:44px;padding:0 .75rem;border:2px solid var(--color-purple-light);border-radius:var(--radius-sm);background:var(--color-white);color:var(--color-dark);font:1rem var(--font-body);cursor:pointer}.maze-adventure__button{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;padding:0 1rem;border:2px solid var(--color-purple-light);border-radius:var(--radius-full);background:var(--color-white);color:var(--color-purple);font:700 1rem var(--font-display);cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.maze-adventure__button:hover{background:var(--color-mint-light)}.maze-adventure__level select:focus-visible,.maze-adventure__button:focus-visible,.maze-adventure__dpad-btn:focus-visible,.maze-adventure__actions .btn:focus-visible,.maze-adventure__notice .btn:focus-visible{outline:4px solid var(--color-purple);outline-offset:3px}.maze-adventure__sound-icon:before{content:"🔊"}.maze-adventure__sound[aria-pressed=false]{border-color:var(--color-tan-dark);color:var(--color-warm-brown)}.maze-adventure__sound[aria-pressed=false] .maze-adventure__sound-icon:before{content:"🔇"}.maze-adventure__music-icon:before{content:"🎵"}.maze-adventure__music[aria-pressed=false],.maze-adventure__music[data-silenced]{border-color:var(--color-tan-dark);color:var(--color-warm-brown)}.maze-adventure__music-icon{position:relative}.maze-adventure__music[aria-pressed=false] .maze-adventure__music-icon:after{content:"";position:absolute;left:-2px;right:-2px;top:50%;border-top:2px solid currentColor;transform:rotate(-45deg)}.maze-adventure__stats{display:flex;justify-content:center;gap:2rem}.maze-adventure__stat{display:flex;align-items:baseline;gap:.4rem;margin:0}.maze-adventure__stat-label{font:700 .8rem var(--font-display);text-transform:uppercase;letter-spacing:.06em;color:var(--color-warm-brown)}.maze-adventure__stat-value{min-width:3ch;font:800 1.4rem var(--font-display);font-variant-numeric:tabular-nums;color:var(--color-red-deep)}.maze-adventure__stage{position:relative;display:grid;place-items:center;box-sizing:border-box;height:clamp(440px,calc(100vh - 240px),680px);padding:32px;overflow:hidden;border-radius:var(--radius-lg);background:var(--color-tan-light) var(--maze-garden-wide) center / cover no-repeat;scroll-margin-top:var(--maze-header-room)}.maze-adventure__board{display:block;box-sizing:content-box;border:3px solid var(--maze-ink);border-radius:6px;background:var(--maze-surface);box-shadow:0 6px 24px #2e4a3c2e;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}.maze-adventure__board:focus-visible{outline:4px solid var(--color-purple);outline-offset:3px}.maze-adventure__start{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.75rem;padding:12px;background:#fffdf873}.maze-adventure__start[hidden]{display:none}.maze-adventure__start-btn{gap:.6rem;min-width:11rem;min-height:64px;padding:.9rem 2.5rem;font-size:clamp(1.4rem,5vw,1.9rem);box-shadow:var(--shadow-strong);touch-action:manipulation;-webkit-tap-highlight-color:transparent}.maze-adventure__start-btn:focus-visible{outline:4px solid var(--color-purple);outline-offset:4px;box-shadow:0 0 0 4px var(--color-white),var(--shadow-strong)}.maze-adventure__start-icon{font-size:.8em}.maze-adventure__start-hint{margin:0;padding:.3rem .9rem;border-radius:var(--radius-full);background:var(--color-white);font:700 1rem var(--font-display);color:var(--color-purple)}.maze-adventure__start-size{margin:0;padding:.15rem .7rem;border-radius:var(--radius-full);background:var(--color-white);font:700 .9rem var(--font-display);font-variant-numeric:tabular-nums;color:var(--color-warm-brown)}.maze-adventure__notice{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:12px;background:#fffdf8b3}.maze-adventure__notice[hidden]{display:none}.maze-adventure__notice-panel{display:flex;flex-direction:column;align-items:center;gap:.75rem;box-sizing:border-box;width:min(400px,100%);max-height:100%;padding:1rem 1.25rem;overflow-y:auto;border-radius:var(--radius-md);background:var(--color-white);box-shadow:var(--shadow-strong);text-align:center}.maze-adventure__notice-text{margin:0;font:700 1.05rem/1.35 var(--font-display);color:var(--color-dark)}.maze-adventure__ending{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:12px;background:#fffdf899;container-type:size}.maze-adventure__ending[hidden]{display:none}.maze-adventure__ending-panel{display:flex;flex-direction:column;align-items:center;gap:.5rem;box-sizing:border-box;width:min(440px,100%);max-height:100%;padding:1rem 1.25rem 1.25rem;overflow-y:auto;border-radius:var(--radius-md);background:var(--color-white);box-shadow:var(--shadow-strong);text-align:center}.maze-adventure__ending-title{flex:none;margin:0;font:800 clamp(1.4rem,5vw,1.9rem)/1.2 var(--font-display);color:var(--color-purple)}.maze-adventure__reunion{flex:0 1 auto;min-height:0;width:auto;max-width:100%;height:auto;max-height:min(260px,max(0px,calc(100cqh - 13rem)));object-fit:contain}.maze-adventure__result{flex:none;margin:0;font:700 1.1rem var(--font-display);color:var(--color-red-deep)}.maze-adventure__actions{flex:none;display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem .75rem}.maze-adventure__actions .btn{min-height:48px}.maze-adventure__key{display:none;justify-content:center;gap:1.25rem;margin:0;padding:0;list-style:none}.maze-adventure__key-item{display:flex;align-items:center;gap:.4rem;font:700 .95rem var(--font-display);color:var(--color-dark)}.maze-adventure__key-face{width:40px;height:40px;border:3px solid var(--maze-max);border-radius:50%;background:var(--color-white);object-fit:cover}.maze-adventure__key-item--maggie .maze-adventure__key-face{border-color:var(--maze-maggie)}.maze-adventure__key-item--max .maze-adventure__key-face{box-shadow:0 0 0 2px var(--color-white),0 0 0 4px var(--maze-max),0 0 10px 3px #6830b073}.maze-adventure__dpad{display:grid;grid-template-areas:". up ." "left center right" ". down .";grid-template-columns:repeat(3,56px);grid-template-rows:repeat(3,56px);gap:2px;justify-content:center;touch-action:manipulation}.maze-adventure__dpad:before{content:"";grid-area:center;background:var(--color-purple);opacity:.18;pointer-events:none}.maze-adventure__dpad-btn{position:relative;border:none;border-radius:var(--radius-sm);background:var(--color-mint);color:var(--color-purple);font-size:1.25rem;cursor:pointer;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;touch-action:none;-webkit-user-drag:none;-webkit-tap-highlight-color:transparent}.maze-adventure__dpad-btn:active,.maze-adventure__dpad-btn.is-pressed{background:var(--color-purple);color:var(--color-white);box-shadow:inset 0 0 0 3px var(--color-white),0 0 12px 2px #6830b08c;position:relative;z-index:1}.maze-adventure__dpad-btn--up{grid-area:up}.maze-adventure__dpad-btn--left{grid-area:left}.maze-adventure__dpad-btn--right{grid-area:right}.maze-adventure__dpad-btn--down{grid-area:down}@media(hover:hover)and (pointer:fine){.maze-adventure__dpad{display:none}}.maze-adventure__noscript{text-align:center;font-weight:700}.maze-grownups{max-width:640px;margin:2rem auto 0;text-align:center}@media(max-width:760px),(max-height:500px){html.game-page .maze-adventure{flex:1 0 auto;display:grid;grid-template-columns:1fr auto;grid-template-areas:"title stats" "toolbar toolbar" "stage stage" "key key" "dpad dpad";grid-template-rows:auto auto minmax(min(calc(100vw - 24px),300px),1fr) auto auto;gap:6px 8px;width:100%;max-width:none;--maze-pad: clamp(64px, min(20vw, 9.5vh), 84px);--maze-pad: clamp(64px, min(20vw, 9.5dvh), 84px);--maze-pad-gap: 2px}html.game-page .maze-adventure__title{display:block;grid-area:title;align-self:center}html.game-page .maze-adventure__stats{grid-area:stats;gap:.9rem}html.game-page .maze-adventure__stat-label{font-size:.7rem}html.game-page .maze-adventure__stat-value{font-size:1.15rem}html.game-page .maze-adventure__toolbar{grid-area:toolbar;gap:6px}html.game-page .maze-adventure__level{flex:1 1 0;min-width:6.5rem}html.game-page .maze-adventure__level select{width:100%;min-height:48px}html.game-page .maze-adventure__level-word{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}html.game-page .maze-adventure__button{min-height:48px;padding:0 .7rem;font-size:.95rem;white-space:nowrap}html.game-page .maze-adventure__sound,html.game-page .maze-adventure__music{justify-content:center;min-width:48px;padding:0 .6rem}html.game-page .maze-adventure__sound-label,html.game-page .maze-adventure__music-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}html.game-page .maze-adventure__level select{padding:0 .5rem;text-overflow:ellipsis}html.game-page .maze-adventure__stage{grid-area:stage;height:auto;min-height:0;padding:8px;border-radius:var(--radius-md);background-image:var(--maze-garden-tall);scroll-margin-top:0;contain:size}html.game-page .maze-adventure[data-level=hard] .maze-adventure__key,html.game-page .maze-adventure[data-level=expert] .maze-adventure__key{display:flex;grid-area:key}html.game-page .maze-adventure__dpad{grid-area:dpad;grid-template-columns:repeat(3,var(--maze-pad));grid-template-rows:repeat(3,var(--maze-pad));gap:var(--maze-pad-gap);padding:2px 0 4px}html.game-page .maze-adventure__dpad-btn{font-size:calc(var(--maze-pad) * .4);line-height:1}html.game-page .maze-adventure__dpad-btn--up{border-radius:var(--radius-md) var(--radius-md) 0 0}html.game-page .maze-adventure__dpad-btn--down{border-radius:0 0 var(--radius-md) var(--radius-md)}html.game-page .maze-adventure__dpad-btn--left{border-radius:var(--radius-md) 0 0 var(--radius-md)}html.game-page .maze-adventure__dpad-btn--right{border-radius:0 var(--radius-md) var(--radius-md) 0}html.game-page .maze-grownups{margin-top:var(--spacing-md)}}@media(max-height:500px)and (orientation:landscape){html.game-page .maze-adventure{grid-template-columns:minmax(0,1fr) 7.5rem calc(3 * var(--maze-pad) + 2 * var(--maze-pad-gap));grid-template-areas:"stage toolbar toolbar" "stage stats dpad" "stage key dpad";grid-template-rows:auto auto 1fr;gap:6px 8px;--maze-pad: 64px;--maze-pad-gap: 2px}html.game-page .maze-adventure__title{display:none}html.game-page .maze-adventure__toolbar{justify-content:flex-start}html.game-page .maze-adventure__stats,html.game-page .maze-adventure__key{flex-direction:column;align-items:flex-start;align-self:start;gap:.4rem}html.game-page .maze-adventure__key-item{font-size:.85rem}html.game-page .maze-adventure__key-face{width:30px;height:30px;border-width:2px}html.game-page .maze-adventure__stage{min-height:240px;background-image:var(--maze-garden-wide)}html.game-page .maze-adventure__dpad{align-self:end;padding:0}}
