/* Noor Path: a pocket garden within the shared Salam Games shell. */
body[data-sg-page=noor-path]{background-color:#edf9f6;background-image:radial-gradient(#fff 1.5px,transparent 1.5px);background-attachment:fixed}
.noor{max-width:1120px}
.noor .practice-intro{position:relative;min-height:145px;padding:24px 28px;border:2px solid #c2e9d8;border-radius:26px;overflow:hidden;background:#e4f7ed url('/assets/scenes/salam-garden-1120.webp') right 51%/auto 320px no-repeat;box-shadow:0 6px 0 #cce9df;isolation:isolate}
.noor .practice-intro:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#edfff7 20%,#edfff7f0 43%,#edfff730 77%)}
.noor .practice-intro>span{background:#fffaf0;border-color:#e9c780;box-shadow:0 5px #e5c687;transform:rotate(-6deg)}
.noor .practice-intro>span svg{width:52px;height:52px}.noor .practice-intro p:last-child{max-width:415px}.noor .eyebrow{color:#16664e}
.noor .movement-layout{grid-template-columns:minmax(0,1fr) 280px;gap:20px}.noor #mazePlayArea{min-width:0;scroll-margin-top:86px}
.noor .movement-stats{margin-bottom:12px}.noor .movement-stat{padding:7px 4px;border-color:#c9e6db;box-shadow:0 3px #d3e8dc}.noor .movement-stat strong{font-size:1.15rem;color:#185642}
.noor .movement-board-card{background:#fffefa;padding:16px;border-color:#b8dccd;box-shadow:0 6px #bfdacf;scroll-margin-top:82px}
.noor .maze-overview{gap:8px;margin-bottom:8px}.noor .maze-overview h2{font-size:1.15rem;color:#1f5a45}.noor #mazeKey{font-size:.75rem;color:#536146}.noor .noor-chapter{font-size:.68rem;letter-spacing:.12em;color:#497354;font-weight:1000;text-transform:uppercase}
.noor-objective{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 10px;font-size:.85rem;font-weight:900;color:#445b4e}
.noor-progress{display:flex;gap:5px}.noor-progress i{width:11px;height:11px;border:2px solid #b1852f;border-radius:4px;background:#fff5d6;transform:rotate(45deg)}.noor-progress i.found{background:#258062;border-color:#1e654e}
.noor .maze-scroll{max-width:440px;margin:auto;overflow:hidden;border:3px solid #699e81;border-radius:19px;padding:7px;background:#e6cfa6;box-shadow:inset 0 2px 8px #6a582924,0 4px 0 #567d641f}
.noor #mazeBoard{min-width:0;gap:2px;grid-template-columns:repeat(var(--cols),minmax(0,1fr));touch-action:pan-y}
.noor .maze-cell{font-size:clamp(12px,2vw,24px);border:0;border-radius:5px;box-shadow:inset 0 -2px #d8c8a5;background:#fbf1d9;overflow:visible}
.noor .maze-cell.wall{border:1px solid #287551;background:radial-gradient(ellipse at 28% 25%,#91d29b 0 12%,transparent 14%),radial-gradient(ellipse at 72% 63%,#4fba80 0 19%,transparent 21%),linear-gradient(140deg,#5eb97f,#32845f);box-shadow:inset 0 3px 0 #aedfb07a,0 2px 1px #496e4333;border-radius:9px 9px 5px 5px}
.noor [data-theme=rose] .maze-cell.wall{background:radial-gradient(circle at 27% 24%,#ffbfd3 0 10%,transparent 13%),radial-gradient(ellipse at 73% 68%,#96c98a 0 21%,transparent 24%),linear-gradient(135deg,#80b181,#42826c)}
.noor [data-theme=moonflower] .maze-cell.wall{background:radial-gradient(circle at 27% 24%,#fff5c4 0 10%,transparent 13%),radial-gradient(ellipse at 73% 68%,#8fc4bb 0 21%,transparent 24%),linear-gradient(135deg,#62aea8,#347773)}
.noor .maze-cell.visited:not(.wall):after{content:'';width:4px;height:4px;border-radius:50%;background:#ae956e65;position:absolute;left:3px;bottom:4px}
.noor .maze-cell svg{width:92%;height:92%;position:absolute;inset:4%;filter:drop-shadow(0 2px 0 #71551b18);pointer-events:none}
.noor .maze-cell.player{z-index:2;background:#f2e6ff;box-shadow:inset 0 0 0 2px #a885d9}
.noor .maze-cell.player svg{width:108%;height:108%;inset:-4%}
.noor .maze-cell.lantern{background:#ffe5a0;box-shadow:inset 0 0 0 1px #eac16a}.noor .maze-cell.lantern:before{display:none}
.noor .maze-cell.key{background:#f4e1ff}.noor .maze-cell.exit{background:#d3ecea;box-shadow:inset 0 0 0 2px #39929e}
.noor #mazeBoard[data-gate=open] .exit{background:#e2f7be;box-shadow:inset 0 0 0 2px #3e8351,0 0 12px #daf06f}
.noor .maze-cell.rock{background:#dedfda}.noor .maze-cell.hint:after{inset:2px;width:auto;height:auto;border:2px dashed #623fa0;background:#f2dfff55;border-radius:5px;z-index:3}
.noor .maze-cell.hint-goal{box-shadow:inset 0 0 0 3px #663eac}.noor .maze-cell.arrived svg{animation:noorHop .18s ease-out}
@keyframes noorHop{0%{transform:translateY(-16%) scale(.88)}65%{transform:translateY(0) scale(1.08)}100%{transform:none}}
.noor .movement-message{min-height:48px;margin-top:8px;padding:8px 10px;background:#f1f6ed;border:1px solid #d9e8d0;border-radius:12px;color:#335341;font-size:.82rem;line-height:1.4}
.noor .movement-message[data-event=collect],.noor .movement-message[data-event=key]{background:#fff2cc;border-color:#e5bf68;color:#714d1e}
.noor .movement-message[data-event=bump]{background:#fff0e8;border-color:#f0c3a5;color:#7b452d}
.noor-controls{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.noor .maze-moves{display:flex;gap:6px;margin:0}.noor .maze-moves button{width:48px;height:48px;min-height:48px;padding:0;font-size:25px;background:#fff;border-color:#bad9cd;color:#185d46;box-shadow:0 3px #c3dacf}
.noor .movement-toolbar{display:flex;flex-wrap:nowrap;gap:6px;margin:0}.noor .movement-toolbar button{font-size:.8rem;padding:8px 10px;min-height:48px}.noor .movement-toolbar #startMaze{padding:9px 16px;font-size:.9rem}
.noor .noor-start-row{display:flex;margin:10px 0 0}.noor .noor-start-row #startMaze{width:100%}.noor .maze-directions{margin-top:6px}.noor .maze-directions summary{min-height:32px;font-size:.72rem}
.noor .movement-pause{padding:10px;font-size:.85rem}.noor .movement-pause button{min-height:44px;padding:8px 12px}
.noor .movement-side{border-color:#c7e4d4;padding:20px}.noor .noor-postcard{height:108px;border-radius:15px;background:#cdebd9 url('/assets/scenes/salam-garden-640.webp') center 57%/cover;margin-bottom:15px;border:2px solid #cce9d3}
.noor .movement-side h2{font-size:1.15rem}.noor .movement-side .movement-legend{grid-template-columns:1fr;font-size:.8rem}.noor .movement-legend svg{width:32px;height:32px;flex:none}.noor .movement-side .practice-note{font-size:.8rem}.noor .movement-side label{font-size:.8rem}
.noor .movement-idea{background:#fffcf0;border-color:#ead498}.noor .movement-idea h2{color:#715621}.noor .movement-idea p{font-size:.87rem}
.noor .maze-bag{gap:7px}.noor .maze-bag button{font-size:.78rem;min-height:44px;padding:8px 12px;border-color:#d7c799;background:#fff;color:#665127;box-shadow:0 3px #e9dfc4}
.noor .maze-bag button[aria-pressed=true]{background:#ede3ff;border-color:#9c78cf;color:#4f278b;box-shadow:0 3px #d2b9ee}
.noor .movement-result{position:relative;background:#fff9e8;border-color:#e5c782}.noor .movement-result h2{font-size:1.5rem}.noor .noor-seal{display:inline-grid;place-items:center;width:66px;height:66px;border-radius:23px;background:#f6d37e;border:3px solid #fff5d3;color:#634d20;font-size:34px;transform:rotate(-7deg);box-shadow:0 5px #e6bf62;margin-bottom:15px}
.noor .noor-recap{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:.8rem;font-weight:900;color:#375948;margin:14px 0}.noor-recap span{padding:6px 10px;background:#edf5e9;border-radius:10px}
.noor .noor-atlas{display:flex;list-style:none;padding:0;margin:14px 0;gap:6px}.noor-atlas li{flex:1;min-width:0;text-align:center;font-size:.68rem;color:#566953;font-weight:800;padding:8px 3px;background:#f3f6ed;border:1px solid #d4dfcc;border-radius:12px}.noor-atlas li[aria-current=step]{background:#ede2ff;border:2px solid #b194d9;color:#56328d}.noor-atlas b{display:block;font-size:18px;margin-bottom:3px}
@media(max-width:760px){.noor .movement-layout{grid-template-columns:1fr}.noor .practice-intro{min-height:118px;padding:16px;background-position:80% 52%;background-size:auto 260px}.noor .practice-intro:before{background:linear-gradient(90deg,#edfff7 8%,#edfff7ed 46%,#edfff788)}.noor .practice-intro p:last-child{font-size:.85rem;margin-top:5px}.noor .practice-intro>span{display:none}.noor .movement-board-card{padding:11px}.noor .movement-stat{padding:5px 3px}.noor .movement-stat span{font-size:.62rem}.noor .movement-stat strong{font-size:1rem}.noor-controls{flex-wrap:wrap;justify-content:center;margin-top:9px;gap:9px}.noor .movement-toolbar{flex:1;justify-content:flex-end}.noor .maze-moves{gap:5px}.noor .maze-moves button{width:44px;height:46px;min-height:46px}.noor .movement-toolbar button{min-height:46px;padding:8px;font-size:.72rem}.noor .movement-message{min-height:48px}.noor .maze-overview h2{font-size:1rem}.noor .maze-scroll{padding:5px}.noor .movement-side .movement-legend{grid-template-columns:1fr 1fr}.noor .noor-postcard{height:135px}.noor .maze-cell.wall{border-radius:5px}.noor #mazePlayArea{scroll-margin-top:68px}}
@media(max-width:410px){.noor .movement-toolbar{flex:0 0 auto}.noor-controls{gap:7px}.noor .movement-toolbar button{padding:7px;min-height:44px}.noor .maze-moves button{width:44px}.noor .maze-moves{gap:4px}.noor .maze-overview{align-items:start}.noor #mazeKey{font-size:.65rem}.noor .noor-objective{font-size:.75rem}.noor-progress{gap:4px}.noor-progress i{width:9px;height:9px}}
@media(max-width:360px){.noor .movement-toolbar{width:100%;justify-content:center}.noor .movement-toolbar button{flex:1}.noor .movement-side .movement-legend{grid-template-columns:1fr}.noor .movement-message{font-size:.78rem}}
@media(max-width:760px) and (max-height:740px){.noor .maze-scroll{max-width:min(100%,calc(100svh - 310px))}.noor .maze-directions{display:none}.noor .movement-message{min-height:44px;font-size:.74rem;padding:5px 8px}.noor .movement-stats{margin-bottom:8px}.noor .maze-overview{margin-bottom:4px}.noor .noor-objective{margin:3px 0 6px}.noor .movement-board-card{padding:8px}.noor .maze-cell svg{filter:none}}
@media(prefers-reduced-motion:reduce){.noor .arrived svg{animation:none}}html[data-sg-calm=true] .noor .arrived svg{animation:none}
/* Short phones keep the entire board and 44px controls in the same view. */
@media(max-width:760px) and (max-height:740px){
 .noor #mazePlayArea[data-state=playing] .movement-stats,.noor #mazePlayArea[data-state=paused] .movement-stats{display:none}
 .noor .maze-scroll{max-width:max(156px,calc(100svh - 355px))}
 .noor .movement-message{height:62px;min-height:62px;overflow:auto}
 .noor-controls{gap:5px;margin-top:6px}.noor .noor-chapter{display:none}
}
/* Landscape uses a side-by-side game deck instead of shrinking the page. */
@media(min-width:500px) and (max-width:1000px) and (max-height:500px){
 .noor .movement-layout{grid-template-columns:1fr}.noor .movement-stats{display:none}
 .noor .movement-board-card{display:grid;grid-template-columns:minmax(156px,calc(100svh - 142px)) minmax(0,1fr);grid-template-areas:'board overview' 'board goal' 'board start' 'board message' 'board controls' 'board pause';gap:4px 10px;padding:8px;align-items:center}
 .noor .maze-scroll{grid-area:board;width:100%;max-width:calc(100svh - 142px);padding:4px;align-self:start}
 .noor .maze-overview{grid-area:overview;margin:0}.noor .noor-chapter{display:none}.noor .noor-objective{grid-area:goal;margin:0}
 .noor .noor-start-row{grid-area:start;margin:0}.noor .movement-message{grid-area:message;height:58px;min-height:58px;font-size:.78rem;overflow:auto;padding:6px 8px;margin:0}
 .noor-controls{grid-area:controls;flex-wrap:nowrap;gap:8px;margin:0}.noor .movement-toolbar{flex:1;width:auto}.noor .maze-moves button{width:44px;height:44px;min-height:44px}.noor .movement-toolbar button{min-height:44px}
 .noor .maze-directions{display:none}.noor .maze-clock{grid-column:2;margin:0}.noor .movement-pause{grid-area:pause;margin:0;padding:4px 8px;font-size:.75rem}
 .noor .movement-side .movement-legend{grid-template-columns:repeat(4,1fr)}
}
.noor .noor-start-row{margin:0 0 10px}
@media(max-width:360px),(min-width:500px) and (max-width:650px) and (max-height:500px){
 .noor-controls{gap:2px;flex-wrap:nowrap}.noor .maze-moves{gap:2px}.noor .movement-toolbar{width:auto;flex:0 0 auto;gap:2px}
 .noor .movement-toolbar button{flex:none;display:flex;flex-direction:column;gap:0;width:44px;height:46px;min-height:46px;padding:2px;font-size:18px;line-height:1.1}
 .noor .movement-toolbar .noor-control-label{font-size:9px;line-height:1.2}.noor .maze-moves button{width:44px}
}
@media(min-width:500px) and (max-width:650px) and (max-height:500px){
 .noor .movement-board-card{row-gap:2px}.noor .movement-message{height:52px;min-height:52px}
 .noor .movement-result{padding:12px;display:grid;grid-template-columns:42px 1fr;gap:5px 10px;text-align:left;align-items:center}
 .noor .noor-seal{width:40px;height:40px;font-size:24px;border-radius:14px;margin:0;grid-row:1/3}.noor .movement-result h2{font-size:1.1rem;margin:0}
 .noor .movement-result p{font-size:.75rem;margin:0}.noor .noor-recap{grid-column:1/-1;margin:2px 0;font-size:.7rem}.noor .noor-recap span{padding:3px 8px}
 .noor .movement-result .practice-actions{grid-column:1/-1}.noor .movement-result button{padding:7px 12px;font-size:.8rem}
}
