.luna-actor{position:absolute;width:18%;height:46%;padding:0;border:0;background:transparent;transform:translate(-50%,-100%);z-index:2;cursor:pointer;-webkit-tap-highlight-color:transparent}
.luna-actor[hidden]{display:none}.luna-actor canvas{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}.luna-actor:focus-visible{outline:2px dashed #fff1bb;outline-offset:4px;border-radius:35%}
.luna-talk-tag{position:absolute;left:50%;bottom:99%;transform:translateX(-50%);white-space:nowrap;background:#172830ed;border:1px solid #e8bd7888;border-radius:12px;padding:3px 9px;color:#f6e7c6;font-size:11px;box-shadow:0 2px 8px #0005}
.luna-actor:hover .luna-talk-tag,.luna-actor:focus-visible .luna-talk-tag{background:#e8bd78;color:#172830}
.luna-speech{position:absolute;z-index:16;top:4%;left:3%;width:53%;max-height:87%;overflow:auto;border:1px solid #bda478;border-radius:10px;background:#10252df2;color:#f0ede2;padding:13px 16px;box-shadow:0 9px 28px #0007}
.luna-speech[hidden]{display:none}.luna-speech-heading{display:flex;align-items:center;justify-content:space-between;color:#e8bd78;font-size:12px;letter-spacing:.12em}.luna-dismiss{background:transparent;color:#d5d6cc;padding:0 3px;font-size:24px;line-height:1}
.luna-speech .luna-words{font-size:clamp(12px,1.15vw,17px);line-height:1.5;margin:6px 0 12px}.luna-speech-actions{display:flex;gap:6px 12px;align-items:center;flex-wrap:wrap}.luna-speech .primary{font-size:12px;padding:7px 11px}.luna-speech .text-button{font-size:11px}
.scene.luna-welcoming>.dialogue.luna-in-scene,.scene.luna-speaking>.dialogue.luna-in-scene{visibility:hidden;pointer-events:none}
.computer-focus .luna-speech{opacity:0;pointer-events:none}.computer-focus .luna-talk-tag,.dancing-in-room .luna-talk-tag{display:none}.dancing-in-room .luna-speech{display:none}.dancing-in-room .luna-actor{pointer-events:none}
@media(max-width:650px){.luna-speech{left:2%;top:3%;width:61%;padding:8px 10px;max-height:94%}.luna-speech .luna-words{font-size:12px;line-height:1.3;margin:3px 0 7px}.luna-speech .primary{font-size:11px;padding:5px 8px}.luna-speech .text-button{font-size:10px}.luna-speech-heading{font-size:10px}.luna-talk-tag{font-size:9px;padding:2px 5px}.luna-actor{width:20%;height:48%}}

.luna-speech.luna-at-computer{left:auto;right:3%;width:43%}
@media(max-width:650px){.luna-speech.luna-at-computer{right:2%;width:45%}}

.scene.luna-prologue .room-camera,.scene.luna-prologue .hotspot,.scene.luna-prologue .location-tag,.scene.luna-prologue .scene-status,.scene.luna-prologue .scene-controls{visibility:hidden}
.scene.luna-prologue{background:#101d25}

/* The welcome owns the entire scene; the ordinary dialogue is its sibling. */
.scene.luna-welcoming ~ .dialogue,.scene.luna-speaking ~ .dialogue{display:none}
.play-column:has(.luna-prologue) .scene-heading,.play-column:has(.luna-prologue) .play-footer{visibility:hidden}
.scene.luna-prologue{background:radial-gradient(ellipse at 50% 35%,#243b48,#0b151e 75%)}
.luna-intro-portrait{display:none}
.scene.luna-prologue .luna-speech{inset:0;width:100%;max-height:100%;border:0;border-radius:0;box-shadow:none;background:transparent;padding:clamp(14px,2.5vw,32px);display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px}
.scene.luna-prologue .luna-speech[hidden]{display:none}
.scene.luna-prologue .luna-intro-portrait{display:block;width:clamp(90px,17vw,220px);height:clamp(90px,17vw,220px);max-height:39%;object-fit:cover;object-position:50% 18%;border-radius:50%;border:1px solid #e8bd7860;image-rendering:auto;box-shadow:0 0 45px #e8bd7812}
.scene.luna-prologue .luna-words{font:clamp(16px,1.6vw,22px)/1.55 Georgia,serif;max-width:760px;min-height:4.7em;margin:3px 0 8px}
.scene.luna-prologue .luna-dismiss,.scene.luna-welcoming .luna-dismiss{display:none}
.scene.luna-prologue .luna-continue{font-size:15px;padding:9px 16px}
.scene.luna-welcoming .hotspot{pointer-events:none;visibility:hidden}
.luna-title-card{position:absolute;inset:0;z-index:17;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;animation:luna-title-in 1.8s ease-out both}
.luna-title-card[hidden]{display:none}
.luna-title-card h1{font:clamp(34px,5.5vw,76px)/1.08 Georgia,serif;margin:20px 0;color:#f8ecd7;font-weight:400}
.luna-title-card h1 em{color:var(--gold)}
.luna-title-card p{color:#b6c6cd;font-size:clamp(14px,1.4vw,18px);margin:0 0 22px}
.luna-title-card .primary{animation:luna-title-in 1s .9s both}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@keyframes luna-title-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:650px){.scene.luna-prologue{aspect-ratio:auto;min-height:560px}.scene.luna-prologue .luna-speech{padding:20px 16px;gap:10px}.scene.luna-prologue .luna-intro-portrait{width:150px;height:150px}.scene.luna-prologue .luna-words{font-size:18px;min-height:8em}.luna-title-card h1{font-size:48px}}
@media(prefers-reduced-motion:reduce){.luna-title-card,.luna-title-card .primary{animation:none}}

.resident-character{position:absolute;left:45%;top:87%;width:16%;height:43%;transform:translate(-50%,-100%);padding:0;background:none;border:0;z-index:3}.resident-character[hidden]{display:none}.resident-character canvas{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;pointer-events:none}.resident-character span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);max-width:180px;padding:4px 10px;border-radius:12px;background:#172830ed;color:#f6e7c6;font-size:14px;white-space:nowrap}.dancing-in-room .resident-character{visibility:hidden}.computer-focus .resident-character span{display:none}

.adventure-active .resident-character{visibility:hidden}

/* Los personajes usan el resplandor de su silueta, sin recuadro de foco. */
.scene .luna-actor,.scene .resident-character,.scene .luna-actor:focus,.scene .resident-character:focus,.scene .luna-actor:focus-visible,.scene .resident-character:focus-visible{outline:none;border:0;box-shadow:none}

.scene .luna-actor canvas{filter:drop-shadow(1px 0 0 #f3cf72) drop-shadow(-1px 0 0 #f3cf72) drop-shadow(0 1px 0 #f3cf72) drop-shadow(0 -1px 0 #f3cf72)}
.scene .luna-actor:hover canvas,.scene .luna-actor:focus-visible canvas{filter:drop-shadow(1px 0 0 #ffe08a) drop-shadow(-1px 0 0 #ffe08a) drop-shadow(0 1px 0 #ffe08a) drop-shadow(0 -1px 0 #ffe08a) drop-shadow(0 0 4px #e9bd61)}

.scene .luna-actor canvas,.scene .luna-actor:hover canvas,.scene .luna-actor:focus-visible canvas{filter:none}

/* El aviso permanece activo mientras se muestra el diálogo de Lola. */
.lola-attention{outline:2px solid #e8bd78;outline-offset:2px;animation:lola-dialogue-pulse 2.4s ease-in-out infinite}
@keyframes lola-dialogue-pulse{
 0%,100%{scale:1;box-shadow:0 0 0 1px #e8bd7866,0 0 12px #e8bd7828,0 9px 28px #0007}
 50%{scale:1.012;box-shadow:0 0 0 3px #f3cf72bb,0 0 28px 4px #e8bd7860,0 9px 28px #0007}
}
@media(prefers-reduced-motion:reduce){.lola-attention{animation:none}}
