/* 手機共用調整；桌面、沙龍畫布及論壇原生內容維持既有樣式。 */
@media (max-width: 767px) {
  /* Discord 與回到頁首已放入手機選單，只保留一個客服入口。 */
  body.meow-modern-chrome .floating-buttons,
  body.meow-modern-chrome .chat-message-box,
  body.meow-modern-chrome .chat-float-button-tooltip { display:none!important; }
  body.meow-modern-chrome .chat-float-container {
    right:max(12px,env(safe-area-inset-right,0px))!important;
    bottom:calc(12px + env(safe-area-inset-bottom,0px))!important;
    gap:0!important;
  }
  body.meow-modern-chrome .chat-float-button {
    width:44px!important; height:44px!important; animation:none!important;
    box-shadow:0 3px 12px #0003; transition:none;
  }
  body.meow-modern-chrome .chat-float-button:hover { transform:none; }
  body.meow-modern-chrome .chat-float-button:focus-visible { outline:3px solid #1876a4; outline-offset:3px; }
  body.meow-modern-chrome .chat-float-button i { font-size:19px; }
  html.meow-mobile-nav-open body.meow-modern-chrome .chat-float-container { visibility:hidden; pointer-events:none; }

  /* 客服由玩家開啟；鍵盤與瀏覽器工具列變動時仍能看見關閉和輸入控制。 */
  body.meow-modern-chrome .chat-widget-container {
    inset:auto 12px calc(12px + env(safe-area-inset-bottom,0px));
    width:calc(100% - 24px); max-width:420px; margin-inline:auto;
    height:min(640px,calc(100vh - 92px - env(safe-area-inset-bottom,0px)));
    height:min(640px,calc(100dvh - 92px - env(safe-area-inset-bottom,0px)));
    max-height:none; border-radius:14px;
  }
  body.meow-modern-chrome .chat-widget-container.active { animation:none; }
  body.meow-modern-chrome .chat-cat-decoration { display:none; }
  body.meow-modern-chrome .chat-content { margin-top:0; min-height:0; height:100%; border-radius:14px; }
  body.meow-modern-chrome .chat-header { padding:10px 12px; flex-shrink:0; }
  body.meow-modern-chrome .chat-header-subtitle { font-size:13px; line-height:1.5; }
  body.meow-modern-chrome :is(.chat-close-btn,.chat-action-btn) { width:44px; height:44px; flex:none; }
  body.meow-modern-chrome .chat-input-area { padding:10px; flex-shrink:0; }
  body.meow-modern-chrome .chat-input-container { gap:2px; padding:6px; }
  body.meow-modern-chrome .chat-input { min-width:0; }
  body.meow-modern-chrome :is(.chat-input,.nickname-input,.email-input) { font-size:16px; }
  body.meow-modern-chrome .chat-nickname-screen { padding:20px 16px; min-height:0; overflow:auto; }
  body.meow-modern-chrome .message-bubble { font-size:15px; line-height:1.65; }
  body.meow-modern-chrome .message-time { font-size:12px; }
  body.meow-modern-chrome .chat-messages { overscroll-behavior:contain; }
  body.meow-modern-chrome .email-collection-screen { top:0; bottom:0; height:100%; max-height:100%; border-radius:14px; }
  body.meow-modern-chrome :is(.start-chat-btn,.email-submit-btn,.email-skip-btn) { min-height:44px; }

  /* 使用既有元件類別，避免更動遊戲工具及論壇原生表單尺寸。 */
  body.meow-modern-chrome.page-inner:not(.page-salon):not(.meow-bbs-chrome) form :is(
    input[type="text"],input[type="email"],input[type="password"],input[type="search"],
    input[type="tel"],input[type="url"],textarea,select
  ) { font-size:16px; line-height:1.5; }
  body.meow-modern-chrome .footer :is(.footer-copy,.footer-disclaimer,.footer-legal-link,.footer-link) { font-size:13px; line-height:1.7; }
  body.meow-modern-chrome .footer .footer-legal-link { display:inline-flex; align-items:center; min-height:44px; }
  body.meow-modern-chrome:not(.page-salon) .footer { padding-bottom:calc(68px + env(safe-area-inset-bottom,0px)); }

  html body.meow-home-v2 .quick-links strong { font-size:15px; line-height:1.5; white-space:normal; }
  html body.meow-home-v2 .quick-links small { font-size:13px; line-height:1.6; white-space:normal; }
  html body.meow-home-v2 #home-v2-lower .mr-name { font-size:14px; }
  html body.meow-home-v2 #home-v2-lower .mr-detail { font-size:13px; line-height:1.6; }
}
