/* A reserved companion lane keeps every gesture outside the playfield. */
:root { --host-lane: clamp(210px, 22vw, 284px); --host-dock: 148px; }
.host-badge.host-character {
  position: absolute; z-index: 6; left: 0; bottom: 0;
  width: var(--host-lane); height: 100%; min-height: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 12px 8px; overflow: hidden; border: 0; border-radius: 0;
  background: linear-gradient(90deg, rgba(247,242,231,.84), rgba(247,242,231,.15));
  box-shadow: none; pointer-events: none;
}
.host-badge.host-character[hidden] { display: none; }
.host-art { width: min(100%, 256px); aspect-ratio: 1; flex-shrink: 0; position: relative; }
.host-art canvas, .host-badge.host-character .host-fallback {
  display: block; width: 100%; height: 100%; max-width: none; object-fit: contain;
  image-rendering: pixelated; image-rendering: crisp-edges;
}
.host-art canvas[hidden], .host-badge.host-character .host-fallback[hidden] { display: none; }
.host-badge.host-character .host-name { font: 600 23px/1.15 Georgia, serif; color: #39342c; }
.host-badge.host-character .host-caption { display: block; margin-top: 7px; padding: 0 16px; min-height: 2.4em; font: 500 13px/1.4 system-ui,sans-serif; color: #665d50; text-align: center; }
.host-enter .host-art { animation: host-arrive .65s cubic-bezier(.2,.8,.2,1) both; }
.host-paused .host-art { animation-play-state: paused; }
@keyframes host-arrive { from { transform: translateX(-20px) translateY(7px); opacity: .3; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  #sala, #palco { left: var(--host-lane); width: calc(100% - var(--host-lane)); }
  #hud { left: var(--host-lane); }
  .dica { left: calc(50% + var(--host-lane)/2); }
  .host-visible .tela { left: var(--host-lane); }
}
@media (max-width: 899px) {
  #sala, #palco { height: calc(100% - var(--host-dock)); }
  .host-badge.host-character {
    width: 100%; height: var(--host-dock); padding: 0 18px 0 4px;
    flex-direction: row; justify-content: center; gap: 8px;
    background: linear-gradient(0deg, rgba(247,242,231,.97), rgba(247,242,231,.7));
    border-top: 1px solid rgba(120,102,77,.14);
  }
  .host-art { width: 152px; height: 152px; align-self: flex-end; }
  .host-copy { max-width: 190px; }
  .host-badge.host-character .host-name { font-size: 20px; }
  .host-badge.host-character .host-caption { text-align: left; padding: 0; font-size: 12px; min-height: 0; }
  .host-visible .tela { bottom: var(--host-dock); }
  body[data-character='patricia'] .dica { bottom: calc(var(--host-dock) + 12px); }
  .dica { width: calc(100% - 32px); max-width: 520px; }
  .mobile-gallery-preview:not([hidden]) { height: min(25dvh, 210px); top: 160px; }
}
@media (max-height: 600px) and (max-width: 899px) {
  :root { --host-dock: 98px; }
  .host-art { width: 102px; height: 102px; }
  .host-badge.host-character .host-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .host-enter .host-art { animation: none; } }
