/* VogChat open rooms (open-rooms.js): live list + "open a room" sheet. Works on index.html and app.html. */
.vo, .vo-wrap {
    --vo-green: #00a884; --vo-green-d: #008069;
    --vo-bg: var(--bg-elev, var(--bg, #ffffff)); --vo-sunk: var(--bg-sunk, var(--sunk, #f0f2f5));
    --vo-text: var(--text, #111b21); --vo-meta: var(--text-3, var(--meta, #667781));
    --vo-line: var(--border, rgba(17, 27, 33, .1)); --vo-soft: rgba(0, 168, 132, .12);
}
[data-theme="dark"] .vo, [data-theme="dark"] .vo-wrap {
    --vo-bg: var(--bg-elev, var(--bg, #111b21)); --vo-sunk: var(--bg-sunk, var(--sunk, #202c33));
    --vo-text: var(--text, #e9edef); --vo-meta: var(--text-3, var(--meta, #8696a0));
    --vo-line: var(--border, rgba(255, 255, 255, .08)); --vo-soft: rgba(0, 168, 132, .18); --vo-green-d: #21c063;
}
.vo { display: flex; flex-direction: column; gap: 10px; color: var(--vo-text); text-align: left; }
.vo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vo-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--vo-meta); font-weight: 600; }
.vo-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--vo-green); flex: none; }
.vo-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--vo-green); animation: vo-ping 1.8s ease-out infinite; }
@keyframes vo-ping { from { transform: scale(1); opacity: .6; } to { transform: scale(2.8); opacity: 0; } }
.vo-filter { display: inline-flex; gap: 6px; }
.vo-chip { border: 1px solid var(--vo-line); background: transparent; color: var(--vo-text); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.vo-chip.on { background: var(--vo-green); border-color: var(--vo-green); color: #fff; }
.vo-topicbar { display: flex; gap: 6px; overflow-x: auto; margin: 0 -2px; padding: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vo-topicbar::-webkit-scrollbar { display: none; }
.vo-tchip { flex: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.vo-tchip svg { color: var(--c, currentColor); }
.vo-tchip.on { background: var(--c, var(--vo-green)); border-color: var(--c, var(--vo-green)); }
.vo-tchip.on svg { color: #fff; }
.vo-more { align-self: center; display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; color: var(--vo-green-d); font: inherit; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.vo-more[hidden] { display: none; }
.vo-more:hover { background: var(--vo-soft); }
.vo-more svg { transition: transform .35s; }
.vo-more:active svg { transform: rotate(180deg); }
.vo-list { display: flex; flex-direction: column; gap: 8px; min-height: 64px; }
.vo-row { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 18px; background: var(--vo-sunk); }
.vo-row.new { animation: vo-in .45s cubic-bezier(.2, .8, .2, 1) var(--d) both; }
@keyframes vo-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.vo-ic { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.vo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vo-txt b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-txt small { font-size: 12.5px; color: var(--vo-meta); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-n { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--vo-text); }
.vo-dots { display: flex; gap: 3px; margin-top: 3px; }
.vo-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--vo-line); }
.vo-dots i.on { background: var(--c); }
.vo-dots i.pop { animation: vo-pop .5s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes vo-pop { from { transform: scale(.2); } 60% { transform: scale(1.6); } to { transform: scale(1); } }
.vo-join { flex: none; border: 0; border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 13.5px; font-weight: 700; color: #fff; background: var(--vo-green); cursor: pointer; transition: transform .1s, opacity .15s; }
.vo-join:active { transform: scale(.95); }
.vo-join:disabled { background: var(--vo-line); color: var(--vo-meta); cursor: default; }
.vo-join.busy, .vo-btn.busy { opacity: .6; pointer-events: none; }
.vo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border: 0; border-radius: 25px; font: inherit; font-size: 16px; font-weight: 700; color: #fff; background: var(--vo-green); cursor: pointer; transition: transform .1s, opacity .15s; }
.vo-btn:active { transform: scale(.99); }
.vo-new { background: var(--vo-soft); color: var(--vo-green-d); }
.vo-foot { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--vo-meta); }
.vo-foot .ico, .vo-foot svg { margin-top: 2px; flex: none; }
.vo-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 10px; border-radius: 18px; background: var(--vo-sunk); }
.vo-empty b { font-size: 16px; }
.vo-empty-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--vo-green); background: var(--vo-soft); animation: vo-float 3s ease-in-out infinite; }
@keyframes vo-float { 50% { transform: translateY(-4px) rotate(-8deg); } }
.vo-empty-sub { margin: 0; font-size: 13.5px; color: var(--vo-meta); }
.vo-link { border: 0; background: none; color: var(--vo-green-d); font: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; text-decoration: underline; }
.vo-skel { height: 66px; border-radius: 18px; background: linear-gradient(90deg, var(--vo-sunk) 0%, var(--vo-line) 50%, var(--vo-sunk) 100%); background-size: 200% 100%; animation: vo-skel 1.2s linear infinite; }
@keyframes vo-skel { to { background-position: -200% 0; } }

/* sheet: from the bottom on phones, centred on wide screens */
.vo-wrap { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: flex-end; justify-content: center; }
.vo-back { position: absolute; inset: 0; background: rgba(11, 20, 26, .45); opacity: 0; transition: opacity .2s; }
.vo-sheet { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: var(--vo-bg); color: var(--vo-text); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; gap: 10px; }
.vo-wrap.in .vo-back { opacity: 1; }
.vo-wrap.in .vo-sheet { transform: none; }
@media (min-width: 700px) {
    .vo-wrap { align-items: center; }
    .vo-sheet { border-radius: 22px; transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s, opacity .2s; }
    .vo-wrap.in .vo-sheet { opacity: 1; }
    .vo-grab { display: none; }
}
.vo-wrap.small .vo-sheet { max-width: 380px; padding-top: 22px; }
.vo-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--vo-line); align-self: center; }
.vo-head { display: flex; align-items: center; justify-content: space-between; }
.vo-head b { font-size: 19px; }
.vo-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--vo-sunk); color: var(--vo-text); display: grid; place-items: center; cursor: pointer; }
.vo-lbl { margin: 4px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--vo-meta); }
.vo-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.vo-topic { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 14px; border: 2px solid transparent; background: var(--vo-sunk); color: var(--vo-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-align: left; transition: border-color .15s, transform .1s; }
.vo-topic:active { transform: scale(.97); }
.vo-topic.on { border-color: var(--c); }
.vo-ti { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--c); flex: none; }
.vo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vo-rules { list-style: none; margin: 4px 0 0; padding: 12px; border-radius: 14px; background: var(--vo-sunk); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; line-height: 1.35; }
.vo-rules li { display: flex; gap: 9px; align-items: flex-start; }
.vo-rules svg, .vo-warn svg { flex: none; margin-top: 1px; color: var(--vo-green-d); }
.vo-warn { display: flex; gap: 9px; margin: 0; padding: 11px 12px; border-radius: 14px; background: rgba(245, 158, 11, .14); color: var(--vo-text); font-size: 13.5px; line-height: 1.4; }
.vo-warn svg { color: #b45309; }
.vo-alert { margin: 0 0 8px; font-size: 15px; line-height: 1.45; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    .vo-dot::after, .vo-row.new, .vo-dots i.pop, .vo-empty-ic, .vo-skel { animation: none !important; }
}

/* fixed topic rooms */
.vo-langpick { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--vo-line); border-radius: 999px; padding: 4px 6px 4px 11px; color: var(--vo-meta); }
.vo-lang { border: 0; background: transparent; color: var(--vo-text); font: inherit; font-size: 13.5px; font-weight: 600; padding: 2px 4px; outline: none; cursor: pointer; max-width: 160px; }
.vo-q { font-size: 13px; color: var(--vo-text); opacity: .78; font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 1px; }
.vo-row.live { box-shadow: inset 0 0 0 2px var(--c); }
.vo-row .vo-n { color: var(--vo-green-d); }
