/* =====================================================================================
   MENUS (loaded after mw.css): the online home as cards, the match browser as a panel
   ===================================================================================== */

/* ---------- online home: Quick Match large, then the rest as photo cards, Combat Training as a slim row ---------- */
body.mode-online #play-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
body.mode-online #play-tiles .tile { min-height: 112px; align-content: end; padding: 14px 18px; }
body.mode-online #play-tiles .tile b { font-size: clamp(22px, 2vw, 28px); }
body.mode-online #play-tiles .tile span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-width: none; font-size: 12px; }
body.mode-online #play-tiles .tile[data-tile="quick"] { grid-column: 1 / -1; min-height: 180px; border-left: 3px solid var(--mw-acc); }
body.mode-online #play-tiles .tile[data-tile="quick"] b { font-size: clamp(32px, 3.2vw, 46px); }
body.mode-online #play-tiles .tile[data-tile="quick"] small::after { content: ' · SEARCH'; color: #7be07b; }
body.mode-online #play-tiles .tile[data-tile="training"] { grid-column: 1 / -1; min-height: 0; padding: 12px 18px; }
body.mode-online #play-tiles .tile[data-tile="training"] .art { opacity: 0.35; }
body.mode-online #play-tiles .tile[data-tile="training"] span { display: none; }
body.mode-online #play-tiles .tile[data-tile="training"] b { font-size: 20px; }
@media (max-width: 760px) { body.mode-online #play-tiles .tile { min-height: 86px; } body.mode-online #play-tiles .tile span { display: none; } body.mode-online #play-tiles .tile[data-tile="quick"] { min-height: 120px; } }

/* ---------- match browser: one panel with its header, rows and an empty state ---------- */
#pv-browser .mb-head { margin: 4px 0 0; padding: 10px 12px; background: rgba(16, 18, 20, 0.92); border: 1px solid var(--mw-line); border-bottom: 0; }
#pv-browser .mb-list { background: rgba(16, 18, 20, 0.92); border: 1px solid var(--mw-line); border-top: 0; padding: 0 6px 6px; min-height: 64px; }
#pv-browser .mb-list:empty { display: none; }
#pv-browser #mb-note { margin: 0; padding: 18px 16px; background: rgba(16, 18, 20, 0.92); border: 1px solid var(--mw-line); border-top: 0; font-size: 14px; color: var(--mw-dim); }
#pv-browser .mb-list:not(:empty) + #mb-note { border: 0; background: none; padding: 6px 2px; font-size: 12px; }
#pv-browser .mb-list:empty + #mb-note { margin-top: -14px; }

/* ---------- lobby: the same footer hints as every other menu; a title that fits one line ---------- */
#lobby :is(#lobby-hints, #cl-foot) { text-transform: uppercase; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.08em; color: var(--mw-dim); }
#lobby :is(#lobby-hints, #cl-foot) kbd { font-size: 12px; padding: 1px 6px; }
#lobby .cl #cl-title { font-size: clamp(24px, 2.4vw, 36px); }

/* phone / small-window scaling: --ui-zoom is set from the viewport in main.js (1 on a normal screen) */
.screen, #side, .side-btn, .support, .dd, .top-notes, #apply-dlg { zoom: var(--ui-zoom, 1); }
