/* TRUE mobile presentation layer, staged ONLY at 8802.
 * Strictly inert on PC: requires JS-set html[data-fortuna-mobile-ui=on].
 * Original 3D rooms, backend, chat controls and bound forms are shared unchanged. */
html[data-fortuna-mobile-ui="on"]{
 --fortuna-mobile-vh:100dvh;
}
html[data-fortuna-mobile-ui="on"]:has(#entrance.active),
html[data-fortuna-mobile-ui="on"]:has(#conversation.active){
 height:var(--fortuna-mobile-vh)!important;min-height:0!important;overflow:hidden!important;
}
html[data-fortuna-mobile-ui="on"] header.top{
 position:relative!important;z-index:90!important;
 min-height:39px!important;height:39px!important;
 padding:2px 9px!important;margin:0!important;
 flex-wrap:nowrap!important;gap:5px!important;overflow:hidden!important;
}
html[data-fortuna-mobile-ui="on"] header.top .logo{
 font-size:14px!important;line-height:1.15!important;min-width:0!important;
 white-space:nowrap!important;
}
html[data-fortuna-mobile-ui="on"] header.top .logo small,
html[data-fortuna-mobile-ui="on"] header.top .demo-label{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"]:has(#entrance.active) body,
html[data-fortuna-mobile-ui="on"]:has(#conversation.active) body{
 height:var(--fortuna-mobile-vh)!important;min-height:0!important;
 overflow:hidden!important;margin:0!important;
}
html[data-fortuna-mobile-ui="on"]:has(#entrance.active) main.wrap,
html[data-fortuna-mobile-ui="on"]:has(#conversation.active) main.wrap{
 box-sizing:border-box!important;width:100%!important;max-width:none!important;
 height:calc(var(--fortuna-mobile-vh) - 39px)!important;min-height:0!important;
 margin:0!important;padding:2px 4px!important;overflow:hidden!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui{
 box-sizing:border-box!important;
 position:relative!important;width:100%!important;max-width:100%!important;
 min-height:0!important;height:100%!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene{
 position:relative!important;box-sizing:border-box!important;
 height:100%!important;max-height:none!important;min-height:0!important;
 width:100%!important;max-width:none!important;
 overflow:hidden!important;margin:0!important;padding:0!important;
 border-radius:12px!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.game-door-instruction,
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-reception-name{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant{
 position:relative!important;box-sizing:border-box!important;
 width:100%!important;max-width:none!important;
 height:100%!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border-radius:12px!important;
 overflow:hidden!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant-copy,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-luna-arrival{
 display:none!important;
}
/* A single mobile-specific camera/room bar. Original bound direct button is reparented, not cloned. */
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar{
 position:absolute!important;top:7px!important;left:6px!important;right:6px!important;
 z-index:55!important;display:flex!important;align-items:center!important;
 justify-content:center!important;gap:4px!important;flex-wrap:wrap!important;
 box-sizing:border-box!important;pointer-events:none!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>button{
 pointer-events:auto!important;display:inline-flex!important;
 flex:0 0 auto!important;justify-content:center!important;align-items:center!important;
 box-sizing:border-box!important;
 border:1px solid #dacaa8!important;border-radius:9px!important;
 background:#141e38ec!important;color:#fff2d3!important;
 box-shadow:0 2px 9px #0008!important;
 font:600 11px/1.15 sans-serif!important;white-space:nowrap!important;
 height:35px!important;min-height:35px!important;max-height:36px!important;
 padding:4px 8px!important;cursor:pointer!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>button[aria-pressed="true"]{
 border-color:#fee4a2!important;background:#524061ee!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>.fortuna-mobile-enter-btn{
 position:absolute!important;top:44px!important;
 left:50%!important;transform:translateX(-50%)!important;
 height:39px!important;min-height:39px!important;
 padding:7px 16px!important;background:#f1d49eea!important;color:#24233e!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>button[hidden]{display:none!important}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>#goToReading{
 border-color:#eac77e!important;background:#7d5c33f2!important;
 color:#fff9e9!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>button:focus-visible{
 outline:2px solid white!important;outline-offset:1px!important;
}
/* The original active Umi form is docked to the bottom, at FULL usable width. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge{
 --fortuna-character-space:0px!important;
 display:flex!important;flex-direction:column!important;
 position:absolute!important;left:5px!important;right:5px!important;
 top:auto!important;bottom:5px!important;
 box-sizing:border-box!important;width:calc(100% - 10px)!important;max-width:none!important;
 height:74px!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:7px!important;
 background:#131b31f0!important;border:1px solid #cfb989bb!important;
 border-radius:12px!important;overflow:visible!important;
 z-index:40!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>h3,
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.fortuna-chat-expand-toggle,
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.game-umi-portrait{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatMessages{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm{
 display:grid!important;grid-template-columns:minmax(0,1fr) 59px!important;
 grid-template-rows:auto!important;gap:5px!important;align-items:stretch!important;
 width:100%!important;max-width:100%!important;
 padding:0!important;margin:0!important;flex:0 0 auto!important;
 min-height:46px!important;overflow:visible!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm label{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm #umiChatText{
 grid-column:1!important;grid-row:1!important;min-width:0!important;
 width:100%!important;max-width:100%!important;box-sizing:border-box!important;
 min-height:47px!important;height:47px!important;
 padding:9px 10px!important;border-radius:9px!important;
 font-size:16px!important;line-height:1.4!important;
 resize:none!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm #umiChatSend{
 grid-column:2!important;grid-row:1!important;min-width:0!important;
 width:59px!important;max-width:59px!important;
 height:47px!important;min-height:47px!important;
 margin:0!important;padding:4px!important;font-size:13px!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.game-privacy,
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatRecommendation{
 display:none!important;
}
/* Luna bottom message composer: no screen width reserved for a decorative bust. */
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open){
 --fortuna-character-space:0px!important;
 display:flex!important;flex-direction:column!important;
 position:absolute!important;top:auto!important;bottom:5px!important;
 left:5px!important;right:5px!important;
 width:calc(100% - 10px)!important;max-width:none!important;
 height:77px!important;min-height:0!important;max-height:none!important;
 box-sizing:border-box!important;padding:8px!important;margin:0!important;
 background:#131b31f0!important;border-radius:12px!important;
 border:1px solid #cfb989bb!important;
 z-index:40!important;overflow:visible!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel .fortuna-chat-header,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel .luna-consultant-portrait,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel .fortuna-game-notices{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel>#preMessages{
 display:none!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel>#preChatForm{
 display:flex!important;flex-direction:row!important;
 align-items:stretch!important;gap:6px!important;
 flex:0 0 auto!important;min-width:0!important;
 width:100%!important;max-width:100%!important;
 height:49px!important;min-height:49px!important;max-height:none!important;
 overflow:visible!important;padding:0!important;margin:0!important;
 box-sizing:border-box!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatForm>.field{
 display:block!important;flex:1 1 0!important;min-width:0!important;
 width:auto!important;margin:0!important;padding:0!important;
 font-size:0!important;line-height:0!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatText{
 display:block!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:49px!important;min-height:49px!important;max-height:49px!important;
 margin:0!important;padding:9px 10px!important;border-radius:9px!important;
 font-size:16px!important;line-height:1.4!important;resize:none!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatForm>.prechat-actions{
 display:flex!important;flex:0 0 61px!important;min-width:61px!important;
 width:61px!important;margin:0!important;padding:0!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatForm>.prechat-actions>button[type="submit"]{
 display:flex!important;justify-content:center!important;align-items:center!important;
 box-sizing:border-box!important;width:61px!important;
 height:49px!important;min-height:49px!important;
 margin:0!important;padding:5px!important;font-size:13px!important;
 white-space:nowrap!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #readingStepHint{
 display:none!important;
}
/* Complete logs on demand: slide up without replacing/recreating the bound chat log. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.fortuna-mobile-log-open,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.fortuna-mobile-log-open:not(.method-open),
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.method-open{
 height:min(70%,560px)!important;
 max-height:calc(100% - 58px)!important;min-height:175px!important;
 overflow:hidden!important;padding:11px!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.fortuna-mobile-log-open>#umiChatMessages,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.fortuna-mobile-log-open>#preMessages,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.method-open>#preMessages{
 display:block!important;flex:1 1 auto!important;
 width:100%!important;max-width:100%!important;min-width:0!important;
 height:auto!important;min-height:60px!important;max-height:none!important;
 padding:9px!important;margin:0 0 7px!important;
 box-sizing:border-box!important;overflow:auto!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.fortuna-mobile-log-open>.game-privacy{
 display:block!important;flex:0 0 auto!important;
 font-size:11px!important;max-height:44px!important;overflow:auto!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.method-open>#preChatForm{
 display:flex!important;
}
/* Left-edge transient assistant speech. Tap speech to open full logs. */
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech{
 position:absolute!important;left:7px!important;bottom:91px!important;
 z-index:49!important;display:block!important;
 box-sizing:border-box!important;
 width:min(90%,430px)!important;max-height:46%!important;
 overflow:auto!important;
 padding:11px 14px!important;border-radius:0 13px 13px 0!important;
 border:1px solid #f4d59fc9!important;border-left:4px solid #ffd993!important;
 background:linear-gradient(125deg,#1a2345f5,#332845fa)!important;
 color:#fff7e8!important;box-shadow:0 8px 30px #000a!important;
 transform:translateX(-112%)!important;opacity:0!important;
 pointer-events:none!important;
 transition:transform .36s cubic-bezier(.22,.73,.31,1),opacity .25s ease!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech.fortuna-mobile-speaking{
 transform:translateX(0)!important;opacity:1!important;pointer-events:auto!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech strong{
 display:block!important;font-size:13px!important;color:#ffe3a1!important;margin-bottom:4px!important;
}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech p{
 font-size:14px!important;line-height:1.65!important;margin:0!important;
 overflow-wrap:anywhere!important;white-space:pre-wrap!important;
}
/* Prevent other legacy viewport fragments from consuming mobile interaction space. */
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui>.fortune-specialty,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui>.actions,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui>.hint,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui>#recentPanel{
 display:none!important;
}
@media(orientation:landscape){
 html[data-fortuna-mobile-ui="on"] header.top{
  height:32px!important;min-height:32px!important;
 }
 html[data-fortuna-mobile-ui="on"]:has(#entrance.active) main.wrap,
 html[data-fortuna-mobile-ui="on"]:has(#conversation.active) main.wrap{
  height:calc(var(--fortuna-mobile-vh) - 32px)!important;
 }
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar{
  top:3px!important;gap:3px!important;
 }
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>button{
  font-size:10px!important;height:29px!important;min-height:29px!important;padding:3px 8px!important;
 }
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-bar>.fortuna-mobile-enter-btn{
  top:34px!important;height:32px!important;min-height:32px!important;
 }
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech{
  bottom:73px!important;width:min(67%,435px)!important;max-height:50%!important;
  padding:6px 9px!important;
 }
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech p{font-size:12px!important;line-height:1.4!important}
 html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge,
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open){
  height:64px!important;padding:6px!important;
 }
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.method-open,
 html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.fortuna-mobile-log-open,
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.fortuna-mobile-log-open:not(.method-open){
  height:83%!important;max-height:calc(100% - 43px)!important;
 }
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatForm,
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatText,
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .fortuna-game-panel #preChatForm>.prechat-actions>button[type="submit"]{
  height:42px!important;min-height:42px!important;
 }
 html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm #umiChatText,
 html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>#umiChatForm #umiChatSend{
  height:42px!important;min-height:42px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech{transition:none!important}
}

/* 2026-10-20: the two original clickable doors track projected 3D door geometry. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.reading-door{
 visibility:hidden!important;pointer-events:none!important;
}
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.reading-door.fortuna-door-projected{
 display:block!important;visibility:visible!important;pointer-events:auto!important;
 left:var(--fortuna-door-x)!important;right:auto!important;
 top:var(--fortuna-door-y)!important;
 width:var(--fortuna-door-w)!important;height:var(--fortuna-door-h)!important;
 min-width:0!important;min-height:0!important;max-height:none!important;
 touch-action:manipulation!important;
}
/* Phone ritual: no second WebGL canvas or decorative film. Keep the real old hand-wash
   presentation and the ORIGINAL server-owned stop / reveal / PDF operations. */
html[data-fortuna-light-ritual="on"] #shuffle.active,
html[data-fortuna-light-ritual="on"] #cards.active{
 box-sizing:border-box!important;width:100%!important;min-width:0!important;
 max-width:100%!important;min-height:0!important;position:relative!important;
}
html[data-fortuna-light-ritual="on"]:has(#shuffle.active),
html[data-fortuna-light-ritual="on"]:has(#cards.active){
 height:var(--fortuna-mobile-vh)!important;overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"]:has(#shuffle.active) body,
html[data-fortuna-light-ritual="on"]:has(#cards.active) body{
 margin:0!important;height:var(--fortuna-mobile-vh)!important;overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"]:has(#shuffle.active) main.wrap,
html[data-fortuna-light-ritual="on"]:has(#cards.active) main.wrap{
 box-sizing:border-box!important;margin:0!important;padding:6px 7px!important;
 width:100%!important;max-width:none!important;min-height:0!important;
 height:calc(var(--fortuna-mobile-vh) - 39px)!important;overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"] #shuffle.active{
 display:flex!important;flex-direction:column!important;align-items:center!important;
 justify-content:space-between!important;height:100%!important;overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"] #shuffle>.hint{
 flex:0 0 auto!important;margin:6px auto 2px!important;
 padding:0 8px!important;line-height:1.5!important;font-size:14px!important;
}
html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage{
 display:block!important;flex:1 1 auto!important;
 box-sizing:border-box!important;width:min(95%,440px)!important;
 min-height:160px!important;max-height:560px!important;
 margin:3px auto 4px!important;overflow:hidden!important;
 touch-action:none!important;
}
html[data-fortuna-light-ritual="on"] #shuffle .wash-spread{
 position:absolute!important;inset:0!important;overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"] #shuffle #stop{
 flex:0 0 auto!important;display:block!important;position:relative!important;
 width:min(94%,370px)!important;min-height:52px!important;
 margin:3px auto max(10px,env(safe-area-inset-bottom))!important;
 z-index:12!important;touch-action:manipulation!important;
}
html[data-fortuna-light-ritual="on"] #shuffle .void-video,
html[data-fortuna-light-ritual="on"] #cards .void-video,
html[data-fortuna-light-ritual="on"] #shuffle .love-ambient-video,
html[data-fortuna-light-ritual="on"] #cards .love-ambient-video{
 display:none!important;
}
html[data-fortuna-light-ritual="on"] #cards.active{
 height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
 overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;
 padding-bottom:max(16px,env(safe-area-inset-bottom))!important;
}
html[data-fortuna-light-ritual="on"] #cards .layout-board{
 box-sizing:border-box!important;max-width:100%!important;
 margin:12px auto 18px!important;padding:8px 0!important;
}
html[data-fortuna-light-ritual="on"] #cards>.actions{
 position:relative!important;z-index:15!important;padding:3px 0 12px!important;
}
@media (orientation:landscape){
 html[data-fortuna-light-ritual="on"]:has(#shuffle.active) main.wrap,
 html[data-fortuna-light-ritual="on"]:has(#cards.active) main.wrap{
  height:calc(var(--fortuna-mobile-vh) - 32px)!important;
 }
 html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage{
  width:min(70%,470px)!important;min-height:110px!important;
 }
 html[data-fortuna-light-ritual="on"] #shuffle>.hint{font-size:12px!important;margin:0!important}
 html[data-fortuna-light-ritual="on"] #shuffle #stop{min-height:43px!important}
}

/* Restore the spectacular floating-card moment on phones without a second
   WebGL scene. The 32 already-loaded hand-wash card backs perform a brief
   airborne vortex, then settle into the original touch-driven shuffle. */
html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage.mobile-vortex-playing{
 isolation:isolate;
}
html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage.mobile-vortex-playing .wash-spread::before{
 content:"";position:absolute;inset:7% 4%;z-index:0;pointer-events:none;
 border-radius:50%;
 background:conic-gradient(from 25deg,transparent 0deg,#d7a66a75 52deg,
 transparent 93deg,#ae9fea70 146deg,transparent 198deg,#ffdf9690 271deg,transparent 336deg);
 box-shadow:0 0 42px #b7a5ff68,inset 0 0 65px #f4ca8554;
 animation:fortunaMobileVortexHalo 2.95s ease-in-out both;
}
html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage.mobile-vortex-playing .wash-spread::after{
 content:"";position:absolute;inset:12% 16%;z-index:0;pointer-events:none;
 background:radial-gradient(ellipse at center,#fff8dbe0 0%,#f4d4a54a 20%,transparent 66%);
 animation:fortunaMobileVortexLight 2.95s ease-in-out both;
}
@keyframes fortunaMobileVortexHalo{
 0%{opacity:0;transform:scale(.25) rotate(-110deg)}
 22%{opacity:.85;transform:scale(.8) rotate(30deg)}
 66%{opacity:1;transform:scale(1.16) rotate(390deg)}
 89%{opacity:.74;transform:scale(1.08) rotate(520deg)}
 100%{opacity:0;transform:scale(.76) rotate(570deg)}
}
@keyframes fortunaMobileVortexLight{
 0%{opacity:0;transform:scale(.2)}
 16%{opacity:.72;transform:scale(.65)}
 65%{opacity:.48;transform:scale(1.25)}
 89%{opacity:.94;transform:scale(1.5)}
 100%{opacity:0;transform:scale(1.9)}
}
@media(prefers-reduced-motion:reduce){
 html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage.mobile-vortex-playing .wash-spread::before,
 html[data-fortuna-light-ritual="on"] #shuffle .shuffle-stage.mobile-vortex-playing .wash-spread::after{animation:none!important;opacity:0!important}
}

/* Real 78-card kamifuda vortex: show the already-running Luna 3D room
   above the shuffle screen until its own FORTUNA_VORTEX_PREVIEW_FINISHED. */
html[data-fortuna-light-ritual="on"] body.fortuna-mobile-vortex-active{
 overflow:hidden!important;
}
html[data-fortuna-light-ritual="on"] body.fortuna-mobile-vortex-active #conversation.fortuna-game-ui.screen{
 display:block!important;position:fixed!important;
 top:0!important;left:0!important;right:0!important;bottom:0!important;
 width:100vw!important;height:100dvh!important;min-height:0!important;
 max-height:none!important;margin:0!important;padding:0!important;
 border:0!important;background:#0b0d1d!important;
 overflow:hidden!important;z-index:9999!important;pointer-events:none!important;
}
html[data-fortuna-light-ritual="on"] body.fortuna-mobile-vortex-active #conversation.fortuna-game-ui .luna-consultant{
 display:block!important;position:absolute!important;inset:0!important;
 width:100%!important;height:100%!important;min-height:0!important;
 max-height:none!important;margin:0!important;padding:0!important;
 border:0!important;border-radius:0!important;overflow:hidden!important;
 pointer-events:none!important;
}
html[data-fortuna-light-ritual="on"] body.fortuna-mobile-vortex-active #conversation.fortuna-game-ui .luna-consultant>:not(.fortuna-native-3d-room){
 display:none!important;
}
html[data-fortuna-light-ritual="on"] body.fortuna-mobile-vortex-active #conversation.fortuna-game-ui .fortuna-native-3d-room{
 display:block!important;visibility:visible!important;position:absolute!important;
 inset:0!important;width:100%!important;height:100%!important;max-height:none!important;
 min-height:0!important;border:0!important;z-index:1!important;pointer-events:none!important;
}

/* Mobile-only 2D conversation partners. Desktop rules remain untouched.
 * Portraits belong to the chat dock, never to the 3D room overlay. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.game-umi-portrait{
 display:block!important;
 position:absolute!important;left:auto!important;right:6px!important;
 top:auto!important;bottom:calc(100% + 5px)!important;
 width:clamp(78px,25vw,118px)!important;max-width:118px!important;
 height:clamp(105px,29vh,156px)!important;max-height:156px!important;
 object-fit:contain!important;object-position:center bottom!important;
 pointer-events:none!important;z-index:2!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>.luna-consultant-portrait{
 display:block!important;
 position:absolute!important;left:auto!important;right:6px!important;
 top:auto!important;bottom:calc(100% + 5px)!important;
 width:clamp(82px,27vw,120px)!important;max-width:120px!important;
 height:clamp(110px,30vh,158px)!important;max-height:158px!important;
 overflow:visible!important;pointer-events:none!important;z-index:2!important;
}
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>.luna-consultant-portrait img{
 display:block!important;
 width:100%!important;height:100%!important;object-fit:contain!important;
 object-position:center bottom!important;pointer-events:none!important;
}
/* Expanded history stays readable; the portrait never intercepts controls. */
html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge.fortuna-mobile-log-open>.game-umi-portrait,
html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel.fortuna-mobile-log-open>.luna-consultant-portrait{
 bottom:calc(100% + 3px)!important;
 height:min(19vh,100px)!important;
}
@media(orientation:landscape){
 html[data-fortuna-mobile-ui="on"] #entrance.fortuna-game-ui #umiFoyerScene>.umi-concierge>.game-umi-portrait,
 html[data-fortuna-mobile-ui="on"] #conversation.fortuna-game-ui .luna-consultant>.fortuna-game-panel:not(.method-open)>.luna-consultant-portrait{
  width:76px!important;height:min(28vh,90px)!important;
 }
}

/* Keep speaking portraits in front of the speech panel on phones. */
html[data-fortuna-mobile-ui="on"] #umiFoyerScene>.umi-concierge,
html[data-fortuna-mobile-ui="on"] .luna-consultant>.fortuna-game-panel{z-index:51!important}
html[data-fortuna-mobile-ui="on"] .fortuna-mobile-speech{width:min(70%,430px)!important}
