.adventure{position:absolute;inset:0;z-index:30;background:#17333b;isolation:isolate}.adventure canvas{width:100%;height:100%;object-fit:fill;outline:none}.adventure-active>.room-camera,.adventure-active>.luna-speech,.adventure-active>.hotspot,.adventure-active>.location-tag,.adventure-active>.scene-status{visibility:hidden}.adventure-top{position:absolute;inset:12px 14px auto;display:flex;justify-content:space-between;align-items:center;gap:12px}.adventure-title{background:#10262bea;color:#fff;padding:8px 12px;border-radius:5px;font-size:14px;max-width:65%}.adventure-targets button{position:absolute;transform:translate(-50%,-100%);font-size:13px;padding:5px 8px;background:#142d3ce8;color:white;border:1px solid #809693;border-radius:5px;white-space:nowrap}.adventure-targets button.near{border-color:#ffe08a;box-shadow:0 0 0 2px #ffe08a;color:#ffe08a}.adventure-bottom{position:absolute;bottom:8px;left:12px;right:12px;display:flex;justify-content:space-between;gap:8px;align-items:end;pointer-events:none}.adventure-goal{background:#142d3cef;color:white;padding:7px 10px;border-radius:5px;font-size:14px;margin:0;max-width:42%}.adventure-controls{display:flex;gap:4px;pointer-events:auto}.adventure-controls button{min-width:34px;padding:8px;touch-action:none}.adventure-controls .primary{max-width:230px;font-size:13px}.adventure-talk{position:absolute;transform:translateX(-50%);width:min(390px,75%);background:#132d3bf5;border:2px solid #eec66d;border-radius:12px;padding:15px;color:white;z-index:6;box-shadow:0 8px 28px #0007}.adventure-talk strong{color:#ffdd86}.adventure-talk p{margin:7px 0;font-size:16px}.adventure-cinema{position:absolute;inset:5%;overflow:auto;background:#10212cfb;border:2px solid #efcc7f;border-radius:12px;z-index:5;text-align:center;padding:20px;color:white}.adventure-cinema video{display:block;width:100%;max-height:55vh;margin:10px auto}.patio-door-hint{position:absolute;right:3%;top:54%;z-index:5;font-size:14px}.adventure-cinema[hidden],.adventure-talk[hidden]{display:none}@media(max-width:600px){.adventure-targets button{font-size:11px;max-width:110px;white-space:normal}.adventure-top{inset:5px}.adventure-title{font-size:12px}.adventure-goal{display:none}.adventure-bottom{justify-content:center;bottom:3px}.adventure-controls button{padding:5px}.adventure-talk{padding:9px}.adventure-talk p{font-size:14px}.adventure-top button{font-size:12px;padding:6px}}

.adventure-active>.patio-door-hint,.luna-welcoming>.patio-door-hint,.dancing-in-room>.patio-door-hint{display:none}

/* Physical projector pieces replace the floating word labels. */
.adventure-targets .adventure-collectible{width:clamp(44px,8%,86px);padding:0;border:0;border-radius:0;background:transparent;white-space:normal;touch-action:manipulation;filter:drop-shadow(0 2px 1px #18252d55);transition:filter .15s}
.adventure-targets .adventure-collectible[data-target="cable"]{width:clamp(52px,11%,110px)}
.adventure-targets .adventure-collectible[data-target="remote"]{width:clamp(42px,6.8%,72px)}
.adventure-collectible img{display:block;width:100%;height:auto;pointer-events:none;user-select:none}
.adventure-targets .adventure-collectible.near,.adventure-targets .adventure-collectible:hover{background:transparent;box-shadow:none;filter:drop-shadow(0 0 3px #fff2bb) drop-shadow(0 0 7px #e9bd61)}
.adventure-targets .adventure-collectible:focus-visible{outline:2px dashed #ffe08a;outline-offset:4px;border-radius:12px}

.patio-decor-layer{position:absolute;inset:0;pointer-events:none}.patio-decoration{position:absolute;transform:translate(-50%,-100%);width:7%;height:auto;filter:drop-shadow(0 2px 1px #20303933)}.adventure-targets [data-target="dance"]{width:16%;max-width:none}.adventure-targets [data-target="decorate"]{width:3.2%;min-width:24px}.adventure-targets .patio-wall-poster{width:5.2%;height:13%;padding:4px;background:#5e4534;border:2px solid #bc9570;filter:drop-shadow(1px 2px 1px #172b3b44)}.patio-wall-poster img{width:100%;height:100%;object-fit:contain;background:#eee6d0}.patio-inventory{position:absolute;inset:7%;z-index:10;background:#eef3e8;color:#193843;border:3px solid #c69e63;border-radius:12px;padding:16px;overflow:auto}.patio-inventory[hidden],.patio-cancel[hidden]{display:none}.patio-inventory header{display:flex;justify-content:space-between;gap:10px;align-items:center}.patio-reward-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.patio-reward-grid article{display:flex;flex-direction:column;align-items:center;gap:6px;background:#fff9e9;border-radius:10px;padding:10px}.patio-reward-grid img{height:65px}.patio-reward-grid .locked{opacity:.55}.patio-reward-grid small{text-align:center}.patio-cancel{position:absolute;top:60px;left:15px;z-index:8}.adventure-top{z-index:3}.patio-dance-dj{position:absolute;left:25.5208%;top:86.1111%;width:16%;transform:translate(-50%,-100%)}.patio-dance-switch{position:absolute;left:20.625%;top:25.926%;width:3.2%;transform:translate(-50%,-100%)}.patio-dance-poster{position:absolute;left:78.125%;top:26.85%;width:5.2%;height:13%;transform:translate(-50%,-100%);object-fit:contain;box-sizing:border-box;padding:4px;border:2px solid #bc9570;background:#eee6d0}.room-dance>.patio-decor-layer{z-index:0}.arcade-reward{display:flex;align-items:center;gap:12px;max-width:90%;font-size:16px}.arcade-reward img{height:70px}@media(max-width:600px){.patio-inventory{inset:3%;padding:8px}.patio-reward-grid{gap:5px}.patio-reward-grid img{height:40px}.patio-reward-grid article{padding:5px;font-size:12px}.patio-reward-grid button{padding:6px;font-size:12px}}

/* Zonas interactivas alineadas con los objetos del escenario. */
.adventure-targets button.adventure-outline{transform:none;max-width:none;min-width:24px;min-height:24px;padding:0;border:2px solid #ffe08a80;border-radius:5px;background:transparent;box-shadow:0 0 5px #e9bd6133;transition:border-color .15s,box-shadow .15s}
.adventure-targets button.adventure-outline:hover,.adventure-targets button.adventure-outline.near,.adventure-targets button.adventure-outline:focus-visible{background:transparent;border-color:#fff2bb;box-shadow:0 0 3px #fff2bb,0 0 9px #e9bd61}
.adventure-targets button.adventure-outline:focus-visible{outline:2px solid #ffe08a;outline-offset:3px}
.adventure-outline span{font-size:24px;color:#fff2bb;text-shadow:0 1px 4px #142d3c}

.adventure-targets .adventure-collectible{filter:drop-shadow(1px 0 0 #ffe08a99) drop-shadow(-1px 0 0 #ffe08a99) drop-shadow(0 1px 0 #ffe08a99) drop-shadow(0 -1px 0 #ffe08a99)}
.adventure-targets .adventure-collectible:hover,.adventure-targets .adventure-collectible.near,.adventure-targets .adventure-collectible:focus-visible{filter:drop-shadow(0 0 3px #fff2bb) drop-shadow(0 0 7px #e9bd61)}
.scene .patio-door-hint{background:transparent;border:2px solid #ffe08a99;color:#fff2bb;box-shadow:0 0 5px #e9bd6140;width:5.4%;height:24%;top:44.4%;right:6%;padding:0;font-size:24px;text-shadow:0 1px 4px #142d3c}
.scene .patio-door-hint:hover,.scene .patio-door-hint:focus-visible{background:transparent;border-color:#fff2bb;box-shadow:0 0 3px #fff2bb,0 0 9px #e9bd61;outline:2px solid #ffe08a;outline-offset:3px}

/* Lola sigue siendo interactiva, sin marco alrededor del personaje. */
.adventure-targets button.adventure-outline[data-target="lola"],.adventure-targets button.adventure-outline[data-target="lola"]:is(:hover,:focus-visible,.near){border:0;outline:none;box-shadow:none;background:transparent}

/* La guitarra se descubre al acercarse con el personaje. */
.adventure-targets button.adventure-outline[data-target="guitar"]{border:0;box-shadow:none;background:transparent}
.adventure-targets button.adventure-outline[data-target="guitar"].near,.adventure-targets button.adventure-outline[data-target="guitar"]:focus-visible{border:1px solid #ffe08a99;box-shadow:0 0 5px #e9bd6155}

/* La iluminación de las decoraciones comparte los tintes del patio; el personaje conserva su renderizado. */
[data-patio-light="0"]{--patio-object-light:brightness(1)}
[data-patio-light="1"]{--patio-object-light:url("assets/patio-lighting.svg#gold")}
[data-patio-light="2"]{--patio-object-light:url("assets/patio-lighting.svg#violet")}
.adventure .patio-decoration,.patio-dance .patio-decoration{filter:var(--patio-object-light) drop-shadow(0 3px 2px #30263840)}
.adventure-targets .adventure-collectible img,.patio-dance-dj,.patio-dance-switch,.patio-dance-poster{filter:var(--patio-object-light,brightness(1))}
.adventure-targets [data-target="dance"]{filter:drop-shadow(0 3px 2px #30263840)}
.adventure-targets [data-target="dance"]:is(:hover,.near,:focus-visible){filter:drop-shadow(0 0 3px #fff2bb) drop-shadow(0 0 7px #e9bd61)}

/* Vista previa al transportar una decoración, sin modificar el dibujo del personaje. */
.patio-placement-preview{position:absolute;width:7%;transform:translate(-50%,-100%);pointer-events:none;z-index:2}
.patio-placement-preview[hidden]{display:none}
.patio-placement-preview img{display:block;width:100%;opacity:.8;filter:var(--patio-object-light,brightness(1)) drop-shadow(0 0 3px #a7e3bc)}
.patio-placement-preview span{position:absolute;left:50%;top:100%;transform:translateX(-50%);white-space:nowrap;font-size:12px;padding:3px 7px;border-radius:4px;background:#173d2e;color:#e4ffe9;border:1px solid #a7e3bc}
.patio-placement-preview[data-valid="false"] img{opacity:.5}
.patio-placement-preview[data-valid="false"] span{background:#662e35;color:#fff;border-color:#ffb3b3}
.adventure .patio-decoration.decoration-near{filter:var(--patio-object-light,brightness(1)) drop-shadow(0 0 4px #ffe08a)}
.placing-decoration .adventure-goal{display:block;font-size:12px;max-width:52%}
@media(max-width:600px){.placing-decoration .adventure-bottom{flex-wrap:wrap}.placing-decoration .adventure-goal{max-width:100%;text-align:center}.patio-placement-preview span{font-size:10px}}

/* Sombras de apoyo bajo los píxeles visibles, respetando los márgenes transparentes. */
.patio-prop{position:absolute;width:7%;transform:translate(-50%,-100%);isolation:isolate;--ground:10%;--contact:48%}
.patio-prop .patio-decoration{position:relative;display:block;width:100%;height:auto;transform:none;z-index:1}
.patio-prop::before,.patio-prop::after,.patio-placement-preview::before{content:"";position:absolute;pointer-events:none;left:50%;bottom:calc(var(--ground,10%) - 4%);width:var(--contact,48%);height:9%;border-radius:50%;transform:translateX(-50%);background:radial-gradient(ellipse,rgba(var(--shadow-rgb,39,30,38),.52) 0%,rgba(var(--shadow-rgb,39,30,38),.28) 35%,rgba(var(--shadow-rgb,39,30,38),0) 73%)}
.patio-prop::after{width:calc(var(--contact,48%) * 1.35);height:12%;bottom:calc(var(--ground,10%) - 5%);transform:translateX(-38%) skewX(-20deg);opacity:.5}
[data-patio-light="1"]{--shadow-rgb:62,39,30}
[data-patio-light="2"]{--shadow-rgb:37,25,56}
:is([data-reward="plush"],[data-preview-reward="plush"]){--ground:10%;--contact:63%}
:is([data-reward="robot"],[data-preview-reward="robot"]){--ground:8%;--contact:40%}
:is([data-reward="trophy"],[data-preview-reward="trophy"]){--ground:16%;--contact:38%}
:is([data-reward="cactus"],[data-preview-reward="cactus"]){--ground:9%;--contact:34%}
:is([data-reward="lantern"],[data-preview-reward="lantern"]){--ground:8%;--contact:28%}
:is([data-reward="speaker"],[data-preview-reward="speaker"]){--ground:14%;--contact:49%}
:is([data-reward="flowers"],[data-preview-reward="flowers"]){--ground:9%;--contact:43%}
:is([data-reward="pinwheel"],[data-preview-reward="pinwheel"]){--ground:11%;--contact:27%}
:is([data-reward="ball"],[data-preview-reward="ball"]){--ground:21%;--contact:40%}
.adventure .patio-prop.decoration-near .patio-decoration{filter:var(--patio-object-light,brightness(1)) drop-shadow(0 0 4px #ffe08a)}
.patio-placement-preview img{position:relative;z-index:1}
.patio-placement-preview span{z-index:2}
.patio-placement-preview[data-valid="false"]::before{opacity:.35}
.adventure-targets [data-target="dance"],.patio-dance-dj{isolation:isolate}
.adventure-targets [data-target="dance"]::before,.patio-dance-dj::before{content:"";position:absolute;pointer-events:none;left:9%;bottom:8%;width:84%;height:13%;border-radius:50%;background:radial-gradient(ellipse,rgba(var(--shadow-rgb,39,30,38),.36) 10%,rgba(var(--shadow-rgb,39,30,38),.17) 45%,transparent 74%);transform:skewX(-15deg)}
.adventure-targets [data-target="dance"]::after,.patio-dance-dj::after{content:"";position:absolute;pointer-events:none;left:10%;bottom:9%;width:80%;height:5%;background:radial-gradient(ellipse at 5% 50%,rgba(var(--shadow-rgb,39,30,38),.55),transparent 13%),radial-gradient(ellipse at 95% 50%,rgba(var(--shadow-rgb,39,30,38),.55),transparent 13%)}
.adventure-targets [data-target="dance"] img,.patio-dance-dj img{position:relative;display:block;width:100%;height:auto;z-index:1}
.patio-dance-dj{filter:none}
.patio-dance-dj img{filter:var(--patio-object-light,brightness(1))}

/* La profundidad se ordena por los pies; los controles quedan sobre el mundo. */
.adventure .adventure-actor-layer{position:absolute;inset:0;pointer-events:none}
.adventure .adventure-actor-layer[hidden]{display:none}
.adventure .patio-decor-layer,.adventure .adventure-targets{z-index:auto}
.adventure .adventure-top,.adventure .adventure-bottom{z-index:2000}
.adventure .patio-placement-preview{z-index:1200}
.adventure .patio-cancel{z-index:2100}
.adventure .adventure-talk{z-index:2200}
.adventure .adventure-cinema{z-index:2300}
.adventure .patio-inventory{z-index:2400}

/* Portal propio de cada grupo, animado con cuatro fotogramas. */
.adventure-targets button.magic-portal{width:8.25%;height:22%;max-width:none;padding:0;border:0;background:transparent;box-shadow:none;transform:translate(-50%,-100%);transform-origin:50% 100%;transition:width .8s,height .8s;filter:drop-shadow(0 0 6px #68dbff)}
.adventure-targets button.magic-portal.is-open{width:12%;height:32%;filter:drop-shadow(0 0 7px #68dbff)}
.magic-portal-sprite{display:block;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}
.adventure-targets button.magic-portal:is(.near,:hover,:focus-visible){outline:2px dashed #c6f6ff;outline-offset:3px;border-radius:50%;box-shadow:0 0 16px #61cfff66}
.magic-portal-panel{position:absolute;inset:0;z-index:2600;display:grid;place-items:center;padding:16px;background:#091629d9;color:#f0faff;overflow:auto}
.magic-portal-panel[hidden]{display:none}
.portal-card{width:min(520px,100%);max-height:100%;overflow:auto;padding:24px;border:1px solid #72dcff;border-radius:20px;background:linear-gradient(145deg,#142e49,#171b38);box-shadow:0 0 45px #48caff26;text-align:center}
.portal-eyebrow{font-size:11px;letter-spacing:.15em;color:#92e8ff}.portal-card h3{font-size:25px;margin:10px 0}.portal-card p{line-height:1.5}.portal-answers{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:20px 0}.portal-feedback{min-height:1.5em;color:#ffe09b}.portal-card .button-row{justify-content:center}.portal-card .text-button{color:#b0eaff}
@media(max-width:600px){.portal-card{padding:12px}.portal-card h3{font-size:19px}.portal-card p{font-size:13px;margin:8px 0}.portal-answers{margin:10px 0;gap:6px}}
@media(prefers-reduced-motion:reduce){.magic-portal-sprite{animation:none}.adventure-targets button.magic-portal{transition:none}}

.adventure-targets button.magic-portal.portal-opening{animation:portal-opening .9s ease-out both}
@keyframes portal-opening{from{transform:translate(-50%,-100%) scale(.5,.5)}to{transform:translate(-50%,-100%) scale(1)}}
@media(prefers-reduced-motion:reduce){.adventure-targets button.magic-portal.portal-opening{animation:none}}

/* El mundo lateral de Test usa el mismo marco y controles táctiles del juego. */
.test-platformer{position:absolute;inset:0;z-index:40;background:#70c8f3;isolation:isolate;overflow:hidden}
.test-platformer>canvas{display:block;width:100%;height:100%;image-rendering:pixelated;outline:none}
.platform-hud{position:absolute;top:12px;left:12px;right:12px;display:flex;align-items:center;gap:12px;font:700 14px monospace;color:#fff9dd;text-shadow:2px 2px #243450}
.platform-hud strong{background:#223555ed;border:2px solid #fff1bc;padding:9px 12px}.platform-score{flex:1}.platform-hud button{font-size:12px;padding:7px 10px}
.platform-touch{position:absolute;bottom:12px;left:16px;right:16px;display:flex;gap:10px;pointer-events:none}.platform-touch button{pointer-events:auto;touch-action:none;min-width:60px;min-height:48px;font-size:20px;background:#253957e8;color:#fff4c3;border:2px solid #fff1bc;border-radius:8px}.platform-touch button:last-child{margin-left:auto;min-width:112px}
.platform-message{position:absolute;top:70px;left:50%;transform:translateX(-50%);background:#21344bdc;color:#fff6d1;font-weight:bold;padding:8px 14px;text-align:center;border-radius:6px}.platform-message:empty{display:none}
.platform-panel{position:absolute;inset:0;z-index:5;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:24px;background:#14243de8;color:#fff5d0;text-align:center;overflow:auto}.platform-panel[hidden]{display:none}.platform-panel h3{font:700 30px monospace;margin:0}.platform-panel p{margin:0;max-width:550px;line-height:1.5}.platform-panel .button-row{justify-content:center}
.test-platformer-active>.room-camera,.test-platformer-active>.luna-speech,.test-platformer-active>.hotspot,.test-platformer-active>.location-tag,.test-platformer-active>.scene-status,.test-platformer-active>.patio-door-hint{visibility:hidden}
@media(max-width:650px){.platform-hud{top:5px;left:5px;right:5px;gap:5px;flex-wrap:wrap;font-size:10px}.platform-hud strong{padding:5px}.platform-hud button{padding:5px;font-size:10px}.platform-touch{bottom:6px;left:6px;right:6px;gap:6px}.platform-touch button{min-height:38px;min-width:44px;font-size:16px}.platform-panel{padding:12px;gap:8px}.platform-panel h3{font-size:20px}.platform-panel p{font-size:12px}.platform-message{top:58px;font-size:12px}}

/* Salihs: interfaz de cuento, aislada de los otros mundos. */
.salihs-world{background:#142e31;font-family:"Trebuchet MS",sans-serif}
.salihs-world>canvas{object-fit:contain;background:#142e31}
.salihs-world .platform-hud{top:14px;left:18px;right:18px;gap:10px;text-shadow:none;font:700 13px "Trebuchet MS",sans-serif}
.salihs-world .platform-hud strong{border:1px solid #dcc4928c;border-radius:10px;padding:8px 15px;background:#173e40ee;color:#fff0cc;letter-spacing:2px;font-size:19px;box-shadow:0 4px 14px #102c3938}
.salihs-world .platform-hud small{display:block;font-size:8px;letter-spacing:1.8px;margin-bottom:2px;color:#d5c38e}
.salihs-world .platform-score{color:#fff5d8;background:#183b3ddb;padding:10px 12px;border-radius:8px;flex:0 1 auto;margin-right:auto}
.salihs-world .platform-hud button{border:1px solid #e4d2ab80;background:#1c4041ed;color:#fff4d8;border-radius:8px;padding:9px 12px}
.salihs-week{position:absolute;top:77px;left:50%;transform:translateX(-50%);display:flex;gap:5px;margin:0;padding:0;list-style:none;pointer-events:none}
.salihs-week li{display:flex;align-items:center;gap:6px;color:#eee2c6;background:#193c40d9;border:1px solid #bba77955;border-radius:6px;padding:6px 10px;font-size:11px;font-weight:bold;box-shadow:0 3px 6px #112c3320}
.salihs-week li span{font-size:9px;opacity:.65}.salihs-week li.current{background:#f4dca1;color:#193e40;border-color:#fff0c4;transform:translateY(-2px)}.salihs-week li.done{background:#4c7061;color:#f6e3b1}.salihs-week li.done span{font-size:0;opacity:1}.salihs-week li.done span:after{content:'✓';font-size:12px}
.salihs-world .platform-message{top:auto;bottom:19px;max-width:52%;width:max-content;padding:9px 14px;background:#183c40eb;border:1px solid #d7bf8770;box-shadow:0 4px 16px #142a3630;color:#fff1d2;font-size:12px;border-radius:8px}
.salihs-world .platform-touch{bottom:16px;left:18px;right:18px;gap:8px}
.salihs-world .platform-touch button{background:linear-gradient(#315a5b,#173c40);border:1px solid #e0c58d;border-bottom:4px solid #102f32;border-radius:10px;color:#fff2d0;box-shadow:0 4px 12px #112e3540;font-size:18px;min-height:45px}
.salihs-world .platform-panel{background:linear-gradient(90deg,#102c3866,#102c3820);padding:28px;justify-content:flex-end;padding-bottom:88px}
.salihs-card-shell{width:min(700px,95%);display:grid;grid-template-columns:160px 1fr;gap:24px;align-items:center;background:linear-gradient(125deg,#ffefd5fa,#f1ddbbfa);border:1px solid #fff4dc;border-radius:16px;box-shadow:0 18px 60px #0b25375c,inset 0 0 0 5px #d5bc8b38;padding:25px;text-align:left;color:#214447}
.salihs-card-shell.without-portrait{grid-template-columns:1fr;max-width:510px;text-align:center}
.salihs-card-copy{min-width:0}.salihs-eyebrow{display:block;color:#7c6850;font-size:9px;font-weight:bold;letter-spacing:2px;margin-bottom:12px}
.salihs-world .platform-panel h3{font:700 29px Georgia,serif;color:#214447;line-height:1.12;margin:0 0 12px}
.salihs-world .platform-panel p{font-size:14px;line-height:1.6;color:#40595a}
.salihs-card-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.without-portrait .salihs-card-actions{justify-content:center}
.salihs-world .salihs-card-actions .primary{background:#244c4e;color:#fff0cc;border:1px solid #173d3f;border-radius:8px;padding:10px 16px;font-size:13px;box-shadow:0 3px 0 #122e31}
.salihs-world .salihs-card-actions .secondary{border:0;background:transparent;color:#566461;font-size:11px;padding:8px}
.salihs-world .salihs-portrait{width:160px;height:190px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 5px 7px #31504a33);border-radius:9px}
.salihs-world canvas.salihs-portrait{image-rendering:pixelated}
.salihs-world .salihs-ending{background:linear-gradient(#102b3e88,transparent 40%);justify-content:flex-start;padding-top:25px;pointer-events:none;animation:salihs-reveal .8s ease-out;padding-bottom:20px}
.salihs-world .salihs-ending h3{font:700 28px Georgia,serif;color:#ffe8b3;text-shadow:0 2px 12px #0f2329;letter-spacing:3px;margin:0}
.salihs-world .salihs-ending p{max-width:590px;color:#fff0ce;background:#153e3fdb;border:1px solid #d7c49355;padding:9px 18px;border-radius:8px;font-size:13px}
.salihs-ending button{pointer-events:auto;margin-top:auto;background:#f1d395;color:#173b3f;border-radius:8px;box-shadow:0 4px 18px #13292b55}
.salihs-finished .platform-hud,.salihs-finished .platform-touch,.salihs-finished .salihs-week{visibility:hidden}
@keyframes salihs-reveal{from{background-color:#102229}to{background-color:transparent}}
@media(prefers-reduced-motion:reduce){.salihs-world .salihs-ending{animation:none}}
@media(max-width:650px){
 .salihs-world .platform-hud{top:6px;left:6px;right:6px;gap:5px;flex-wrap:wrap}.salihs-world .platform-hud strong{font-size:13px;padding:6px 9px}.salihs-world .platform-hud small{font-size:6px}.salihs-world .platform-score{font-size:10px;padding:8px}.salihs-world .platform-hud button{padding:6px;font-size:10px}
 .salihs-week{top:86px;gap:3px;width:calc(100% - 12px);justify-content:center}.salihs-week li{font-size:9px;padding:5px;gap:3px}.salihs-week li span{display:none}
 .salihs-world .platform-message{bottom:64px;max-width:92%;font-size:10px;padding:7px 10px}
 .salihs-world .platform-touch{bottom:10px;left:10px;right:10px}.salihs-world .platform-touch button{font-size:15px;min-height:42px}
 .salihs-world .platform-panel{padding:12px;justify-content:center}.salihs-card-shell{padding:18px;gap:12px;grid-template-columns:80px 1fr;width:100%}.salihs-world .salihs-portrait{width:80px;height:120px}.salihs-world .platform-panel h3{font-size:21px}.salihs-world .platform-panel p{font-size:12px}.salihs-eyebrow{font-size:7px;letter-spacing:1px;margin-bottom:8px}.salihs-card-actions{margin-top:12px;gap:5px}.salihs-world .salihs-card-actions .primary{font-size:12px;padding:8px 10px}
 .salihs-world .salihs-ending{justify-content:flex-start;padding:16px 10px}.salihs-world .salihs-ending h3{font-size:22px;letter-spacing:1px}.salihs-world .salihs-ending p{font-size:11px;padding:8px 10px}
}

/* Un cierre común, al ritmo de quien ha creado y jugado la historia. */
.adventure-credits{position:absolute;inset:0;z-index:3000;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 50% 0,#23494e 0,transparent 65%),#101e29;color:#fff3d7;text-align:center;pointer-events:auto;color-scheme:dark}
.adventure-credits .adventure-credits-page{box-sizing:border-box;min-height:100%;max-width:760px;margin:auto;padding:32px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;animation:credits-arrive .6s ease-out}
.adventure-credits .credits-kicker{font-size:.875rem;letter-spacing:.15em;color:#dfc287;line-height:1.5}
.adventure-credits h3{font:normal clamp(1.5rem,3vw,2.4rem)/1.2 Georgia,serif;color:#fff3d7;margin:0;outline:none;text-wrap:balance}
.adventure-credits .credits-roles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 42px;width:100%;margin:0;max-width:560px}
.adventure-credits dt{font-size:.875rem;text-transform:uppercase;letter-spacing:.1em;color:#d7c395;line-height:1.5;margin-bottom:6px}
.adventure-credits dd{margin:0;font:normal 1.25rem/1.4 Georgia,serif;color:#fff3d7;overflow-wrap:anywhere}
.adventure-credits .credits-player dd{color:#ffdc85;font-size:1.75rem}
.adventure-credits .credits-message{display:grid;gap:18px}
.adventure-credits .credits-message p{margin:0;max-width:560px;font-size:1rem;line-height:1.65;color:#eee9dd}
.adventure-credits .credits-message .credits-farewell{color:#ffdc85;font:italic 1.25rem/1.5 Georgia,serif}
.adventure-credits .credits-actions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px}
.adventure-credits button{min-height:44px;font-size:1rem;cursor:pointer}
.adventure-credits .primary{background:#f1d395;color:#173b3f;border:1px solid #f1d395;border-radius:8px;padding:10px 24px}
.adventure-credits .credits-back{background:transparent;color:#eee9dd;border:0;padding:10px;text-decoration:underline;text-underline-offset:4px}
.adventure-credits button:focus-visible{outline:3px solid #fff3d7;outline-offset:4px}
@keyframes credits-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.adventure-credits .adventure-credits-page{padding:24px 18px;gap:20px}.adventure-credits .credits-roles{gap:18px}.adventure-credits dd{font-size:1.1rem}}
@media(max-width:360px){.adventure-credits .credits-roles{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.adventure-credits .adventure-credits-page{animation:none}}

.adventure-top{flex-wrap:wrap;gap:6px}.adventure-top .adventure-title{flex:1 1 180px}.adventure-top button{font-size:12px;padding:7px 10px}
