/* ============================================
   MOBILE OVERRIDES
   Main page only. Edit this file for mobile layout.
   ============================================ */

@media (max-width: 768px) {
}
@media (max-width: 768px) {
    body { padding: 10px; }
    .container { width: 100%; }
    .top-header-bar > .d-flex { gap: 8px; flex-wrap: wrap; }
    .language-switcher { width: 100%; justify-content: center; }
    .language-label { font-size: 12px; }
    .language-flags { font-size: 13px; }
    .lang-select { min-width: 132px; min-height: 38px; font-size: 12px; }
    .current-room { grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; border-radius: 14px; }
    .room-row { min-height: 56px; padding: 8px 10px; }
    .qr-wrapper { gap: 14px; }
    .refresh-block { min-width: 72px; }
    .drop-zone { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
    .chat-messages-container { height: min(42vh, 340px); min-height: 220px; }
    .copyright-footer { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}

@media (max-width: 480px) {
    .current-room { grid-template-columns: 1fr; }
    .room-row { min-height: 52px; }
    .top-header-bar h1 { font-size: 1.55rem !important; }
    .top-header-bar > .d-flex > a { font-size: 13px !important; }
    .qr-wrapper { flex-direction: column; }
    #qrContainer { max-width: 100%; }
    #qrContainer canvas, #qrContainer img { max-width: min(68vw, 240px); height: auto; }
    .refresh-block { flex-direction: row; gap: 8px; }
    .refresh-label { max-width: 120px; }
    .refresh-timer { min-width: 34px; }
    #joinControlsPanel .row > .col-md-4 { flex: 0 0 100%; width: 100%; }
    #joinControlsPanel .d-flex { flex-direction: column; }
    #joinControlsPanel .d-flex > .btn,
    #joinControlsPanel .d-flex > #joinRoomBtn { width: 100%; flex: none; }
    .modal-dialog { margin: .5rem; }
    .copyright-footer { font-size: 11px; }
}
