.room-heading{position:fixed;top:32px;left:32px;pointer-events:none;max-width:calc(100vw - 64px)}
.room-heading h1{font:500 36px/1.1 Fredoka,sans-serif;margin:8px 0}
.room-heading p,.room-guide{font-size:13px;line-height:1.6;color:var(--texto-suave)}
.room-heading .room-development{max-width:300px;margin:12px 0 0;padding:8px 12px;border:1px solid var(--borda);border-radius:12px;background:var(--marfim);color:var(--grafite)}
#return-planet{position:fixed;right:32px;top:32px;display:flex;align-items:center;min-height:48px;padding:12px 20px;border:1px solid var(--borda);border-radius:12px;background:var(--marfim);color:var(--grafite);text-decoration:none;font-size:14px;font-weight:800;z-index:4}
#return-planet:hover{background:var(--lavanda)}
.room-guide{position:fixed;left:32px;bottom:24px;pointer-events:none}
@media(max-width:700px){
  .room-heading{top:20px;left:20px}.room-heading h1{font-size:28px}.room-heading p{max-width:200px;font-size:12px}
  #return-planet{top:auto;bottom:max(24px,env(safe-area-inset-bottom));right:20px;padding:12px;font-size:12px}
  .room-guide{display:none}
}
@media(pointer:coarse){.classroom #joystick{display:block}.classroom .room-guide{display:none}}
@media(max-height:500px){.room-heading p:not(.room-development){display:none}.room-heading h1{font-size:24px}}

.teacher-label{position:fixed;transform:translate(-50%,-100%);z-index:3;padding:7px 12px;min-height:36px;border:1px solid var(--borda);border-radius:12px;background:var(--marfim);font-size:12px;box-shadow:0 3px 12px #493f4814;white-space:nowrap}
.teacher-access{position:fixed;right:32px;bottom:32px;z-index:4;min-height:48px;padding:12px 20px;background:var(--grafite);color:var(--marfim);border-radius:12px;font-size:14px}
.teacher-access:hover{background:var(--foco)}
.teacher-speaking .teacher-label,.teacher-speaking .teacher-access{visibility:hidden}
#teacher-dialog{width:min(600px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:0;overflow:hidden;border-radius:24px;--npc-accent:var(--lavanda)}
#teacher-dialog[open]{display:flex;flex-direction:column}
.teacher-header{display:flex;align-items:center;gap:16px;flex:none;padding:20px 24px;border-bottom:1px solid var(--borda)}
.teacher-header p{font:500 24px/1.2 Fredoka,sans-serif;margin:4px 0 0}
.teacher-header .eyebrow{font-size:9px;letter-spacing:.1em}
#teacher-close{margin-left:auto;align-self:flex-start;flex:none;width:44px;height:44px;font-size:28px;background:transparent;border-radius:12px}
#teacher-close:hover{background:var(--lavanda)}
.teacher-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:24px}
#teacher-title{font:500 30px/1.15 Fredoka,sans-serif;margin:0 0 16px;outline-offset:4px}
#teacher-speech{font-size:16px;line-height:1.65;margin:0}
@media(max-width:700px){
  .teacher-access{right:20px;bottom:max(88px,calc(env(safe-area-inset-bottom) + 88px));max-width:calc(100vw - 152px);padding:10px 12px;font-size:12px;line-height:1.4}
  .teacher-label{font-size:10px;padding:6px 9px}
  .teacher-header{padding:16px;gap:12px}.teacher-header p{font-size:20px}.teacher-header .eyebrow{font-size:8px}
  .teacher-scroll{padding:20px 16px}#teacher-title{font-size:26px}
}
@media(max-height:500px){
  .teacher-header{padding:8px 16px}.teacher-header .guide-portrait{height:44px;width:44px}.teacher-header .guide-portrait img{width:40px;height:40px}
  .teacher-header .eyebrow{display:none}.teacher-scroll{padding:16px}.teacher-access{bottom:80px}
}
