/* Made for UA: responsive live scene surfaces. No font or third-party CSS. */
.mfu-scene { position: relative; isolation: isolate; width: 100%; overflow: clip; }
.mfu-scene__stage { position: relative; width: 100%; min-height: min(85svh, 800px); overflow: hidden; background: #f8fbff; border-radius: 20px; }
.mfu-scene__element { will-change: transform, opacity; }
[data-scene-owner], [data-scene-robot] { position: absolute; bottom: 0; max-height: 78%; max-width: 46%; object-fit: contain; pointer-events: none; }
[data-scene-owner] { left: 2%; } [data-scene-robot] { right: 2%; }
[data-scene-owner-speech], [data-scene-robot-speech] { position: absolute; z-index: 3; top: 9%; width: min(33%, 300px); min-height: 3rem; padding: .85rem 1rem; background: white; color: #152c55; border-radius: 18px; box-shadow: 0 7px 22px #1635671c; overflow-wrap: anywhere; }
[data-scene-owner-speech] { left: 12%; } [data-scene-robot-speech] { right: 12%; }
[data-scene-messages] { position: absolute; z-index: 4; left: 36%; top: 35%; width: 28%; display: grid; gap: .55rem; }
.mfu-scene__message { padding: .6rem .75rem; border-radius: 13px; background: white; box-shadow: 0 5px 18px #12346a22; color: #122b54; overflow-wrap: anywhere; }
[data-scene-order] { position: absolute; z-index: 5; left: 36%; bottom: 12%; width: 28%; border: 2px solid #ffd538; background: white; padding: .9rem; border-radius: 16px; text-align: center; color: #15366f; }
[data-scene-eyes] { display: block; transform-origin: center; }
[data-scene-speak] { min-height: 44px; padding: .75rem 1.3rem; cursor: pointer; background: #ffd438; color: #13295a; border: 0; border-radius: 999px; font: inherit; font-weight: 700; }
[data-scene-speak]:focus-visible { outline: 3px solid #2377df; outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .mfu-scene__message, [data-scene-speak] { transition: transform .22s ease; } .mfu-scene__message:hover, [data-scene-speak]:hover { transform: translateY(-3px) scale(1.025); } }
@media (max-width: 640px) {
 .mfu-scene__stage { min-height: 68svh; border-radius: 12px; }
 [data-scene-owner], [data-scene-robot] { max-width: 52%; max-height: 55%; }
 [data-scene-owner] { left: -5%; } [data-scene-robot] { right: -5%; }
 [data-scene-owner-speech], [data-scene-robot-speech] { top: 5%; width: 46%; padding: .6rem; font-size: .85rem; }
 [data-scene-owner-speech] { left: 2%; } [data-scene-robot-speech] { right: 2%; }
 [data-scene-messages] { left: 18%; top: 31%; width: 64%; font-size: .8rem; }
 [data-scene-order] { left: 18%; bottom: 6%; width: 64%; }
}
@media (prefers-reduced-motion: reduce) {
 .mfu-scene__element, .mfu-scene__message, [data-scene-speak] { animation: none !important; transition: none !important; transform: none !important; opacity: 1 !important; }
 [data-scene-eyes] { transform: none !important; }
}

/* Optional first-screen phone breakout; place it before scroll scenes. */
[data-scene-intro] { position: relative; isolation: isolate; min-height: 580px; overflow: clip; }
[data-intro-phone] { position: absolute; z-index: 1; width: min(55%, 460px); max-height: 92%; object-fit: contain; left: 19%; bottom: 2%; }
[data-intro-phone-mask] { position: absolute; z-index: 2; left: 31%; top: 15%; width: 31%; height: 66%; border-radius: 22px; overflow: hidden; pointer-events: none; }
[data-intro-robot], [data-intro-owner] { position: absolute; z-index: 4; bottom: 5%; width: 36%; max-height: 75%; object-fit: contain; filter: drop-shadow(0 12px 20px #1036712b); pointer-events: none; }
[data-intro-robot] { left: 30%; } [data-intro-owner] { left: 6%; z-index: 5; }
[data-intro-messages] { position: absolute; z-index: 6; right: 3%; top: 14%; width: 28%; display: grid; gap: 12px; }
[data-intro-messages] > * { background: #fff; border-radius: 15px; padding: .8rem 1rem; box-shadow: 0 8px 30px #12346a2b; overflow-wrap: anywhere; }
[data-intro-eyes] { display: block; transform-origin: 50% 50%; }
@media (max-width: 640px) {
 [data-scene-intro] { min-height: 650px; }
 [data-intro-phone] { width: 76%; left: 12%; bottom: 10%; max-height: 76%; }
 [data-intro-phone-mask] { left: 27%; width: 46%; top: 24%; height: 49%; }
 [data-intro-robot], [data-intro-owner] { width: 52%; max-height: 47%; bottom: 12%; }
 [data-intro-robot] { left: 47%; } [data-intro-owner] { left: -3%; }
 [data-intro-messages] { top: 7%; right: 3%; width: 64%; gap: 7px; font-size: .85rem; }
 [data-intro-messages] > * { padding: .5rem .65rem; }
}
@media (prefers-reduced-motion: reduce) {
 [data-scene-intro] *, [data-scene-intro] *::before, [data-scene-intro] *::after { animation: none !important; transition: none !important; }
 [data-intro-robot], [data-intro-owner], [data-intro-messages] > * { visibility: visible !important; opacity: 1 !important; transform: none !important; }
}

/* Compact floating page guide. Keep clear of bottom-right support and controls. */
.mfu-guide {
  --mfu-guide-bottom: 100px;
  position: fixed; z-index: 80; right: max(12px, env(safe-area-inset-right));
  bottom: calc(var(--mfu-guide-bottom) + env(safe-area-inset-bottom));
  width: 110px; height: 110px; pointer-events: none;
  transition: transform .35s ease, opacity .25s ease;
}
.mfu-guide__robot { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 11px #14396335); }
.mfu-guide__bubble {
  position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 150px;
  width: max-content; max-width: min(310px, 70vw); padding: .75rem 1rem;
  border: 1px solid #c4d9f0; border-radius: 17px; background: #fff;
  box-shadow: 0 8px 24px #14396329; color: #133263;
  font: inherit; text-align: left; line-height: 1.35; overflow-wrap: anywhere;
  cursor: pointer; pointer-events: auto;
}
.mfu-guide__bubble[hidden] { display: none; }
.mfu-guide__bubble:focus-visible { outline: 3px solid #2178df; outline-offset: 3px; }
.mfu-guide--away, .mfu-guide--away-controls { transform: translateX(calc(100% + 25px)); opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .mfu-guide { width: 78px; height: 78px; right: max(8px, env(safe-area-inset-right)); }
  .mfu-guide__bubble { max-width: 70vw; bottom: calc(100% + 10px); font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mfu-guide, .mfu-guide__robot, .mfu-guide__bubble { animation: none !important; transition: none !important; }
}
