/* Loove 0.45: result actions + compact mobile profile controls. */
#game-room .result-panel>#result-private,
#game-room .result-panel>#group-chat,
#game-room .match-screen>#match-chat,
#game-room .match-screen>#match-home,
#game-room .match-screen>#match-results{
 display:flex!important;align-items:center;justify-content:center;
 width:min(100%,300px)!important;min-height:44px!important;height:auto!important;
 padding:10px 16px!important;margin:8px auto 0!important;
 box-sizing:border-box;border-radius:22px!important;
 font:500 13px/20px Montserrat,Arial,sans-serif!important;
 text-align:center;white-space:normal;position:static!important;
}
#game-room #group-chat,#game-room #match-home,#game-room #match-results{
 background:#fff!important;border:1px solid #b1dbe8!important;color:#328bad!important;
}
#game-room #match-results{border-color:transparent!important;background:transparent!important;}
@media(max-width:700px){
 .loove-modal:has(.profile-layout),.loove-modal:has(#profile-form){
  box-sizing:border-box!important;width:calc(100% - 24px)!important;
  max-width:560px!important;max-height:calc(100dvh - 24px)!important;
  padding:16px!important;border-radius:20px!important;overflow-y:auto!important;
  overscroll-behavior:contain;
 }
 .loove-modal:has(#profile-form) .modal-heading{margin-bottom:12px!important;gap:12px;align-items:center}
 .loove-modal:has(#profile-form) .modal-heading h2{font-size:18px!important;line-height:24px!important}
 .loove-modal:has(#profile-form) .close{min-width:36px;min-height:36px;font-size:28px!important}
 .loove-modal .profile-notice{padding:10px 12px!important;font-size:12px!important;line-height:18px!important;margin:0 0 12px!important;box-shadow:none!important;border-radius:12px!important}
 .loove-modal .edit-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .loove-modal #profile-form{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;min-width:0}
 .loove-modal #profile-form .form-block{margin:0!important;padding:0!important;min-width:0}
 .loove-modal #profile-form h3{font-size:13px!important;line-height:19px!important;margin:0 0 6px!important;font-weight:600}
 .loove-modal #profile-form h3 span{font-size:11px!important;font-weight:400}
 .loove-modal #profile-form input:not([type=checkbox]):not([type=radio]):not([type=file]),
 .loove-modal #profile-form select{
  box-sizing:border-box!important;display:block!important;width:100%!important;
  height:44px!important;min-height:44px!important;max-height:none!important;
  padding:10px 12px!important;margin:0 0 6px!important;
  border:1px solid #dce0e8!important;border-radius:12px!important;
  background-color:#fff!important;color:#343744!important;font:400 16px/22px Montserrat,Arial,sans-serif!important;
 }
 .loove-modal #profile-form select{padding-right:30px!important}
 .loove-modal #profile-form .age-range{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:10px!important;margin-top:6px!important}
 .loove-modal #profile-form .age-range label{font-size:12px!important;line-height:18px!important}
 .loove-modal #profile-form .form-hint,.loove-modal #photo-upload-status{font-size:11px!important;line-height:17px!important;margin:6px 0!important}
 .loove-modal .photo-upload-row{display:grid!important;grid-template-columns:72px minmax(0,1fr)!important;align-items:start!important;gap:12px!important}
 .loove-modal .photo-upload-row>img{width:72px!important;height:88px!important;border-radius:12px!important;object-fit:cover}
 .loove-modal .photo-upload-row p{font-size:11px!important;line-height:17px!important;margin:6px 0!important}
 .loove-modal .photo-upload-label{display:flex!important;align-items:center;justify-content:center;min-height:40px!important;padding:8px 12px!important;font-size:12px!important;line-height:18px!important;text-align:center;box-sizing:border-box}
 .loove-modal .profile-form-actions{display:flex!important;gap:8px!important;flex-wrap:wrap;margin:4px 0 0!important;padding:0!important}
 .loove-modal .profile-form-actions button{flex:1;min-width:110px;min-height:44px!important;padding:10px 12px!important;font-size:13px!important;line-height:20px!important;margin:0!important;border-radius:14px!important}
 .loove-modal .profile-layout{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
 .loove-modal .profile-sidebar{display:block!important}
 .loove-modal .profile-menu{display:grid!important;grid-template-columns:minmax(0,1fr)!important;padding:10px!important;gap:6px!important;margin-top:12px!important;box-shadow:none!important;border-radius:14px!important}
 .loove-modal .profile-menu>button{
  display:flex!important;align-items:center!important;gap:8px!important;
  width:100%!important;min-height:40px!important;height:auto!important;
  padding:9px 12px!important;margin:0!important;border:1px solid #d9e9ef!important;
  border-radius:12px!important;background:#f5fafc!important;
  font:500 12px/18px Montserrat,Arial,sans-serif!important;text-align:left!important;white-space:normal!important;
 }
 .loove-modal .profile-menu>button::before{flex:0 0 20px!important;width:20px!important;height:20px!important;background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important}
 .loove-modal .profile-menu>button>svg,.loove-modal .profile-menu>button>img{width:20px!important;height:20px!important;flex:0 0 20px!important;object-fit:contain}
 .loove-modal .economy-profile .profile-menu>button:not(:has(img,svg))::before{content:'';display:block}
 .loove-modal .economy-profile .profile-menu>button:nth-child(1):not(:has(img,svg))::before{background-image:url('assets/chat-1.png')}
 .loove-modal .economy-profile .profile-menu>button:nth-child(2):not(:has(img,svg))::before{background-image:url('assets/gift.png')}
 .loove-modal .economy-profile .profile-menu>button:nth-child(3):not(:has(img,svg))::before{background-image:url('assets/coins-menu.png')}
 .loove-modal .economy-profile .profile-menu>button:nth-child(4):not(:has(img,svg))::before{background-image:url('assets/bookmark.png')}
 .loove-modal .economy-profile .profile-menu>button:nth-child(5):not(:has(img,svg))::before{background-image:url('assets/block.svg')}
 .loove-modal .profile-summary{padding:12px!important;box-shadow:none!important;border-radius:14px!important}
 .loove-modal .profile-summary h3{font-size:18px!important;line-height:24px!important;margin:0 28px 6px 0!important}
 .loove-modal .profile-summary p,.loove-modal .profile-details p{font-size:12px!important;line-height:18px!important}
 .loove-modal .profile-details{padding:12px!important;border-radius:14px!important;box-shadow:none!important}
 .loove-modal .profile-details p{margin:6px 0!important}
 .loove-modal .rating-pill{font-size:12px!important;line-height:18px!important;padding:7px 12px!important}
 .loove-modal .edit-sidebar{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
 .loove-modal .edit-sidebar .photo-panel{display:none!important}
 .loove-modal .edit-menu{padding:10px!important;margin:0!important;box-shadow:none!important}
 .loove-modal .edit-menu p,.loove-modal .edit-menu button{font-size:12px!important;line-height:18px!important}
}
@media(max-width:700px){.loove-modal .profile-menu>button:has(>svg,>img)::before{display:none!important}}
