@media(max-width:760px){.shepherd-story .story-head h1{margin-top:14px;font-size:1.85rem}.shepherd-story .story-card{display:flex;flex-direction:column;margin-top:18px}.shepherd-story .story-copy{order:1;padding:23px 20px}.shepherd-story .story-image{order:2;min-height:220px}.shepherd-story .story-copy h2{font-size:1.6rem}.shepherd-story .story-copy p{font-size:.94rem;line-height:1.55}.shepherd-story .lesson{margin:14px 0}.shepherd-story .actions{display:grid;grid-template-columns:1fr}.shepherd-story .actions button{width:100%}.mobile-puzzle .puzzle-head h1{font-size:1.6rem}.mobile-puzzle .stat{padding:7px 9px;font-size:.8rem}}
.puzzle-rotate-gate{position:fixed;z-index:1000;inset:0;display:grid;place-items:center;padding:22px;background:#122f2bd9;backdrop-filter:blur(10px)}.puzzle-rotate-gate>div{width:min(390px,100%);padding:30px 24px;border-radius:28px;background:#fffdf7;text-align:center;box-shadow:0 25px 70px #0006}.puzzle-rotate-gate span{font-size:4.5rem}.puzzle-rotate-gate h2{margin:4px 0 9px;font-size:2rem}.puzzle-rotate-gate p:not(.eyebrow){color:#63736d;line-height:1.5}.puzzle-rotate-gate .eyebrow{color:#d86c38}.puzzle-rotate-gate button{width:100%;margin-top:9px}.puzzle-rotate-gate.manual{animation:rotateNudge .5s}.puzzle-rotate-gate.manual span{display:inline-block;animation:phoneTurn 1.2s infinite alternate}
@keyframes phoneTurn{to{transform:rotate(90deg)}}@keyframes rotateNudge{50%{transform:scale(.97)}}
@media(max-width:900px) and (orientation:landscape){.mobile-puzzle{min-height:100vh;background:linear-gradient(90deg,#173f38 0 24%,var(--cream) 24%)}.mobile-puzzle .shell{width:100%;max-width:none;padding:8px 12px}.mobile-puzzle .puzzle-head{position:absolute;left:18px;top:14px;z-index:4;width:21%;display:block}.mobile-puzzle .puzzle-head h1{font-size:clamp(1.35rem,4vw,2rem);line-height:1;margin-top:8px}.mobile-puzzle .stats{margin-top:12px;flex-wrap:wrap}.mobile-puzzle .puzzle-layout{grid-template-columns:minmax(0,1fr) minmax(190px,260px);gap:14px;margin:0 0 0 24%;height:calc(100vh - 16px);align-items:center}.mobile-puzzle .board{justify-self:center;width:100%;max-width:calc((100vh - 28px)*1.6);max-height:calc(100vh - 28px);margin:0}.mobile-puzzle .puzzle-help{padding:15px;border-radius:18px}.mobile-puzzle .preview{display:none}.mobile-puzzle .puzzle-help h2{font-size:1.1rem}.mobile-puzzle .puzzle-help p{margin:7px 0;font-size:.78rem;line-height:1.35}.mobile-puzzle .puzzle-help .actions{display:grid;grid-template-columns:1fr;gap:7px}.mobile-puzzle .puzzle-help button{padding:10px;font-size:.78rem}}

/* En horizontal el tablero domina; título, reloj y controles quedan compactos. */
@media(max-width:900px) and (orientation:landscape){.mobile-puzzle{background:linear-gradient(90deg,#173f38 0 16%,var(--cream) 16%)}.mobile-puzzle .puzzle-head{left:10px;top:10px;width:14%}.mobile-puzzle .puzzle-head h1{font-size:1.15rem}.mobile-puzzle .puzzle-head .stats{display:grid;grid-template-columns:1fr;gap:6px}.mobile-puzzle .puzzle-layout{grid-template-columns:minmax(0,1fr) 172px;gap:9px;margin-left:16%}.mobile-puzzle .board{max-width:calc((100vh - 18px)*1.6);max-height:calc(100vh - 18px)}.mobile-puzzle .puzzle-help{padding:11px}.mobile-puzzle .puzzle-help .eyebrow,.mobile-puzzle .puzzle-help>div>p{display:none}.mobile-puzzle .puzzle-help h2{margin-bottom:12px;font-size:.92rem}.mobile-puzzle .puzzle-help button{padding:9px;font-size:.72rem}}

/* En horizontal se mantiene visible la escena completa como guía. */
@media(max-width:900px) and (orientation:landscape){.mobile-puzzle .puzzle-help{align-self:center;padding:8px}.mobile-puzzle .preview{display:block;width:100%;margin:0 0 12px;border-radius:11px}.mobile-puzzle .puzzle-help h2{margin:7px 2px 11px;font-size:.88rem;line-height:1.15}.mobile-puzzle .puzzle-help .actions{gap:6px}}

/* Corrige la tarjeta lateral cuando también coincide el breakpoint vertical. */
@media(max-width:900px) and (orientation:landscape){.mobile-puzzle .puzzle-layout{grid-template-columns:minmax(0,1fr) 210px}.mobile-puzzle .puzzle-help{display:block!important;width:100%;min-width:0;overflow:hidden}.mobile-puzzle .puzzle-help>div{display:block;width:100%;min-width:0}.mobile-puzzle .preview{display:block!important;width:100%;height:auto;aspect-ratio:1.6;object-fit:cover}.mobile-puzzle .puzzle-help h2{display:block;width:100%;margin:8px 0 10px;text-align:left;white-space:normal}.mobile-puzzle .puzzle-help .actions{display:grid!important;grid-template-columns:1fr!important;grid-column:auto!important;width:100%;gap:7px}.mobile-puzzle .puzzle-help .actions button{display:block;width:100%;min-width:0;margin:0}}

/* Los retos 2 y 3 aprovechan toda la pantalla al girar el teléfono. */
@media(max-width:900px) and (orientation:landscape){.anoint-page .shell,.giant-page .shell{width:100%;max-width:none;padding:7px 10px}.anoint-page .challenge-head,.giant-page .challenge-head{min-height:74px}.anoint-page .challenge-head h1,.giant-page .challenge-head h1{font-size:1.55rem}.anoint-page .instruction,.giant-page .instruction{margin:5px 0 8px;font-size:.8rem}.anoint-page .seek-scene,.giant-page .giant-arena{width:auto;height:calc(100vh - 105px);max-height:none;margin:auto;aspect-ratio:16/10}.anoint-page .seek-scene{background-position:center;background-size:cover}.giant-page .stable-arena{min-height:0}.giant-page .giant-controls{display:none}}

/* Un solo aviso de giro: el bloqueo previo controla la orientación. */
.giant-page .rotate-hint{display:none!important}
.route-node.route-focus{outline:5px solid #f7b733;box-shadow:0 0 0 9px #fff7,0 18px 42px #7b4d2440;transition:box-shadow .25s,outline-color .25s}
.puzzle-loading{min-height:100dvh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 50% 34%,#fff4c9,transparent 28%),#173f38;color:white;text-align:center}.puzzle-loading>div{display:grid;justify-items:center;gap:10px}.puzzle-loading span{font-size:5rem;animation:sheepHop .55s ease-in-out infinite alternate}.puzzle-loading strong{font-size:clamp(1.4rem,5vw,2rem)}.puzzle-loading small{color:#dcefe8;font-size:1rem}.puzzle-loading i{width:150px;height:9px;margin-top:8px;overflow:hidden;border-radius:99px;background:#ffffff2e}.puzzle-loading i:after{content:"";display:block;width:55%;height:100%;border-radius:inherit;background:#f6bd4c;animation:loadSheep .62s ease-in-out infinite alternate}@keyframes sheepHop{to{transform:translateY(-10px) rotate(-3deg)}}@keyframes loadSheep{to{transform:translateX(82%)}}
