.laberinto[data-laberinto]{--lab-tinta:var(--fam,#5e3b5c);--lab-papel:#fffaf0;--lab-pared:#474039;--lab-textura:#6e563712}.laberinto .laberinto__marco{border:1px solid var(--lab-pared);background:var(--lab-papel);box-shadow:0 3px 0 var(--filete), 0 5px 10px -7px #00000073;border-radius:3px}.laberinto .laberinto__tablero{background:radial-gradient(circle, var(--lab-textura) .6px, transparent .9px) 0 0 / 5px 5px}.laberinto .laberinto__paredes{stroke:var(--lab-pared);stroke-width:.085px;stroke-linecap:round;stroke-linejoin:round}.laberinto .laberinto__recorrido{stroke:var(--lab-tinta);stroke-width:.12px;stroke-linecap:round;stroke-linejoin:round}.laberinto .laberinto__solucion{stroke-width:.075px;stroke-linecap:round}.laberinto .laberinto__punto{fill:var(--lab-tinta);stroke:var(--lab-papel);stroke-width:.075px;paint-order:stroke fill;filter:drop-shadow(0 .035px .025px #0006);transition:cx .14s ease-out,cy .14s ease-out}.laberinto--dibujar .laberinto__punto{transition:none}.laberinto .laberinto__celda[aria-current=location]{background:var(--filete-suave);background:color-mix(in srgb, var(--lab-tinta) 12%, var(--lab-papel))}.laberinto .laberinto__celda[data-abierta]:after{border-color:var(--lab-tinta);background:var(--lab-papel)}.laberinto .laberinto__celda:focus-visible{outline-color:var(--lab-tinta)}.laberinto .laberinto__celda[data-extremo]{color:var(--lab-tinta);font-weight:700}.laberinto__celda[data-extremo]:before{content:"";background:var(--lab-tinta);pointer-events:none;width:13px;height:13px;position:absolute;top:3px;right:3px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 21V3h14l-3 4 3 4H5' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 21V3h14l-3 4 3 4H5' fill='none' stroke='black' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 50%/contain no-repeat}.laberinto__celda[data-celda="0"]:before{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h15m-5-5 5 5-5 5M21 3v18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h15m-5-5 5 5-5 5M21 3v18' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E")}.laberinto__leyenda-extremos{color:var(--lab-tinta);font:700 .7rem/1.2 var(--sans);letter-spacing:.08em;text-transform:uppercase;justify-content:space-between;gap:8px;padding:2px 3px 5px;display:flex}.laberinto__leyenda-extremos span{align-items:center;gap:5px;display:inline-flex}.laberinto__leyenda-extremos svg{stroke:currentColor;stroke-width:2px;fill:none;stroke-linecap:round;stroke-linejoin:round;width:18px;height:18px}.laberinto[data-mapa-abierto] .laberinto__leyenda-extremos{display:none}.laberinto .laberinto__direcciones{grid-template-rows:repeat(3,auto);grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;width:min(100%,252px);margin:6px auto 0}.laberinto__direcciones:before{content:"";border:4px double var(--lab-tinta);background:color-mix(in srgb, var(--lab-tinta) 15%, var(--papel));border-radius:50%;grid-area:2/2;place-self:center;width:18px;height:18px}.laberinto .laberinto__direcciones [data-direccion=N]{grid-area:1/2}.laberinto .laberinto__direcciones [data-direccion=O]{grid-area:2/1}.laberinto .laberinto__direcciones [data-direccion=E]{grid-area:2/3}.laberinto .laberinto__direcciones [data-direccion=S]{grid-area:3/2}.laberinto .laberinto__direcciones button{border:1px solid var(--lab-tinta);background:var(--papel-claro);min-width:48px;min-height:48px;color:var(--tinta-suave);box-shadow:inset 0 2px 0 color-mix(in srgb, var(--tinta) 8%, var(--papel-claro)), 0 2px 0 var(--filete);border-radius:7px;transition:background-color .1s,box-shadow .1s}.laberinto .laberinto__direcciones button[aria-disabled=false]{color:var(--papel-claro);background:var(--lab-tinta);box-shadow:inset 0 2px 0 #fff3, 0 2px 0 var(--lab-pared);outline:0}.laberinto .laberinto__direcciones button[aria-disabled=true]{border-style:dashed}.laberinto .laberinto__direcciones button[aria-disabled=false]:active{box-shadow:inset 0 2px 4px #00000059}.laberinto .laberinto__direcciones button:focus-visible{outline:3px dashed var(--lab-tinta);outline-offset:2px}.laberinto .laberinto__direcciones button[aria-disabled=false]:focus-visible{outline-color:var(--papel-claro);outline-offset:-5px}.laberinto .marco__estado{flex-wrap:wrap;gap:4px 12px}.laberinto [data-movimientos]{color:var(--lab-tinta);font-variant-numeric:tabular-nums;font-size:1.1rem}.laberinto .laberinto__mapa{background:var(--lab-papel);border-color:var(--lab-pared)}@media (width<=899px){:root:not([data-letra=grande]) .laberinto[data-nivel-actual=facil]:not(.laberinto--ampliado) .marco[data-enfoque] .laberinto__vista{width:min(100%,max(160px,100dvh - 410px));margin-inline:auto}}@media (width>=900px){.laberinto .laberinto__entrada{border-block:3px double var(--filete);padding:16px}.laberinto .laberinto__direcciones{gap:8px;margin-top:16px}.laberinto .laberinto__direcciones button{min-height:64px}}@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .laberinto{--lab-tinta:#d9aed3;--lab-papel:#242225;--lab-pared:#d6ccba;--lab-textura:#f5e5cb12}}:root[data-theme=dark] .laberinto{--lab-tinta:#d9aed3;--lab-papel:#242225;--lab-pared:#d6ccba;--lab-textura:#f5e5cb12}@media (prefers-reduced-motion:reduce){.laberinto *,.laberinto :before,.laberinto :after{transition:none!important;animation:none!important}}.laberinto{--celda-lab:48px;min-width:0}.laberinto [hidden]{display:none!important}.laberinto--ampliado,:root[data-letra=grande] .laberinto{--celda-lab:56px}.laberinto__controles{border:0;min-width:0;margin:0;padding:0}.laberinto__juego,.laberinto__vista{min-width:0}.laberinto .marco__estado{gap:4px;font-size:.8rem}.laberinto .marco__herramientas [data-marco-ajustes]{display:none}.laberinto .marco__barra{margin-inline:0}.laberinto .marco-accion{overflow-wrap:anywhere;min-width:48px}.laberinto .boton{text-align:center;min-width:48px;max-width:100%;padding:8px 12px}.laberinto button[aria-pressed=true]{background:var(--azul-oscuro);color:var(--sobre-azul)}.laberinto__interruptor{align-items:center;gap:8px;min-height:48px;display:flex}.laberinto__interruptor input{width:22px;height:22px}.laberinto__marco{border:1px solid var(--tinta);overscroll-behavior:contain;overflow-anchor:none;scroll-behavior:auto;background:var(--papel-claro);width:100%;max-width:100%;height:clamp(240px,100dvh - 300px,440px);padding:2px;overflow:auto}.laberinto select{min-width:0;max-width:100%;font-size:max(16px,1rem)}.laberinto__tablero{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;grid-template-columns:repeat(var(--columnas), var(--celda-lab));touch-action:pan-x pan-y pinch-zoom;-webkit-user-select:none;user-select:none;width:max-content;display:grid;position:relative}.laberinto--dibujar:not(.laberinto--desplazar) .laberinto__tablero{touch-action:pinch-zoom}.laberinto__fila{display:contents}.laberinto .laberinto__celda{width:var(--celda-lab);height:var(--celda-lab);color:var(--tinta);font:700 1rem var(--sans);cursor:pointer;background:0 0;border:0;border-radius:0;place-items:center;padding:0;display:grid;position:relative}.laberinto .laberinto__celda[data-extremo]{place-items:start;padding:3px;font-size:.75rem}.laberinto__celda:focus-visible{outline:3px solid var(--azul);outline-offset:-4px;z-index:2}.laberinto__celda[aria-current=location]{background:color-mix(in srgb, var(--azul) 14%, var(--papel-claro))}.laberinto__celda[data-abierta]:after{content:"";border:2px solid var(--azul);border-radius:50%;width:25%;height:25%;position:absolute;top:38%;left:38%}.laberinto__trazos{pointer-events:none;fill:none;width:100%;height:100%;position:absolute;inset:0;overflow:visible}.laberinto__paredes{stroke:var(--tinta);stroke-width:.055px}.laberinto__recorrido{stroke:var(--azul);stroke-width:.1px;stroke-linejoin:round;stroke-linecap:round;fill:none}.laberinto__solucion{stroke:var(--granate);stroke-width:.07px;stroke-dasharray:.14 .12;fill:none}.laberinto__punto{fill:var(--azul);stroke:var(--papel-claro);stroke-width:.06px}.laberinto__ayuda,.laberinto__pasos{min-height:1.4em;margin:4px 0;font-size:.8rem;line-height:1.4}.laberinto__direcciones{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:4px;display:grid}.laberinto__direcciones button{border:1px solid var(--tinta);background:var(--papel-claro);border-radius:4px;flex-direction:column;justify-content:center;align-items:center;min-width:56px;min-height:56px;padding:2px;font-size:.75rem;display:flex}.laberinto__direcciones button>span:first-child{font-size:1.4rem;line-height:1.1}.laberinto__direcciones button[aria-disabled=false]{outline:2px solid var(--azul);outline-offset:-3px;color:var(--azul)}.laberinto__direcciones button[aria-disabled=true]>span:first-child{text-decoration:line-through}.laberinto__direcciones button:active{background:var(--filete-suave)}.laberinto__aviso{min-height:3em;font-size:.9rem}.laberinto [data-continuada]{font-size:.85rem}.laberinto__fin{font-family:var(--serif)}.laberinto__mapa{background:var(--papel-claro);border:1px solid var(--tinta);padding:4px}.laberinto__mapa>svg{aspect-ratio:1;fill:none;width:100%;max-height:360px}.laberinto__mapa text{fill:var(--tinta);font:700 .65px var(--sans)}.laberinto__mapa p{margin:4px 0;font-size:.8rem}.laberinto__paginas{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.laberinto[data-nivel-actual=facil]:not(.laberinto--ampliado) .laberinto__marco{height:auto;max-height:none}.laberinto[data-nivel-actual=facil]:not(.laberinto--ampliado) .laberinto__tablero{aspect-ratio:1;grid-template-columns:repeat(10,minmax(0,1fr));width:100%}.laberinto[data-nivel-actual=facil]:not(.laberinto--ampliado) .laberinto__celda{aspect-ratio:1;width:auto;height:auto}.laberinto[data-mapa-abierto] .laberinto__marco{visibility:hidden;pointer-events:none;position:absolute}.laberinto__vista{position:relative}:root[data-letra=grande] .laberinto .laberinto__marco{height:clamp(240px,100dvh - 300px,440px)}:root[data-letra=grande] .laberinto .laberinto__tablero{grid-template-columns:repeat(var(--columnas), var(--celda-lab));width:max-content}:root[data-letra=grande] .laberinto .laberinto__celda{width:var(--celda-lab);height:var(--celda-lab)}@media (width<=640px){.laberinto__controles>.marco{margin-inline:-12px}.laberinto .marco[data-enfoque]{margin:0;padding-inline:4px}.laberinto .marco[data-enfoque] .marco__tablero{flex:0;justify-content:start}.laberinto .marco[data-enfoque] .marco__barra{margin:auto 0 0}}@media (width>=900px){.laberinto__juego{grid-template-columns:minmax(0,36rem) minmax(0,20rem);align-items:center;gap:24px;display:grid}.laberinto__direcciones button{min-height:64px}}@media (prefers-reduced-motion:reduce){.laberinto *,.laberinto :before,.laberinto :after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
