/* A quiet picture-book page: five friends, five belongings, five looping trails. */
#play-view.playing-maze .game-surface{padding:14px 22px 10px;background:#fffdf6;}
#play-view.playing-maze .feedback{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.maze-tracing{max-width:1100px;margin:0 auto;min-height:0;display:flex;flex-direction:column;}
.maze-keepsakes{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 auto 10px;width:min(580px,80%);}
.maze-keepsake{height:65px;border:1.5px dashed #cfddd1;border-radius:18px;background:#f5f8ef;position:relative;display:flex;align-items:center;justify-content:center;gap:0;}
.maze-keepsake.filled{border-style:solid;border-color:#cfddd1;background:#ecf4e9;}
.maze-keepsake>img{width:48%;height:55px;object-fit:contain;}
.maze-keepsake-seed{font-size:26px;color:#c0d1be;}
.maze-keepsake-check{position:absolute;right:3px;bottom:1px;font-size:12px;font-weight:900;color:#498c7b;}
.maze-trace-heading{display:flex;justify-content:center;align-items:center;gap:20px;text-align:center;margin:0 0 6px;}
.maze-trace-heading strong{font:700 27px/1.2 var(--heading);color:#2a625e;}
.maze-trace-heading p{font:600 12px/1.4 var(--body);color:#7b8e80;margin:3px 0 0;}
.maze-leaf{font-size:32px;color:#a2bba3;}
.maze-leaf:last-child{transform:scaleX(-1);}
.maze-trace-map{position:relative;width:100%;height:clamp(400px,calc(100dvh - 340px),630px);min-height:0;isolation:isolate;touch-action:none;user-select:none;-webkit-user-select:none;}
.maze-trace-map:focus{outline:none;}
.maze-trace-map:focus-visible{outline:3px dashed #d5a35d;outline-offset:4px;border-radius:20px;}
.maze-trace-lines{position:absolute;width:100%;height:100%;inset:0;overflow:visible;pointer-events:none;}
.maze-dotted-trail{fill:none;stroke:#9fbfaf;stroke-width:3.6;stroke-linecap:round;stroke-dasharray:0 13;vector-effect:non-scaling-stroke;opacity:.85;}
.maze-trace-route.selected .maze-dotted-trail{stroke:var(--trail-color);opacity:1;}
.maze-solid-trail{fill:none;stroke:var(--trail-color);stroke-width:4.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.maze-trace-route.collected{display:none;}
.maze-trace-route.collecting{display:block;}
.maze-trace-route.collecting .maze-dotted-trail{display:none;}
.maze-trace-hint{fill:#f7d98d;stroke:#d0a256;stroke-width:2;vector-effect:non-scaling-stroke;animation:maze-hint-pulse 1.2s ease-in-out infinite;}
.maze-trace-friend,.maze-trace-destination{position:absolute;transform:translate(-50%,-50%);width:13%;height:19%;max-width:125px;max-height:112px;min-width:44px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:2;}
.maze-trace-friend{border:0;background:transparent;padding:0;border-radius:24px;cursor:grab;touch-action:none;box-shadow:none;width:10.5%;height:22%;max-height:120px;}
.maze-trace-friend:active{cursor:grabbing;}
.maze-trace-friend:before{content:'';position:absolute;inset:9% 4% 16%;background:#ecf2e4;border:1.5px dashed var(--trail-color);border-radius:50%;opacity:0;z-index:-1;}
.maze-trace-friend.selected:before{opacity:1;}
.maze-trace-friend.on-trail{width:9%;height:15%;z-index:3;}
.maze-trace-friend.on-trail>span{display:none;}
.maze-trace-friend:focus-visible{outline:3px solid #d6a253;outline-offset:2px;}
.maze-trace-friend>img,.maze-trace-destination>img{width:100%;height:calc(100% - 12px);object-fit:contain;pointer-events:none;}
.maze-trace-friend>span,.maze-trace-destination>span{font:700 11px/1.2 var(--body);color:#738578;white-space:nowrap;pointer-events:none;}
.maze-trace-destination{pointer-events:none;}
.maze-trace-destination>img{height:calc(100% - 16px);}
.maze-trace-friend.collected,.maze-trace-destination.collected{visibility:hidden;}
.maze-trace-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #e6ebdf;padding-top:8px;margin-top:4px;}
.maze-trace-footer p{font:600 12px/1.5 var(--body);color:#7d8e7f;margin:0;}
.maze-trace-footer p>span{display:block;font-size:10px;color:#94a294;}
.maze-trace-steps{display:flex;gap:8px;}
.maze-trace-steps>button{border:1.5px solid #d7e2d3;background:#f0f5eb;color:#518e7e;border-radius:14px;width:44px;height:44px;font:700 24px var(--body);}
.maze-keepsake.arriving>img,.maze-keepsake.arriving>.maze-keepsake-check{visibility:hidden;}
.maze-pair-flight{position:fixed;z-index:10001;pointer-events:none;transform-origin:top left;display:flex;align-items:center;justify-content:center;}
.maze-pair-flight>img{width:50%;height:100%;object-fit:contain;}
.maze-item-sparkles{position:absolute;inset:0;}
.maze-item-sparkles>i{position:absolute;color:#e6bd57;font-style:normal;font-size:18px;opacity:0;}
.maze-item-sparkles>i:nth-child(1){left:56%;top:6%;}.maze-item-sparkles>i:nth-child(2){right:1%;top:42%;}.maze-item-sparkles>i:nth-child(3){left:64%;bottom:0;}
@keyframes maze-hint-pulse{50%{opacity:.35;}}
@media(min-width:700px) and (min-height:700px) and (max-width:1400px){
 #play-view.playing-maze .play-wrap{height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding-bottom:10px;}
 #play-view.playing-maze .play-top{min-height:66px;padding:5px 0 0;}
 #play-view.playing-maze .play-brand-friends img{height:48px;width:33px;}
 #play-view.playing-maze .play-brand-name{font-size:24px;}
 #play-view.playing-maze .play-navigation .game-icon{height:48px;width:48px;padding:12px;}
 #play-view.playing-maze .round-title{margin:0;gap:10px;}
 #play-view.playing-maze .round-title h1{font-size:32px;}
 #play-view.playing-maze .round-title .listen{height:44px;width:44px;padding:12px;}
 #play-view.playing-maze .star-level{min-width:60px;min-height:44px;padding:9px 12px;}
 #play-view.playing-maze .game-toolbar{padding:10px 16px;gap:14px;}
 #play-view.playing-maze .game-progress-picture{width:50px;height:56px;}
 #play-view.playing-maze .game-progress-count{font-size:26px;margin-bottom:4px;}
 #play-view.playing-maze .game-icon{height:44px;width:44px;padding:11px;}
 #play-view.playing-maze .game-surface{padding:10px 18px;}
 #play-view.playing-maze .game-surface{flex:1;min-height:0;container-type:size;}
 .maze-tracing{height:100%;}
 .maze-keepsakes{flex-shrink:0;height:56px;margin-bottom:6px;}
 .maze-keepsake{height:56px;}.maze-keepsake>img{height:48px;}
 .maze-trace-heading{flex-shrink:0;}.maze-trace-heading strong{font-size:22px;}
 .maze-trace-map{flex:1;height:auto;min-height:240px;}
 .maze-trace-footer{flex-shrink:0;}
}
@media(max-width:699px){
 #play-view.playing-maze .play-top{min-height:54px;padding:6px 0;}
 #play-view.playing-maze .round-title{margin:8px 0 12px;gap:8px;}
 #play-view.playing-maze .round-title h1{font-size:26px;}
 #play-view.playing-maze .round-title .listen{width:44px;height:44px;padding:12px;}
 #play-view.playing-maze .difficulty-options{padding:3px;}
 #play-view.playing-maze .star-level{min-height:44px;padding:6px;}
 #play-view.playing-maze .game-toolbar{padding:9px 12px;gap:5px 10px;}
 #play-view.playing-maze .game-progress-picture{height:44px;width:44px;padding:3px;}
 #play-view.playing-maze .game-progress-count{font-size:23px;margin-bottom:3px;}
 #play-view.playing-maze .game-icon{height:44px;width:44px;padding:12px;}
 #play-view.playing-maze .game-tools{gap:6px;}
 #play-view.playing-maze .game-surface{padding:10px 5px;}
 .maze-keepsakes{width:94%;gap:6px;}.maze-keepsake{height:49px;border-radius:13px;}.maze-keepsake>img{height:42px;}
 .maze-trace-heading{gap:8px;}.maze-trace-heading strong{font-size:23px;}.maze-trace-heading p{font-size:10px;}.maze-leaf{font-size:23px;}
 .maze-trace-map{height:clamp(340px,calc(100dvh - 400px),490px);}
 .maze-dotted-trail{stroke-width:3;stroke-dasharray:0 18;}.maze-solid-trail{stroke-width:3.5;}
 .maze-trace-friend,.maze-trace-destination{width:17%;height:17%;}.maze-trace-friend.on-trail{width:14%;height:13%;}
 .maze-trace-friend>span,.maze-trace-destination>span{font-size:8px;white-space:normal;text-align:center;}
 .maze-trace-footer{margin:4px 8px 0;}.maze-trace-footer p{font-size:10px;}.maze-trace-footer p>span{font-size:9px;}
}
@media(prefers-reduced-motion:reduce){.maze-trace-hint{animation:none;}}
