/* Loove 0.44: mobile game only; desktop game keeps existing styles. */
@media(max-width:700px){
 body.game-active>.header,body.game-active main>#help,body.game-active main>.trends,body.game-active>#footer{display:none!important}
 html.vk-embedded body.game-active{height:auto!important;min-height:100dvh!important;overflow-y:auto!important}
 body.game-active>main{width:100%!important;max-width:700px!important;padding:8px 12px 0!important;margin:0 auto!important;box-sizing:border-box}
 #game-room.mobile-game{display:grid;gap:8px;margin:0!important;padding:0!important;font-family:Montserrat,Arial,sans-serif;color:#1f2540}
 #game-room.mobile-game[hidden]{display:none!important}
 #game-room .mg-top{display:flex;align-items:center;justify-content:space-between;min-height:30px;gap:8px}
 #game-room .mg-top strong{font-size:25px;letter-spacing:-1px}
 #game-room .mg-top button{font:500 12px Montserrat,sans-serif;padding:8px 0;background:transparent;color:#349ec8;min-width:48px;text-align:left}
 #game-room .mg-top small{font-size:10px;color:#797e91}
 #game-room .mg-round{background:#fff;border-radius:18px;padding:12px 14px;min-width:0}
 #game-room .mg-round>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:8px}
 #game-room .mg-round b{font-size:16px;line-height:22px}
 #game-room .mg-round span{font-size:11px;color:#8b8da1;white-space:nowrap}
 #game-room .mg-round strong{font-size:18px;color:#169fc9}
 #game-room .mg-progress{display:flex;align-items:center;gap:10px;margin-top:8px}
 #game-room .mg-progress progress{appearance:none;display:block;width:100%;flex:1;height:8px;border:0;border-radius:8px;overflow:hidden;accent-color:#36aed1;background:#e8e9f3}
 #game-room .mg-progress progress::-webkit-progress-bar{background:#e8e9f3;border-radius:8px}
 #game-room .mg-progress progress::-webkit-progress-value{background:#36aed1;border-radius:8px}
 #game-room .mg-progress progress::-moz-progress-bar{background:#36aed1;border-radius:8px}
 #game-room .mg-progress small{font-size:10px;color:#81869b;white-space:nowrap}
 #game-room .mg-roster{padding:8px 12px;background:#fff;border-radius:18px}
 #game-room .mg-row-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:7px}
 #game-room .mg-row-heading b{font-size:15px;line-height:20px}
 #game-room .mg-row-heading span{font-size:9px;color:#9899a7}
 #game-room .mg-people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 #game-room .mg-person{display:flex;flex-direction:column;align-items:stretch;position:relative;overflow:hidden;padding:0;background:#edf7fa;border:2px solid transparent;border-radius:12px;min-width:0;text-align:left;font-family:inherit;color:#247ea6}
 #game-room .mg-person img{display:block;width:100%;height:64px;object-fit:cover;object-position:center 32%;border-radius:8px 8px 0 0}
 #game-room .mg-person-name{font-size:11px;font-weight:600;line-height:15px;padding:3px 5px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 #game-room .mg-person small{font-size:8px;line-height:12px;padding:0 5px 3px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 #game-room .mg-roster.blue .mg-person.selected{border-color:#24aee1}
 #game-room .mg-roster.pink .mg-person{background:#fff0f7;color:#c55791}
 #game-room .mg-roster.pink .mg-person.selected{border-color:#ec78ac}
 #game-room .mg-center{background:#fff;border-radius:18px;padding:12px 14px;min-width:0}
 #game-room .mg-address{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:8px;font-size:12px;font-weight:600;color:#4e5470;min-height:28px}
 #game-room .mg-address img{display:block;width:28px;height:28px;border-radius:50%;object-fit:cover;flex:0 0 28px}
 #game-room .mg-center h2{font-size:12px;line-height:17px;color:#20a0cf;margin:0 0 5px}
 #game-room .mg-center.pink h2{color:#d66b9c}
 #game-room .mg-question{background:#edf8fd;border-radius:12px;padding:10px 12px;font-size:15px;line-height:21px;margin:0 0 9px;color:#1f2540;overflow-wrap:anywhere;max-height:100px;overflow-y:auto}
 #game-room .mg-center.pink .mg-question{background:#fff1f7}
 #game-room #answer-form{display:grid;gap:7px;margin:0;padding:0}
 #game-room #answer-form label{font-size:12px;line-height:17px;color:#d46e9e;font-weight:600}
 #game-room #answer-text{display:block;box-sizing:border-box;width:100%;height:58px!important;min-height:58px!important;resize:vertical;border:1px solid #d9dce8;border-radius:12px;padding:9px 11px!important;font:400 16px/21px Montserrat,Arial,sans-serif;background:#fff;color:#343a4c;margin:0!important}
 #game-room #answer-form .primary,#game-room .mg-choice>.primary{width:100%;min-height:40px;border-radius:20px;font:600 13px/18px Montserrat,sans-serif;padding:10px 12px;white-space:normal;margin:0;position:static}
 #game-room .mg-center-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px}
 #game-room .mg-center-actions button{background:transparent;color:#7c8096;font:500 11px/16px Montserrat,sans-serif;padding:5px 0;min-height:28px}
 #game-room .mg-answer-sent,#game-room .mg-view-hint{font-size:12px;line-height:18px;color:#6f7588;margin:8px 0;overflow-wrap:anywhere}
 #game-room .mg-public-answers{max-height:150px;overflow-y:auto;border-top:1px solid #eeedf3;margin-top:8px}
 #game-room .mg-public-answers article{padding:8px 0;border-bottom:1px solid #eeedf3}
 #game-room .mg-public-answers b{font-size:11px}.mg-public-answers b.blue{color:#299dc9}.mg-public-answers b.pink{color:#d66b9c}
 #game-room .mg-public-answers p{font-size:12px;line-height:18px;margin:3px 0 0;overflow-wrap:anywhere}
 #game-room .mg-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:0 2px 6px}
 #game-room .mg-bottom small{font-size:9px;line-height:14px;color:#838397}
 #game-room .mg-bottom button{background:transparent;color:#349ec8;padding:6px 0;font:500 10px Montserrat,sans-serif}
 #game-room .mg-choice h2{font-size:18px;line-height:24px}
 #game-room .mg-choice p{font-size:12px;line-height:18px;color:#7c8096;margin:8px 0}
 #game-room .mg-choice>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
 #game-room .mg-choice-person{display:grid;gap:6px;border:2px solid transparent;border-radius:12px;background:#f0f8fc;padding:6px;min-width:0;font:500 11px Montserrat,sans-serif}
 #game-room .mg-choice-person img{width:100%;height:80px;object-fit:cover;border-radius:8px}
 #game-room .mg-choice-person.selected{border-color:#36acd1}
 #game-room .mg-choice>.outline{display:block;margin:8px 0 12px;width:100%;min-height:36px;font-size:12px;border:1px solid #dce2ea;border-radius:12px;background:#fff}
 /* Compact final screens keep the existing choice and mutuality mechanics. */
 body.game-active #game-room .result-panel{padding:14px!important}
 body.game-active #game-room .result-panel h1,body.game-active #game-room .match-screen h1{font-size:20px!important;line-height:26px!important}
 body.game-active #game-room .result-board{max-width:390px;margin:12px auto!important}
 body.game-active #game-room .result-help,body.game-active #game-room .room-hint{font-size:11px!important;line-height:16px!important}
 body.game-active #game-room .match-photos img{width:120px!important;height:140px!important;object-fit:cover}
}
@media(max-width:350px){#game-room .mg-person img{height:56px}#game-room .mg-round b{font-size:14px}#game-room .mg-round span{font-size:10px}#game-room .mg-address{font-size:11px}#game-room .mg-person-name{font-size:10px}}
