/* Display-only mobile overrides. The existing PC styles and media are retained. */
.mobile-only{display:none}
.display-choice{border:0;padding:0;margin:20px auto 8px;display:flex;justify-content:center;gap:12px}
.display-choice legend{width:100%;margin-bottom:10px;font-size:13px;color:#dfc896}
.display-choice label{display:flex;align-items:center;gap:8px;padding:12px 20px;border:1px solid #a58b5d;border-radius:10px;color:#e9d7b6;cursor:pointer;font-size:15px;background:#251331}
.display-choice label:has(input:checked){border-color:#efd39a;background:#493051;color:#fff2d2;box-shadow:inset 0 0 0 1px #efd39a}
.display-choice input{accent-color:#e3c68c;width:17px;height:17px;margin:0}
.display-help{font-size:12px;color:#d0bed8;margin:8px 0 22px;line-height:1.6}
html[data-display="mobile"] #room{height:100dvh}
html[data-display="mobile"] #stage-scaler,html[data-display="mobile"] #stage{width:100%!important;height:100%!important;transform:none}
html[data-display="mobile"] #room .romina-drc-v3-shell-skin{display:none}
html[data-display="mobile"] #room .portrait{inset:0;width:100%;height:100%;border-radius:0;contain:none}
html[data-display="mobile"] #room .portrait:after{display:none}
html[data-display="mobile"] #room .romina-drc-v3-character-video{inset:0;width:100%;height:100%;transform:none;border:0;border-radius:0;box-shadow:none;object-fit:cover;object-position:center top}
html[data-display="mobile"] #room .romina-drc-v3-background-video{object-fit:cover}
html[data-display="mobile"] #mobile-chat-toggle{display:block;position:absolute;inset:0;z-index:15;width:100%;height:100%;border:0;border-radius:0;background:linear-gradient(0deg,#11091da6,transparent 24%);color:#fff0d4;padding:0;pointer-events:auto}
html[data-display="mobile"] #mobile-chat-toggle span{position:absolute;bottom:calc(30px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);white-space:nowrap;border:1px solid #dfc48788;border-radius:99px;background:#21102ac7;padding:12px 22px;font-size:14px;box-shadow:0 5px 22px #0005}
html[data-display="mobile"] #room.chat-open #mobile-chat-toggle span{display:none}
html[data-display="mobile"] #conversation-panel{display:none;position:fixed;inset:auto auto auto 50%;top:calc(var(--mobile-visible-top,0px) + var(--mobile-visible-height,100dvh) * .5);transform:translateX(-50%);width:min(100%,640px);height:calc(var(--mobile-visible-height,100dvh) * .5);max-height:none;padding:14px 16px max(10px,env(safe-area-inset-bottom));border:1px solid #d8bb7980;border-bottom:0;border-radius:22px 22px 0 0;background:linear-gradient(150deg,#281337ef,#100a1be8);box-shadow:0 -8px 35px #0005;backdrop-filter:blur(12px);color:#fff6ee;pointer-events:auto;text-shadow:none;overflow:hidden}
html[data-display="mobile"] #room.chat-open #conversation-panel{display:flex;flex-direction:column;gap:8px}
html[data-display="mobile"] #room .romina-drc-v3-chat-panel{position:static;display:flex;flex-direction:column;flex:1;min-height:0;pointer-events:auto;gap:8px}
html[data-display="mobile"] .mobile-chat-header{display:flex;align-items:center;justify-content:space-between;flex:none;gap:12px}
.mobile-chat-header div{display:flex;flex-direction:column;gap:3px}.mobile-chat-header span{font-size:10px;letter-spacing:.1em;color:#d8bb79}.mobile-chat-header strong{font-size:17px;font-weight:600}
#mobile-chat-close{border:1px solid #d8bb7966;border-radius:8px;background:#39223f;color:#ffedca;padding:10px 12px;font-size:13px;min-height:42px}
html[data-display="mobile"] #messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:10px;padding:3px 2px;scrollbar-width:thin}
html[data-display="mobile"] #room .romina-drc-v3-message{position:static;width:auto;max-width:100%;min-height:0;max-height:none;flex:none;padding:10px 13px;border-radius:13px;box-shadow:none;overflow:visible}
html[data-display="mobile"] #room .romina-drc-v3-message--user{align-self:flex-end;max-width:90%;background:#49345080;border-color:#bda98355}
html[data-display="mobile"] #room .romina-drc-v3-message-text{font-size:16px;line-height:1.65;max-width:none;max-height:none;overflow:visible;white-space:pre-wrap;overflow-wrap:anywhere}
html[data-display="mobile"] #room .romina-drc-v3-message--user .romina-drc-v3-message-text{font-size:13px}
html[data-display="mobile"] #room #status{position:static;flex:none;min-height:0;max-width:none;padding:0;font-size:11px;line-height:1.4;color:#d5c2db}
html[data-display="mobile"] #room .romina-drc-v3-quick-reply-panel{position:static;flex:none;width:100%;padding:0;border:0;background:transparent;box-shadow:none}
html[data-display="mobile"] .fixed-quick-heading{margin:0;gap:8px}
html[data-display="mobile"] #room .romina-drc-v3-quick-reply-title{font-size:11px;color:#d5c2db}
html[data-display="mobile"] #open-fixed-console{font-size:13px;padding:8px 12px;min-height:38px}
html[data-display="mobile"] #room .romina-drc-v3-quick-reply-grid{display:none}
html[data-display="mobile"] #room #chat-form{position:static;flex:none;width:100%;height:auto;gap:8px;pointer-events:auto}
html[data-display="mobile"] #room #message{flex:1;min-width:0;width:0;height:46px;min-height:46px;padding:10px 14px;font-size:16px;border-radius:10px}
html[data-display="mobile"] #room #send{flex:0 0 46px;width:46px;height:46px}
html[data-display="mobile"] #room .demo-footer{position:static;flex:none;left:auto;right:auto;bottom:auto;font-size:10px;gap:0;padding:0}
html[data-display="mobile"] #room .demo-footer>span{display:none}
html[data-display="mobile"] #room .demo-footer-links{gap:6px;justify-content:space-between;flex-wrap:nowrap}
html[data-display="mobile"] #room .demo-footer a{font-size:10px;line-height:1.4;padding:7px 5px;border:0;background:transparent;white-space:nowrap}
html[data-display="mobile"].mobile-keyboard #conversation-panel{top:calc(var(--mobile-visible-top,0px) + var(--mobile-visible-height,100dvh) * .2);height:calc(var(--mobile-visible-height,100dvh) * .8)}
html[data-display="mobile"].mobile-keyboard #room .demo-footer{display:none}
html[data-display="mobile"] #fixed-console{padding:16px;max-height:calc(var(--mobile-visible-height,100dvh) - 24px)}
@media(orientation:landscape){html[data-display="mobile"] #room .romina-drc-v3-character-video{object-fit:contain}html[data-display="mobile"] #conversation-panel{top:calc(var(--mobile-visible-top,0px) + var(--mobile-visible-height,100dvh) * .12);height:calc(var(--mobile-visible-height,100dvh) * .88)}}
