/* Chim-Chim's separate little arcade: the clubhouse rests behind the game. */
.banana-launch{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:40px;padding:8px 12px;border:1px solid #d3b86e;border-radius:13px;background:#f4dfa0;color:#34563a;font:inherit;font-size:12px;font-weight:800;box-shadow:0 3px 0 #b69a5233;cursor:pointer}
.banana-launch:hover{background:#f9e9b9}.banana-launch:active{transform:translateY(1px)}
.banana-launch img{width:30px;height:30px;object-fit:contain}
.maze-session .world-stage *,.maze-session .world-stage *::before,.maze-session .world-stage *::after{animation-play-state:paused!important}
.maze-session .scene-motes{display:none}
dialog.banana-game{--maze-deep:#173f35;--maze-leaf:#496d42;--maze-gold:#f2cc68;--maze-cream:#fff9e7;width:min(1050px,calc(100vw - 32px));height:min(760px,calc(100dvh - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #eef0cf;border-radius:27px;background:#f7f5df;color:var(--maze-deep);overflow:hidden;box-shadow:0 26px 90px #102c2a70}
.banana-game::backdrop{background:#102d27bf;backdrop-filter:blur(5px)}
.banana-game[open]{animation:maze-open .18s ease-out}
.maze-frame{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:20px;padding:25px;background:radial-gradient(ellipse at 90% 6%,#f5df995e,transparent 46%),#f7f5df;box-sizing:border-box}
.maze-header{display:flex;align-items:center;justify-content:space-between;gap:15px;min-width:0}
.maze-header .eyebrow{margin:0 0 6px;color:#688058;font-size:9px;font-weight:800;letter-spacing:2px}
.maze-header h2{margin:0;font-size:clamp(23px,3vw,34px);line-height:1.05;letter-spacing:-1px}
.maze-close{flex:none;min-height:42px;padding:10px 15px;border:1px solid #c9d3af;border-radius:50px;background:#fffdf0;color:var(--maze-deep);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.maze-close:hover{background:#e7edcf}
.maze-layout{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 225px;gap:24px}
.maze-playarea{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-width:0;min-height:0}
.maze-scorebar{display:flex;align-items:center;gap:14px;min-width:0;padding:2px 4px;color:#526d46;font-size:11px;font-weight:800}
#maze-level{flex:none;letter-spacing:.6px;text-transform:uppercase;font-size:10px}
.maze-score{display:flex;align-items:baseline;gap:4px;white-space:nowrap;color:#345539;font-size:11px}
#maze-score{color:#173f35;font-size:22px;font-weight:800;letter-spacing:-.7px;line-height:1}
#maze-progress{display:block;appearance:none;flex:1;min-width:35px;height:9px;margin-left:auto;border:0;border-radius:20px;overflow:hidden;background:#dce2c4;color:#e7b848}
#maze-progress::-webkit-progress-bar{border-radius:20px;background:#dce2c4}
#maze-progress::-webkit-progress-value{border-radius:20px;background:linear-gradient(90deg,#d9a642,#f1d67b)}
#maze-progress::-moz-progress-bar{border-radius:20px;background:#e4bc55}
.maze-board-frame{position:relative;min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;border:7px solid #375d3b;border-radius:24px;background:#cddcaf;box-shadow:0 5px 0 #173f351f,inset 0 0 0 1px #527347}
.maze-board{display:block;width:100%;height:100%;max-width:100%;max-height:100%;touch-action:none;user-select:none;outline:none}
.maze-board:focus-visible{box-shadow:inset 0 0 0 4px #f4d57a;border-radius:13px}
.maze-ground{fill:#dce8be}.maze-wall{fill:#3e693f;stroke:#63864c;stroke-width:1.4px;stroke-linejoin:round}
.banana-pickup{pointer-events:none}
.maze-wall-leaf{fill:#739456;opacity:.65}
#maze-player{transition:transform .16s linear}
#maze-player[data-facing="left"] .maze-monkey-face{transform:scaleX(-1)}
.maze-chew{opacity:0}.is-munching .maze-chew{opacity:1}
.maze-monkey-face{transform-box:fill-box;transform-origin:center}
.maze-monkey-face.is-munching{animation:maze-munch .18s ease-out}
.maze-overlay{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:25px;text-align:center;background:#173f35e8;color:#fff9e7;backdrop-filter:blur(2px)}
.maze-overlay[hidden]{display:none!important}
#maze-overlay-kicker{margin:0 0 13px;color:#eed782;font-size:10px;font-weight:800;letter-spacing:2px;text-transform:uppercase}
#maze-overlay-title{max-width:360px;margin:0;font-size:clamp(25px,3.5vw,43px);line-height:1.08;letter-spacing:-1.4px}
#maze-overlay-text{max-width:295px;margin:16px 0 24px;color:#e2e8c9;font-size:14px;line-height:1.6}
.maze-overlay .button{min-height:48px;padding:13px 27px;border:1px solid #f3d580;background:#f2d47c;color:#2a4831;box-shadow:0 4px 0 #0d241960;font-size:14px;font-weight:800}
.maze-overlay .button:hover{background:#ffe49a;transform:translateY(-1px)}
.maze-sidebar{min-width:0;min-height:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:21px 17px;border:1px solid #d4dbb9;border-radius:22px;background:#e9edcf;text-align:center;overflow:hidden}
.maze-portrait{display:block;width:114px;height:123px;max-width:100%;object-fit:contain;margin:-5px auto 8px}
.maze-sidebar h3{margin:0 0 8px;font-size:20px;line-height:1.15;letter-spacing:-.5px}
#maze-how{margin:0 0 18px;color:#52664a;font-size:12px;line-height:1.6}
.maze-keypad{display:grid;grid-template-columns:repeat(3,43px);grid-template-rows:repeat(2,41px);gap:5px;margin:0 auto 18px;touch-action:none}
.maze-keypad button{display:grid;place-items:center;padding:0;border:1px solid #c2cd9d;border-radius:11px;background:#fffceb;color:#335a37;box-shadow:0 3px 0 #b6c592;font:inherit;font-size:21px;font-weight:800;line-height:1;touch-action:none;user-select:none;cursor:pointer}
.maze-keypad [data-maze-direction=up]{grid-column:2;grid-row:1}.maze-keypad [data-maze-direction=left]{grid-column:1;grid-row:2}.maze-keypad [data-maze-direction=down]{grid-column:2;grid-row:2}.maze-keypad [data-maze-direction=right]{grid-column:3;grid-row:2}
.maze-keypad-center{grid-row:1;grid-column:1;display:grid;place-items:center;color:#9cae78;font-size:15px;pointer-events:none}
.maze-keypad button:hover{background:#f6e8b7}.maze-keypad button:active,.maze-keypad button.is-pressed{transform:translateY(2px);box-shadow:0 1px 0 #a8b77e;background:#f0d17a}
.maze-actions{width:100%;display:flex;justify-content:center;gap:7px}
.maze-actions button{flex:1;min-height:37px;padding:8px 9px;border:1px solid #bdcca0;border-radius:10px;background:transparent;color:#365736;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.maze-actions button:hover{background:#f7f8e6}.maze-actions button:disabled{opacity:.48;cursor:default}
#maze-note{max-width:190px;margin:14px 0 0;color:#718062;font-size:10px;line-height:1.6}
.banana-game button:focus-visible,.banana-launch:focus-visible{outline:3px solid #bc8029;outline-offset:3px}
@keyframes maze-munch{0%,100%{scale:1}45%{scale:1.15 .9}}
@keyframes maze-open{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-height:800px) and (min-width:701px){
  .maze-frame{gap:15px;padding:20px}.maze-layout{gap:20px}.maze-sidebar{padding:16px 14px}.maze-portrait{width:94px;height:102px}.maze-sidebar h3{font-size:18px}#maze-how{margin-bottom:14px}.maze-keypad{margin-bottom:15px}#maze-note{margin-top:12px}
}
@media(max-width:700px) and (orientation:portrait){
  dialog.banana-game{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:21px}
  .maze-frame{padding:15px;gap:15px}.maze-header{gap:10px}.maze-header .eyebrow{font-size:8px;letter-spacing:1.2px;margin-bottom:5px}.maze-header h2{font-size:25px;letter-spacing:-.8px}.maze-close{min-height:37px;max-width:100px;padding:8px 11px;font-size:10px;line-height:1.3}
  .maze-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:13px}.maze-playarea{gap:9px}.maze-scorebar{gap:10px;font-size:10px}#maze-level{font-size:9px}#maze-score{font-size:20px}.maze-board-frame{border-width:5px;border-radius:19px}
  .maze-sidebar{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.8fr);gap:10px 18px;padding:13px 15px;border-radius:17px;justify-content:normal;align-items:center}
  .maze-portrait,.maze-sidebar h3{display:none}#maze-how{grid-column:1/-1;margin:0;font-size:11px;line-height:1.4}.maze-keypad{grid-column:1;grid-row:2;margin:0;grid-template-columns:repeat(3,40px);grid-template-rows:repeat(2,36px);gap:4px}.maze-keypad button{font-size:19px;border-radius:9px}
  .maze-actions{grid-column:2;grid-row:2;display:grid;gap:6px}.maze-actions button{min-height:34px;padding:7px 8px;font-size:10px}#maze-note{grid-column:1/-1;max-width:none;margin:0;font-size:9px;line-height:1.3}
  #maze-overlay-kicker{font-size:8px;margin-bottom:10px}#maze-overlay-title{font-size:30px}#maze-overlay-text{font-size:12px;margin:12px 0 18px}.maze-overlay{padding:19px}.maze-overlay .button{min-height:43px;font-size:12px;padding:11px 22px}
}
@media(max-width:359px) and (orientation:portrait), (max-height:660px) and (orientation:portrait){
  .maze-frame{padding:10px;gap:10px}.maze-header h2{font-size:22px}.maze-header .eyebrow{font-size:7px}.maze-close{max-width:85px;min-height:33px;padding:7px 9px;font-size:9px}.maze-layout{gap:9px}.maze-playarea{gap:6px}.maze-scorebar{gap:7px}#maze-level{font-size:8px}.maze-score{font-size:9px}#maze-score{font-size:18px}#maze-progress{height:7px}.maze-sidebar{padding:9px 11px;gap:8px 11px}#maze-how{font-size:10px}.maze-keypad{grid-template-columns:repeat(3,35px);grid-template-rows:repeat(2,31px)}.maze-keypad button{font-size:17px}.maze-actions{gap:5px}.maze-actions button{min-height:30px;padding:5px 6px}#maze-note{font-size:8px}#maze-overlay-title{font-size:26px}#maze-overlay-text{margin:10px 0 15px;font-size:11px;line-height:1.5}.maze-overlay .button{min-height:39px;padding:9px 19px}
}
@media(max-height:500px) and (orientation:landscape){
  dialog.banana-game{width:calc(100vw - 16px);height:calc(100dvh - 12px);border-radius:19px}.maze-frame{padding:11px 14px;gap:9px}.maze-header .eyebrow{font-size:7px;letter-spacing:1.3px;margin-bottom:3px}.maze-header h2{font-size:23px}.maze-close{min-height:32px;padding:7px 12px;font-size:10px}.maze-layout{grid-template-columns:minmax(0,1fr) 205px;gap:14px}.maze-playarea{gap:6px}.maze-scorebar{gap:10px}#maze-level{font-size:8px}#maze-score{font-size:18px}.maze-score{font-size:9px}.maze-board-frame{border-width:4px;border-radius:16px}.maze-sidebar{padding:10px 12px;border-radius:16px}.maze-portrait{display:none}.maze-sidebar h3{font-size:16px;margin-bottom:5px}#maze-how{font-size:10px;line-height:1.4;margin-bottom:10px}.maze-keypad{grid-template-columns:repeat(3,36px);grid-template-rows:repeat(2,32px);gap:4px;margin-bottom:10px}.maze-keypad button{font-size:17px;border-radius:8px}.maze-actions button{min-height:30px;padding:6px 7px;font-size:9px}#maze-note{margin-top:9px;font-size:8px;line-height:1.4}.maze-overlay{padding:15px}#maze-overlay-kicker{margin-bottom:8px;font-size:8px}#maze-overlay-title{font-size:29px}#maze-overlay-text{margin:10px 0 15px;font-size:11px;line-height:1.4}.maze-overlay .button{min-height:38px;padding:9px 20px;font-size:11px}
}
@media(prefers-reduced-motion:reduce){.banana-game[open],.maze-monkey-face.is-munching{animation:none}.banana-launch,.maze-keypad button{transition:none}}
.calm .banana-game[open],.calm .maze-monkey-face.is-munching{animation:none}
/* Little fingers get full-size targets even in the compact layouts. */
.maze-keypad{grid-template-columns:repeat(3,44px);grid-template-rows:repeat(2,44px)}
