/* Original Android room-guide pattern: only the expandable chat-top menu is visible.
   The original bound door actions remain in the DOM for the note membership router. */
#entrance #umiFoyerScene > .reading-door,
#entrance.fortuna-game-ui #umiFoyerScene > .reading-door,
#entrance #umiFoyerScene > #webCompassSimpleEntrance,
#entrance #umiFoyerScene > .umi-concierge > #webCompassSimpleEntrance {
 display:none!important;visibility:hidden!important;pointer-events:none!important
}
#entrance .fortuna-web-room-guide{position:relative;z-index:40;box-sizing:border-box;max-width:100%;margin:0 0 10px}
#entrance .fortuna-web-room-guide-toggle{
 display:block;width:100%;max-width:100%;border:1px solid #d6b47e;
 border-radius:10px;background:#26324bed;color:#fff0d0;
 padding:12px 16px;font:700 15px/1.5 system-ui,'Noto Sans JP',sans-serif;
 cursor:pointer;text-align:left
}
#entrance .fortuna-web-room-guide-toggle::after{
 content:'⌄';float:right;font-size:19px;line-height:1;transition:transform .16s
}
#entrance .fortuna-web-room-guide-toggle[aria-expanded=true]::after{transform:rotate(180deg)}
#entrance .fortuna-web-room-guide-choices[hidden]{display:none!important}
#entrance .fortuna-web-room-guide-choices{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;
 background:#101b31e8;border:1px solid #a58b64;border-radius:0 0 10px 10px;padding:10px
}
#entrance .fortuna-web-room-guide-choice{
 padding:12px 7px;min-height:42px;border:1px solid #bf9f6d;border-radius:7px;
 color:#fae6bb;background:#27354e;cursor:pointer;line-height:1.45;
 font:600 13px/1.45 system-ui,'Noto Sans JP',sans-serif
}
#entrance .fortuna-web-room-guide-choice[disabled]{opacity:.48;cursor:not-allowed}
#entrance .fortuna-web-room-guide-toggle:focus-visible,
#entrance .fortuna-web-room-guide-choice:focus-visible{outline:3px solid #fff1b0;outline-offset:2px}
@media(max-width:600px){
 #entrance .fortuna-web-room-guide-choices{grid-template-columns:1fr}
 #entrance .fortuna-web-room-guide-choice{text-align:left;font-size:15px}
}
/* The approved 16:9 painting is the SINGLE PC simple-entrance visual.
   Do not draw its embedded Umi a second time. Keep the normal-mode 3D palace. */
@media(min-width:951px) and (pointer:fine) {
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene{
  width:min(100%,1400px)!important;max-width:1400px!important;
  aspect-ratio:16/9!important;height:auto!important;min-height:0!important;
  background:#271d36!important
 }
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene::after{
  content:'';position:absolute;inset:0;z-index:2;pointer-events:none;
  background:url('/approved-stills/foyer_umi_pc_1920x1080.webp') center/cover no-repeat!important
 }
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene>.umi-foyer-character,
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene>.umi-counter-foreground,
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene>.umi-threshold,
 html[data-fortuna-web-mode=simple] #entrance #umiFoyerScene>.umi-reception-name{display:none!important}
}

html[data-fortuna-web-mode] #entrance.fortuna-game-ui #umiFoyerScene>.reading-door, html[data-fortuna-web-mode] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge #webCompassSimpleEntrance{display:none!important;visibility:hidden!important;pointer-events:none!important}

/* Umi animated bust is displayed only for real spoken replies. */

/* Owner-approved paintings for WEB simple mode. Never affect native 3D mode. */
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant{
 position:relative!important;width:min(100%,1400px)!important;max-width:1400px!important;
 min-height:0!important;max-height:none!important;height:auto!important;
 aspect-ratio:16/9!important;margin:18px auto 0!important;
 background:#111829!important;isolation:isolate;overflow:hidden!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-web-simple-room-still{
 display:block!important;visibility:visible!important;opacity:1!important;
 position:absolute!important;inset:0!important;z-index:1!important;
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 object-fit:contain!important;object-position:center center!important;
 border-radius:0!important;margin:0!important;transform:none!important;filter:none!important;
 pointer-events:none!important
}
html[data-fortuna-web-mode=simple] #conversation .luna-consultant .fortuna-native-3d-room{
 display:none!important;visibility:hidden!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.luna-consultant-copy{
 z-index:3!important;max-width:48%!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open){
 --fortuna-character-space:0px!important;z-index:4!important;max-height:34%!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>#preMessages,
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>#preChatForm,
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>.fortuna-chat-header{
 width:100%!important;max-width:100%!important
}
.palace-compass-host[data-fortuna-simple-scene=true] .palace-compass-scene{
 background:#0b1124 url('/approved-stills/tensora_room_pc_1920x1080.webp') center/contain no-repeat!important
}
.palace-compass-host[data-fortuna-simple-scene=true] .palace-compass-scene iframe{
 display:none!important;visibility:hidden!important
}
/* The compass Luna's owner-approved 48-frame WebP is a speech-only chat
   portrait. In simple mode, keep the painting but do not suppress the actor. */
.palace-compass-host[data-fortuna-simple-scene=true] .compass-luna-float:not([hidden]){
 display:block!important;visibility:visible!important;opacity:1!important;
 width:min(145px,24vw)!important;max-height:24svh!important;
 right:12px!important;pointer-events:none!important
}
@media(max-width:950px), (pointer:coarse){
 html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant{
  width:min(100%,560px)!important;max-width:560px!important;
  aspect-ratio:9/16!important;min-height:0!important;height:auto!important
 }
 html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.luna-consultant-copy{
  max-width:85%!important
 }
 .palace-compass-host[data-fortuna-simple-scene=true] .palace-compass-scene{
  background-image:url('/approved-stills/compass-luna.webp')!important
 }
}

/* Simple mode keeps the approved still as scenery while the separate
   genuine-reply chat bust animates (48-frame WebP). It is not a second
   full-body portrait covering the painted Luna. The original speech timing,
   reduced-motion policy, and 3D mode remain unchanged. */
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel>.luna-consultant-portrait{
 display:block!important;z-index:9!important;pointer-events:none!important;
 width:min(175px,20vw)!important;height:min(205px,27svh)!important;
 max-height:calc(100% - 28px)!important;
 right:10px!important;bottom:6px!important;top:auto!important;left:auto!important;
 border:0!important;border-radius:0!important;background:transparent!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.speech-portrait-visible>.luna-consultant-portrait{
 visibility:visible!important;opacity:1!important
}
html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible>img.fortuna-umi-video-frame{
 display:block!important;visibility:visible!important;opacity:1!important;
 top:auto!important;right:10px!important;bottom:8px!important;
 height:122px!important;width:108px!important;max-width:110px!important;
 object-fit:contain!important;z-index:15!important
}
html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible #umiChatMessages{
 padding-right:120px!important
}
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .fortuna-game-panel.speech-portrait-visible #preMessages,
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .fortuna-game-panel.speech-portrait-visible #preChatForm{
 padding-right:clamp(95px,15vw,190px)!important;box-sizing:border-box!important
}

/* Simple compass: the painting already includes Luna at the right. Keep her visible. */
@media(min-width:951px) and (pointer:fine){
 .palace-compass-host[data-fortuna-simple-scene=true].twofloor-host[data-view="observatory"] .compass-dock{
  left:14px!important;right:auto!important;bottom:14px!important;
  width:min(48vw,670px)!important;max-width:670px!important;
  max-height:calc(100svh - 100px)!important;overflow:auto!important;
  overscroll-behavior:contain!important
 }
}
@media(max-width:950px), (pointer:coarse){
 .palace-compass-host[data-fortuna-simple-scene=true].twofloor-host[data-view="observatory"] .compass-dock{
  left:8px!important;right:8px!important;bottom:max(8px,env(safe-area-inset-bottom))!important;
  width:auto!important;max-width:none!important;max-height:min(36svh,315px)!important;
  overflow:auto!important;overscroll-behavior:contain!important
 }
}
/* Native 3D mode must never paint a lingering simple-room image. */
html:not([data-fortuna-web-mode=simple]) #conversation#conversation .fortuna-web-simple-room-still{display:none!important;visibility:hidden!important;opacity:0!important}

/* WEB 2026-11-13: Full-width PC palace theatre (owner approved).
   Prior max-width 1400 and bordered letterbox created a blank right column.
   The large approved 16:9 painting is now a cropped scene backdrop,
   never a small card. Phones retain their portrait-first layout. */
@media (min-width:951px) and (pointer:fine){
 html[data-fortuna-web-mode=simple] body:has(#entrance.screen.active)>.wrap,
 html[data-fortuna-web-mode=simple] body:has(#conversation.screen.active)>.wrap{
  width:100%!important;max-width:none!important;
  padding:0!important;margin:0!important;min-height:0!important
 }
 html[data-fortuna-web-mode=simple] #entrance#entrance.fortuna-game-ui,
 html[data-fortuna-web-mode=simple] #conversation#conversation.fortuna-game-ui{
  width:100%!important;max-width:none!important;margin:0!important;padding:0!important
 }
 html[data-fortuna-web-mode=simple] #entrance#entrance.fortuna-game-ui #umiFoyerScene,
 html[data-fortuna-web-mode=simple] #conversation#conversation.fortuna-game-ui .luna-consultant{
  width:100%!important;max-width:none!important;min-height:640px!important;
  height:max(640px,calc(100svh - 84px))!important;max-height:none!important;
  aspect-ratio:auto!important;margin:0!important;
  border:0!important;border-radius:0!important;box-shadow:none!important
 }
 html[data-fortuna-web-mode=simple] #conversation#conversation.fortuna-game-ui .luna-consultant>.fortuna-web-simple-room-still{
  object-fit:cover!important;object-position:center center!important
 }
 /* Dynamic Umi is intentionally prominent, but only during her own reply.
    Locate it inside the actual dialogue dock, away from buttons and inputs. */
 html[data-fortuna-web-mode=simple] body #entrance#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible>img.fortuna-umi-video-frame{
  width:clamp(190px,18vw,272px)!important;
  max-width:272px!important;height:clamp(220px,29svh,292px)!important;
  max-height:292px!important;right:14px!important;bottom:clamp(66px,8svh,100px)!important;
  top:auto!important;object-fit:contain!important;object-position:center bottom!important;
  display:block!important;visibility:visible!important;opacity:1!important
 }
 html[data-fortuna-web-mode=simple] #entrance#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible #umiChatMessages{
  padding-right:min(23vw,290px)!important
 }
 html[data-fortuna-web-mode=simple] #entrance#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible #umiChatForm{
  max-width:calc(100% - min(23vw,290px))!important
 }
 html[data-fortuna-web-mode=simple] #conversation#conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel>.luna-consultant-portrait{
  width:clamp(180px,16vw,240px)!important;height:clamp(195px,26svh,255px)!important;
  max-height:calc(100% - 24px)!important
 }
}

/* Android-approved Umi reception toolbar carried into WEB:
   受付ウミ | 部屋案内 | Q＆A | 開く. Never a full-width guide button. */
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar{
 display:flex!important;position:relative!important;
 align-items:center!important;justify-content:flex-start!important;
 flex-flow:row nowrap!important;gap:clamp(4px,0.6vw,9px)!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 margin:0 0 9px!important;padding:0 0 7px!important;
 border-bottom:1px solid #d5c49b66!important;
 box-sizing:border-box!important;z-index:42!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>h3{
 display:inline-flex!important;position:static!important;flex:0 0 auto!important;
 width:auto!important;min-width:0!important;max-width:none!important;
 align-items:center!important;white-space:nowrap!important;
 margin:0!important;padding:5px clamp(5px,1vw,12px)!important;
 border:1px solid #e5c88b!important;border-radius:8px!important;
 color:#ffe9b1!important;background:#362944!important;
 font:700 clamp(11px,1.1vw,14px)/1.4 system-ui,'Noto Sans JP',sans-serif!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide{
 display:block!important;position:relative!important;
 flex:0 0 auto!important;box-sizing:border-box!important;
 width:auto!important;max-width:none!important;min-width:0!important;
 margin:0!important;padding:0!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar button{
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;width:auto!important;max-width:none!important;
 min-width:0!important;min-height:36px!important;
 margin:0!important;padding:6px clamp(7px,0.9vw,12px)!important;
 color:#fff0d0!important;background:#26324bed!important;
 border:1px solid #d6b47e!important;border-radius:8px!important;
 box-shadow:none!important;white-space:nowrap!important;
 text-align:center!important;cursor:pointer!important;
 font:700 clamp(11px,1vw,13px)/1.3 system-ui,'Noto Sans JP',sans-serif!important;
 z-index:45!important;pointer-events:auto!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar button:focus-visible{
 outline:3px solid #ffe0a6!important;outline-offset:2px!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide>.fortuna-web-room-guide-toggle{
 width:auto!important;max-width:none!important;padding:6px clamp(7px,0.9vw,12px)!important;
 text-align:center!important;
}
#entrance .fortuna-web-umi-toolbar .fortuna-web-room-guide-toggle::after{
 content:none!important;display:none!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.umi-faq-toggle{
 min-width:42px!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-chat-expand-toggle{
 display:inline-flex!important;position:relative!important;
 left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
 flex:0 0 auto!important;vertical-align:middle!important;
 margin-left:0!important;padding:6px clamp(7px,0.9vw,12px)!important;
 transform:none!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.chat-expanded>.fortuna-web-umi-toolbar>.fortuna-chat-expand-toggle{
 position:relative!important;top:auto!important;left:auto!important;
 right:auto!important;bottom:auto!important;margin-left:0!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-room-guide-choices,
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.umi-faq-questions{
 position:relative!important;z-index:43!important;
 box-sizing:border-box!important;width:100%!important;
 margin:0 0 8px!important;max-width:100%!important;
 background:#152743f5!important;border:1px solid #ba996e!important;
 border-radius:9px!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-room-guide-choices:not([hidden]){
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.umi-faq-questions:not([hidden]){
 display:block!important;max-height:190px!important;overflow-y:auto!important;
}
#entrance .umi-faq-questions[hidden],#entrance .fortuna-web-room-guide-choices[hidden]{
 display:none!important;
}
@media(max-width:640px){
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar{
  gap:4px!important;margin-bottom:6px!important;padding-bottom:5px!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>h3{
  padding:5px 6px!important;font-size:11px!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar button{
  padding:5px 6px!important;font-size:11px!important;min-height:34px!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-room-guide-choices:not([hidden]){
  grid-template-columns:1fr!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-room-guide-choices:not([hidden])>button{
  text-align:left!important;min-height:38px!important;font-size:13px!important;
 }
}

/* 2026-11-13 UI correction. The previous full-width panels are NOT the Android
   receptionist's compact expanding controls. Pop small menus ABOVE the
   bottom-docked dialogue without moving or clipping the conversation. */
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover{
 position:relative!important;display:block!important;
 flex:0 0 auto!important;width:auto!important;max-width:none!important;
 margin:0!important;padding:0!important;z-index:51!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-toggle{
 position:relative!important;display:inline-flex!important;align-items:center!important;
 justify-content:center!important;flex:0 0 auto!important;width:auto!important;
 min-height:36px!important;margin:0!important;padding:6px 12px!important;
 border:1px solid #d6b47e!important;border-radius:8px!important;
 background:#26324bed!important;color:#fff0d0!important;
 font:700 13px/1.3 system-ui,'Noto Sans JP',sans-serif!important;
 cursor:pointer!important;pointer-events:auto!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide>.fortuna-web-room-guide-choices{
 position:absolute!important;inset:auto auto calc(100% + 10px) 0!important;
 display:grid!important;grid-template-columns:1fr!important;gap:5px!important;
 width:min(235px,calc(100vw - 36px))!important;max-width:min(235px,calc(100vw - 36px))!important;
 max-height:min(42svh,260px)!important;overflow:auto!important;
 margin:0!important;padding:8px!important;z-index:400!important;
 background:#15233df5!important;border:1px solid #c9ac7b!important;
 border-radius:10px!important;box-shadow:0 12px 24px #0009!important;
 overscroll-behavior:contain!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide>.fortuna-web-room-guide-choices[hidden],
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-questions[hidden]{
 display:none!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide>.fortuna-web-room-guide-choices>.fortuna-web-room-guide-choice{
 display:flex!important;align-items:center!important;justify-content:flex-start!important;
 width:100%!important;max-width:100%!important;min-height:42px!important;
 padding:7px 10px!important;margin:0!important;white-space:normal!important;
 text-align:left!important;font:600 13px/1.45 system-ui,'Noto Sans JP',sans-serif!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-questions{
 position:absolute!important;inset:auto auto calc(100% + 10px) -86px!important;
 display:flex!important;flex-flow:column nowrap!important;gap:5px!important;
 width:min(295px,calc(100vw - 70px))!important;max-width:min(295px,calc(100vw - 70px))!important;
 max-height:min(40svh,300px)!important;overflow-y:auto!important;overflow-x:hidden!important;
 margin:0!important;padding:8px!important;z-index:400!important;
 background:#15233df5!important;border:1px solid #c9ac7b!important;
 border-radius:10px!important;box-shadow:0 12px 24px #0009!important;
 overscroll-behavior:contain!important;box-sizing:border-box!important;
}
#entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-questions>.umi-faq-choice{
 display:block!important;flex:0 0 auto!important;width:100%!important;max-width:100%!important;
 min-height:40px!important;margin:0!important;padding:8px 10px!important;
 white-space:normal!important;line-height:1.4!important;
 text-align:left!important;font-size:13px!important;
}
@media(max-width:640px){
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-toggle{
  min-height:34px!important;padding:5px 6px!important;font-size:11px!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-room-guide>.fortuna-web-room-guide-choices{
  width:min(230px,calc(100vw - 36px))!important;grid-template-columns:1fr!important;
 }
 #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-web-umi-toolbar>.fortuna-web-faq-popover>.umi-faq-questions{
  left:-80px!important;width:min(275px,calc(100vw - 66px))!important;
  max-height:min(40svh,280px)!important;
 }
}

/* On touch devices the existing animated Umi speech bubble is z=49.
   Only while a compact menu is open, bring the real concierge above it;
   otherwise a speech bubble steals taps on the menu's lower choices. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge:has(.umi-faq-questions:not([hidden])),
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge:has(.fortuna-web-room-guide-choices:not([hidden])){
 z-index:75!important;
}

/* 2026-11-13 mobile actor scale correction. The approved still is scenery;
   only ONE talking alpha WebP is displayed beside the actual dialogue.
   The previous 108x122 Umi and ~105px Luna were too small to see expressions. */
html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.umi-video-active>.game-umi-portrait:not(.fortuna-umi-video-frame),
html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.umi-video-active>canvas.fortuna-2d-actor{
 display:none!important;visibility:hidden!important;opacity:0!important
}
@media(max-width:650px){
 html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible.umi-video-active>img.fortuna-umi-video-frame{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:clamp(146px,40vw,180px)!important;
  height:clamp(208px,30svh,272px)!important;
  max-width:180px!important;max-height:272px!important;
  left:auto!important;right:4px!important;top:auto!important;
  bottom:calc(100% - 5px)!important;object-fit:contain!important;
  object-position:right bottom!important;
  border:0!important;background:transparent!important;pointer-events:none!important;
 }
 html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.speech-portrait-visible>.luna-consultant-portrait{
  display:block!important;visibility:visible!important;opacity:1!important;
  width:clamp(145px,42vw,183px)!important;
  height:clamp(207px,32svh,268px)!important;
  max-width:183px!important;max-height:268px!important;
  left:auto!important;right:4px!important;
  top:auto!important;bottom:calc(100% - 6px)!important;
  pointer-events:none!important;
 }
 html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .fortuna-game-panel.speech-portrait-visible #preMessages,
 html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .fortuna-game-panel.speech-portrait-visible #preChatForm,
 html[data-fortuna-web-mode=simple] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.speech-portrait-visible #umiChatMessages{
  padding-right:0!important;max-width:100%!important;
 }
 .palace-compass-host[data-fortuna-simple-scene=true] .compass-luna-float:not([hidden]){
  width:clamp(150px,42vw,185px)!important;
  max-width:185px!important;max-height:34svh!important;
  right:8px!important;bottom:calc(max(10px,env(safe-area-inset-bottom)) + var(--compass-dock-height,162px) + 8px)!important;
  pointer-events:none!important;
 }
}

/* The portrait's actual owner is .fortuna-game-panel. In normal chat state,
   its legacy overflow-y:auto clipped the enlarged talking Luna above the dock.
   Only simple-mode non-method chat allows that portrait to extend above its
   panel; #preMessages retains its own internal scrolling. */
html[data-fortuna-web-mode=simple] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open){
 overflow:visible!important;overflow-x:visible!important;overflow-y:visible!important
}

/* WEB consultation readability fix – Kaō's field report 2026-11-13.
   Closing stays a tiny overlay with full Luna; opening becomes a readable
   conversation canvas. Scoped ONLY to the 3rd room and expanded=true.
   Do not alter the palace camera, member ledger or other reading rooms. */
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"]{
 position:absolute!important;
 box-sizing:border-box!important;
 left:50%!important;right:auto!important;
 transform:translateX(-50%)!important;
 bottom:max(7px,env(safe-area-inset-bottom))!important;
 width:min(94vw,980px)!important;
 max-width:calc(100vw - 12px)!important;
 height:min(83dvh,850px)!important;
 min-height:0!important;
 max-height:calc(100dvh - 68px - env(safe-area-inset-bottom))!important;
 z-index:20!important;
 display:flex!important;flex-direction:column!important;
 gap:9px!important;padding:12px 15px!important;
 overflow:hidden!important;
 overscroll-behavior:contain!important;
 background:linear-gradient(145deg,#101d33f8,#121729fb)!important;
 border:1px solid #c6b080!important;
 box-shadow:0 16px 42px #000a!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-dock-head{
 flex:0 0 auto!important;min-height:43px!important;gap:9px!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-latest{
 -webkit-line-clamp:1!important;min-width:0!important;
 font-size:13px!important;line-height:1.5!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] #compass-toggle{
 flex:0 0 auto!important;min-width:60px!important;min-height:43px!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] #compass-panel{
 display:flex!important;flex:1 1 auto!important;min-height:0!important;
 max-height:none!important;overflow:hidden!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] #compass-form{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 min-height:0!important;max-height:none!important;overflow:hidden!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-detail-region{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 min-height:0!important;max-height:none!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;scrollbar-width:thin!important;
 padding:3px 5px 10px 2px!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-history{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 min-height:0!important;max-height:none!important;
 padding:4px 0!important;margin:0!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-dialogue{
 display:flex!important;flex:1 1 auto!important;flex-direction:column!important;
 min-height:0!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-transcript{
 display:block!important;flex:1 1 auto!important;
 width:100%!important;max-width:100%!important;
 min-height:min(26dvh,210px)!important;max-height:none!important;
 overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;
 padding:6px 4px 12px!important;scrollbar-width:thin!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-message{
 font-size:15px!important;line-height:1.8!important;
 padding:10px 13px!important;overflow-wrap:anywhere!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-message p{
 font-size:15px!important;line-height:1.8!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-composer{
 flex:0 0 auto!important;min-width:0!important;
 background:#10182b!important;border-top:1px solid #d2b98255!important;
 padding-top:8px!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] #compass-question{
 height:clamp(49px,8dvh,72px)!important;min-height:49px!important;max-height:110px!important;
 resize:vertical!important;font-size:15px!important;
}
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-submit-row button{
 min-height:42px!important;
}
/* The moving Luna is admired on entry and whenever the dock is closed;
   during expanded reading she must not float in front of the actual words. */
#palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"]:has(.compass-dock[data-expanded="true"]) .compass-luna-float{
 display:none!important;visibility:hidden!important;pointer-events:none!important;
}
@media(max-width:700px){
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"]{
  width:calc(100vw - 12px)!important;max-width:none!important;
  height:86dvh!important;max-height:calc(100dvh - 22px - env(safe-area-inset-bottom))!important;
  padding:8px 10px!important;gap:6px!important;
  border-radius:12px!important;
 }
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-message,
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-message p{
  font-size:14px!important;line-height:1.75!important;
 }
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-submit-row{
  grid-template-columns: minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr)!important;
 }
}
@media(max-height:560px) and (orientation:landscape){
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"]{
  height:86dvh!important;max-height:calc(100dvh - 14px)!important;
  width:min(88vw,940px)!important;left:50%!important;
  right:auto!important;bottom:6px!important;
  transform:translateX(-50%)!important;
 }
 #palace-compass-host.palace-compass-host.twofloor-host[data-view="observatory"] .compass-dock[data-expanded="true"] .compass-transcript{
  min-height:100px!important;
 }
}

/* Consultation-first: calculations must NOT turn into an unrequested full-size
   calendar or Google map. Native <details> content is forced closed because
   legacy compass display rules can override the browser's default hiding. */
#palace-compass-host .compass-detail-region details.compass-extra-reference:not([open]) > :not(summary),
#palace-compass-host .compass-detail-region details.compass-maps-optional:not([open]) > :not(summary){
 display:none!important;visibility:hidden!important;
}
#palace-compass-host .compass-extra-reference,
#palace-compass-host .compass-maps-optional{
 border:1px solid #7f90ab80;border-radius:9px;padding:0;margin:9px 0 4px;
 background:#101a2c;color:#e8d5ab;
}
#palace-compass-host .compass-extra-reference>summary,
#palace-compass-host .compass-maps-optional>summary{
 display:list-item;cursor:pointer;font:600 13px/1.7 system-ui,sans-serif;
 padding:9px 12px;min-height:39px;box-sizing:border-box;
}
#palace-compass-host .compass-extra-reference[open]>:not(summary),
#palace-compass-host .compass-maps-optional[open]>:not(summary){
 margin:8px 12px;max-width:calc(100% - 24px);
}
