.app-wrapper.is-xy28-chat{height:calc(var(--xy28-viewport-height,100dvh)/var(--app-zoom,1));overflow:hidden;overscroll-behavior:none}
.page-container.is-xy28-chat{height:100%;overflow:hidden;padding-bottom:0;overscroll-behavior:none;will-change:auto}
.xy28-chat{touch-action:pan-y}
@media(max-width:540px){
 html.pc28-mobile-viewport,html.pc28-mobile-viewport body{overflow:hidden;overscroll-behavior:none;height:100%;width:100%}
 html.pc28-mobile-viewport .app-wrapper.is-xy28-chat{position:fixed;top:var(--xy28-viewport-top,0px);left:0;width:100%;height:var(--xy28-viewport-height,100dvh);transform:none;max-height:none}
 .is-xy28-chat .xy28-chat{padding-top:env(safe-area-inset-top);box-sizing:border-box}
 .is-xy28-chat .chat-header{height:46px;min-height:46px}
 .is-xy28-chat .chat-header .title-text{font-size:16px}
 .is-xy28-chat .chat-header .schedule-text{font-size:10px}
 .is-xy28-chat .info-bar{height:50px;min-height:50px;flex-shrink:0}
 .is-xy28-chat .last-result-wrapper{flex-shrink:0}
 .is-xy28-chat .last-result{min-height:40px;padding-top:4px;padding-bottom:4px}
 .is-xy28-chat .chat-input-area{padding:4px 10px}
 .is-xy28-chat .chat-input-area .bet-input{font-size:16px;height:36px;touch-action:manipulation}
 .is-xy28-chat .chat-input-area .send-btn{height:36px}
 .is-xy28-chat .bottom-nav{min-height:46px;padding:3px 0 max(8px,env(safe-area-inset-bottom))}
 .is-xy28-chat .bottom-nav .nav-item{padding:2px 0;font-size:11px}
 .is-xy28-chat .bottom-nav .nav-icon{width:22px;height:22px}
 .is-xy28-chat .chat-messages{overscroll-behavior:contain;touch-action:pan-y}
}
/* Keep Safari's visual viewport independent of desktop zoom and route-shell offsets. */
html.pc28-mobile-viewport #app{zoom:1!important;transform:none!important;width:100%!important;max-width:none!important;min-height:0!important}
html.pc28-mobile-viewport .app-wrapper.is-xy28-chat{position:fixed!important;top:var(--xy28-viewport-top,0px)!important;left:0!important;right:0!important;bottom:auto!important;width:100%!important;height:var(--xy28-viewport-height,100dvh)!important;min-height:0!important;max-height:var(--xy28-viewport-height,100dvh)!important;transform:none!important;zoom:1!important}
html.pc28-mobile-viewport .page-container.is-xy28-chat{position:absolute!important;inset:0!important;height:100%!important;min-height:0!important;padding:0!important;transform:none!important;will-change:auto!important;overflow:hidden!important}
html.pc28-mobile-viewport .xy28-chat{height:100%!important;max-height:100%!important;min-height:0!important;box-sizing:border-box;transform:none!important;zoom:1!important;touch-action:pan-y}
html.pc28-mobile-viewport .xy28-chat .chat-messages{flex:1 1 0!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior-y:contain}
html.pc28-mobile-viewport .xy28-chat .chat-header,
html.pc28-mobile-viewport .xy28-chat .info-bar,
html.pc28-mobile-viewport .xy28-chat .last-result-wrapper,
html.pc28-mobile-viewport .xy28-chat .chat-input-area,
html.pc28-mobile-viewport .xy28-chat .bottom-nav{flex-shrink:0!important}
html.pc28-mobile-viewport .xy28-chat .bottom-nav{position:relative!important;bottom:auto!important;margin:0!important;padding-bottom:max(8px,env(safe-area-inset-bottom))!important}
html.pc28-mobile-viewport .xy28-chat input,
html.pc28-mobile-viewport .xy28-chat textarea{font-size:16px!important;touch-action:manipulation}
html.pc28-mobile-viewport .xy28-chat button,
html.pc28-mobile-viewport .xy28-chat a,
html.pc28-mobile-viewport .xy28-chat .nav-item{touch-action:manipulation}
/* Compact room density: roughly one size down while keeping input at 16px. */
html.pc28-mobile-viewport .xy28-chat .chat-header{height:44px;min-height:44px;padding:0 12px}
html.pc28-mobile-viewport .xy28-chat .chat-header .title-text{font-size:16px}
html.pc28-mobile-viewport .xy28-chat .chat-header .online-count{font-size:12px}
html.pc28-mobile-viewport .xy28-chat .chat-header .header-icon{width:20px;height:20px}
html.pc28-mobile-viewport .xy28-chat .info-bar{height:46px;min-height:46px}
html.pc28-mobile-viewport .xy28-chat .info-bar .issue-label{font-size:12px}
html.pc28-mobile-viewport .xy28-chat .info-bar .balance-label{font-size:12px}
html.pc28-mobile-viewport .xy28-chat .info-bar .balance-value{font-size:15px}
html.pc28-mobile-viewport .xy28-chat .info-bar .countdown-box{font-size:12px;padding:2px 8px}
html.pc28-mobile-viewport .xy28-chat .last-result{min-height:37px;gap:4px;padding:4px 7px}
html.pc28-mobile-viewport .xy28-chat .last-result .ball{width:20px;height:20px;font-size:12px}
html.pc28-mobile-viewport .xy28-chat .last-result .result-type{font-size:12px}
html.pc28-mobile-viewport .xy28-chat .chat-messages{padding:7px 9px}
html.pc28-mobile-viewport .xy28-chat .message-item{margin-bottom:10px}
html.pc28-mobile-viewport .xy28-chat .user-avatar-col .avatar-img,
html.pc28-mobile-viewport .xy28-chat .user-avatar-col .avatar-fallback{width:40px;height:40px}
html.pc28-mobile-viewport .xy28-chat .user-avatar-col .avatar-fallback{font-size:18px}
html.pc28-mobile-viewport .xy28-chat .user-info{gap:7px;margin-bottom:3px}
html.pc28-mobile-viewport .xy28-chat .user-info .user-name{font-size:12px}
html.pc28-mobile-viewport .xy28-chat .user-info .msg-time{font-size:11px}
html.pc28-mobile-viewport .xy28-chat .msg-bubble{font-size:15px;line-height:1.45;padding:7px 10px}
html.pc28-mobile-viewport .xy28-chat .system-text-msg{font-size:11px;padding:4px 9px}
html.pc28-mobile-viewport .xy28-chat .system-card .card-header{font-size:13px;padding:7px}
html.pc28-mobile-viewport .xy28-chat .system-card .card-body{padding:12px;gap:8px}
html.pc28-mobile-viewport .xy28-chat .system-card .ball{width:22px;height:22px;font-size:13px}
html.pc28-mobile-viewport .xy28-chat .system-card .result-type{font-size:15px}
html.pc28-mobile-viewport .xy28-chat .bill-list-card{padding:9px}
html.pc28-mobile-viewport .xy28-chat .bill-list-card .bill-header{font-size:13px;margin-bottom:8px}
html.pc28-mobile-viewport .xy28-chat .bill-list-card .bill-item{padding:8px 12px}
html.pc28-mobile-viewport .xy28-chat .bill-list-card .name{font-size:13px}
html.pc28-mobile-viewport .xy28-chat .bottom-nav{min-height:44px}
html.pc28-mobile-viewport .xy28-chat .bottom-nav .nav-icon{width:20px;height:20px}
/* Allow full header contents to determine height; never center overflowing text above it. */
html.pc28-mobile-viewport .xy28-chat .chat-header{height:auto!important;min-height:48px!important;padding:6px 12px!important;align-items:center!important;box-sizing:border-box}
html.pc28-mobile-viewport .xy28-chat .chat-header .header-title{position:relative;min-width:0;height:auto!important;max-height:none!important;line-height:1.25!important;padding:0 24px 0 0;gap:2px;box-sizing:border-box}
html.pc28-mobile-viewport .xy28-chat .chat-header .title-row{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center;justify-content:center;min-height:20px;line-height:20px}
html.pc28-mobile-viewport .xy28-chat .chat-header .title-text,
html.pc28-mobile-viewport .xy28-chat .chat-header .online-count{line-height:20px!important;white-space:nowrap}
html.pc28-mobile-viewport .xy28-chat .chat-header .title-arrow{position:absolute!important;right:0;top:0;margin:0!important;line-height:12px!important}
html.pc28-mobile-viewport .xy28-chat .chat-header .schedule-text{max-width:100%!important;margin-top:0!important;line-height:13px!important;white-space:normal;overflow-wrap:break-word}
/* Apply the lower safe area only at the outer footer, not twice at the input. */
html.pc28-mobile-viewport .xy28-chat .chat-input-area{padding:4px 10px!important}
html.pc28-mobile-viewport .xy28-chat .bottom-nav{padding-top:3px!important;padding-bottom:max(6px,env(safe-area-inset-bottom))!important;min-height:44px!important}
