/* The room (canvas: each game's "Oda" board, "Ortak: ses ve menü", "Oda: ortak parçalar"): the lobby the hub draws into
   #app (public/hub.js renderLobby), the sheets that rise from the bottom (game picker, a player, renaming, the menu,
   the TV steps), and the voice chat's button, join sheet and panel (public/voice.js). On /ds/ds.css (buttons, app
   icons, the games' colours .t-<id>). Every rule reaches only inside the room's own boxes (:where(.room, .rlayer)):
   the landing shares this page and uses some of the same class names. A running game is in .rgame: the room's bar on
   top (.room.rhead), the game's own screen (#game) under it, out of this sheet's reach except for the people's colours,
   name tags and team colours, which a game shares. */

.room { display: flex; flex-direction: column; gap: 14px; max-width: 520px; min-height: 100vh; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 1.4; }
/* a button here takes the page's font; each kind sets its own size and weight (no specificity: theirs win) */
:where(.room, .rlayer) button { font-family: inherit; line-height: inherit; color: inherit; cursor: pointer; }
:where(.room, .rlayer) .i { width: 20px; height: 20px; }
:where(.room, .rlayer) .rbody { display: flex; flex-direction: column; gap: 14px; }
:where(.room, .rlayer) .rbody.away { opacity: 0.5; filter: saturate(0.6); pointer-events: none; }

/* ---------- top bar: the room, the voice chat, the menu ---------- */
:where(.room, .rlayer) .bar { display: flex; align-items: center; gap: 10px; min-height: 44px; }
:where(.room, .rlayer) .bt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
:where(.room, .rlayer) .bt b { font-size: 24px; font-weight: 1000; }
:where(.room, .rlayer) .pillbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 13px; font-weight: 800; }
:where(.room, .rlayer) .iconbtn { width: 40px; padding: 0; }
:where(.room, .rlayer) .iconbtn .i { width: 18px; height: 18px; }
:where(.room, .rlayer) .netbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 210, 63, 0.12); border: 1px solid rgba(255, 210, 63, 0.45); font-size: 14px; font-weight: 900; color: #ffe9a3; }
:where(.room, .rlayer) .netbar .i { width: 18px; height: 18px; color: var(--sun); }
:where(.room, .rlayer) .rspin { animation: rspin 0.9s linear infinite; }
@keyframes rspin { to { transform: rotate(360deg); } }

/* ---------- a game in the new look: the bar (its icon, its name, a line from the game, voice, the menu), then the game ---------- */
.rgame { display: flex; flex-direction: column; max-width: 520px; min-height: 100vh; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(22px + env(safe-area-inset-bottom)); font-size: 16px; line-height: 1.4; }
.room.rhead { position: relative; z-index: 3; min-height: 0; max-width: none; margin: 0; padding: 0; gap: 10px; } /* over a game's decorations (confetti), under its full-screen moments */
:where(.rgame) #game { position: relative; flex: 1; display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
:where(.room, .rlayer) .gbar .ai.ai-bar { width: 34px; height: 34px; border-radius: 10px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
:where(.room, .rlayer) .gbar .ai.ai-bar svg { width: 24px; height: 24px; }
:where(.room, .rlayer) .gbar .bt b { font-size: 16px; font-weight: 900; }
:where(.room, .rlayer) .gbar .gsub { font-size: 12px; font-weight: 700; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.room, .rlayer) .gbar .gsub:empty { display: none; }
/* someone who came in while a game was on: they watch until it ends */
:where(.rgame) .spect { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; font-size: 17px; font-weight: 900; color: #ddd5f3; }
:where(.rgame) .spect b { max-width: 26ch; }
:where(.rgame) .spic { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; animation: spect 2.4s ease-in-out infinite; }
:where(.rgame) .spic .i { width: 40px; height: 40px; stroke-width: 2.2; }
@keyframes spect { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-4px); } }

/* ---------- the code box: QR, code, the invite link ---------- */
:where(.room, .rlayer) .codebox { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); border: 1px solid transparent; }
:where(.room, .rlayer) .qr { position: relative; width: 96px; height: 96px; flex: none; padding: 5px; border-radius: 12px; background: #fff; }
:where(.room, .rlayer) .qr svg { width: 100%; height: 100%; display: block; }
:where(.room, .rlayer) .codeside { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
:where(.room, .rlayer) .code { font-size: 38px; font-weight: 1000; letter-spacing: 6px; line-height: 1; color: var(--sun); }
:where(.room, .rlayer) .codeside p { font-size: 12px; font-weight: 700; color: var(--text-dim); line-height: 1.35; }
:where(.room, .rlayer) .smallbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 11px; background: rgba(255, 255, 255, 0.1); border: 0; color: #fff; font-size: 13px; font-weight: 900; align-self: flex-start; }
:where(.room, .rlayer) .smallbtn .i { width: 15px; height: 15px; }
:where(.room, .rlayer) .smallbtn.y { background: var(--sun); color: var(--on-light); }
:where(.room, .rlayer) .codebox.locked { background: rgba(255, 92, 92, 0.08); border-color: rgba(255, 92, 92, 0.35); }
:where(.room, .rlayer) .codebox.locked .qr svg { opacity: 0.45; }
:where(.room, .rlayer) .codebox.locked .code { color: rgba(255, 210, 63, 0.45); }
:where(.room, .rlayer) .qlock { position: absolute; inset: 0; display: grid; place-items: center; }
:where(.room, .rlayer) .qlock .i { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: #ff5c5c; color: #fff; stroke-width: 2.6; box-sizing: content-box; }
:where(.room, .rlayer) .codeside p.lockline { display: flex; align-items: center; gap: 6px; color: #ff9a9a; font-weight: 900; }
:where(.room, .rlayer) .lockline .i { width: 14px; height: 14px; flex: none; }

/* ---------- sections: the game, the people, the settings ---------- */
:where(.room, .rlayer) .sec { display: flex; flex-direction: column; gap: 10px; }
:where(.room, .rlayer) .sl { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-dim); }
:where(.room, .rlayer) .picked { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; border: 2px solid rgba(var(--rgb), 0.6); background: linear-gradient(120deg, rgba(var(--rgb), 0.2), rgba(var(--rgb), 0.04)), rgba(255, 255, 255, 0.04); }
:where(.room, .rlayer) .picked .ai { width: 56px; height: 56px; border-radius: 16px; }
:where(.room, .rlayer) .picked .ai svg { width: 38px; height: 38px; }
:where(.room, .rlayer) .picked .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:where(.room, .rlayer) .picked b { font-size: 19px; font-weight: 1000; }
:where(.room, .rlayer) .picked span { font-size: 13px; font-weight: 700; color: #ddd5f3; }
:where(.room, .rlayer) .pickcard { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 16px 18px; border-radius: 22px; border: 2px dashed rgba(255, 210, 63, 0.55); background: rgba(255, 210, 63, 0.07); text-align: center; }
:where(.room, .rlayer) .pickcard b { font-size: 22px; font-weight: 1000; }
:where(.room, .rlayer) .pickcard > span:last-child { font-size: 13px; font-weight: 700; color: #ddd5f3; max-width: 30ch; }
:where(.room, .rlayer) .pickcard.wait { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.04); cursor: default; }
:where(.room, .rlayer) .pfan { display: flex; justify-content: center; margin-bottom: 4px; }
:where(.room, .rlayer) .pfan .ai { width: 40px; height: 40px; border-radius: 12px; margin: 0 -3px; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35), inset 0 -2px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
:where(.room, .rlayer) .pfan .ai svg { width: 27px; height: 27px; }
:where(.room, .rlayer) .pfan .ai:nth-child(odd) { transform: rotate(-8deg) translateY(2px); }
:where(.room, .rlayer) .pfan .ai:nth-child(even) { transform: rotate(7deg) translateY(-3px); }

/* people: everyone has an own colour, never blue, green, red or yellow (those mean teams, right, wrong, careful) */
:where(.room, .rlayer, .rgame) .a1 { --ac: #b69cff; --acrgb: 182, 156, 255; }
:where(.room, .rlayer, .rgame) .a2 { --ac: #e98bf3; --acrgb: 233, 139, 243; }
:where(.room, .rlayer, .rgame) .a3 { --ac: #d6ae84; --acrgb: 214, 174, 132; }
:where(.room, .rlayer, .rgame) .a4 { --ac: #b8b2cc; --acrgb: 184, 178, 204; }
:where(.room, .rlayer, .rgame) .a5 { --ac: #a27ad8; --acrgb: 162, 122, 216; }
:where(.room, .rlayer, .rgame) .a6 { --ac: #d98fb0; --acrgb: 217, 143, 176; }
:where(.room, .rlayer, .rgame) .va { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 1000; color: var(--on-light); background: var(--ac, #b8b2cc); }
:where(.room, .rlayer, .rgame) .va .crown { position: absolute; left: 50%; top: -11px; width: 18px; height: 18px; margin-left: -9px; fill: var(--sun); stroke: var(--on-light); stroke-width: 1.6; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35)); }
:where(.room, .rlayer, .rgame) .nt { display: inline-block; padding: 0 9px 0 4px; margin: 0 1px; border-radius: 99px; background: rgba(var(--acrgb), 0.24); box-shadow: inset 0 0 0 1.5px rgba(var(--acrgb), 0.6); color: #fff; font-weight: 1000; white-space: nowrap; line-height: 1.5; vertical-align: baseline; }
:where(.room, .rlayer, .rgame) .nt i { display: inline-block; width: 0.85em; height: 0.85em; margin-right: 5px; border-radius: 50%; background: var(--ac); vertical-align: -0.1em; }
:where(.room, .rlayer) .players { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
:where(.room, .rlayer) .pl { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 12px 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 0; font-size: 14px; font-weight: 900; color: #fff; }
:where(.room, .rlayer) .pl > span:not(.va) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.room, .rlayer) .pl .va { width: 46px; height: 46px; font-size: 18px; }
:where(.room, .rlayer) .pl em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--text-dim); margin-top: -4px; }
:where(.room, .rlayer) .pl.off { opacity: 0.5; }
:where(.room, .rlayer) .pl.add { border: 2px dashed rgba(255, 255, 255, 0.18); background: transparent; color: var(--text-dim); justify-content: center; font-size: 12px; font-weight: 800; text-align: center; line-height: 1.3; }
:where(.room, .rlayer) .pl.add.need { border-color: rgba(255, 210, 63, 0.7); background: rgba(255, 210, 63, 0.08); color: var(--sun); font-weight: 1000; animation: needp 2.2s ease-in-out infinite; }
@keyframes needp { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 210, 63, 0.35); } 50% { box-shadow: 0 0 0 6px rgba(255, 210, 63, 0); } }
:where(.room, .rlayer) .tvchip { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 16px; background: rgba(63, 208, 240, 0.08); border: 1px dashed rgba(63, 208, 240, 0.5); }
:where(.room, .rlayer) .tvchip.off { border-color: rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.04); }
:where(.room, .rlayer) .tvchip.off .tvic { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* teams: Mavi / Kırmızı */
:where(.room, .rlayer, .rgame) .tb { --tc: #4aa8ff; --trgb: 74, 168, 255; }
:where(.room, .rlayer, .rgame) .tr { --tc: #ff5c5c; --trgb: 255, 92, 92; }
/* a game on one phone may have a third and a fourth team: teal and purple */
:where(.room, .rlayer, .rgame) .tt { --tc: #2fd4c4; --trgb: 47, 212, 196; }
:where(.room, .rlayer, .rgame) .tp { --tc: #c18cff; --trgb: 193, 140, 255; }
:where(.room, .rlayer) .teams { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
:where(.room, .rlayer) .team { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border-radius: 18px; background: rgba(var(--trgb), 0.08); border: 2px solid rgba(var(--trgb), 0.35); }
:where(.room, .rlayer) .team.short { border-style: dashed; }
:where(.room, .rlayer) .team.loose { --trgb: 255, 255, 255; --tc: var(--text-dim); grid-column: 1 / -1; }
:where(.room, .rlayer) .tn { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 1000; color: var(--tc); }
:where(.room, .rlayer) .tn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }
:where(.room, .rlayer) .pl-row { display: flex; align-items: center; gap: 6px; min-width: 0; padding: 0; border: 0; background: none; font-size: 14px; font-weight: 800; color: #fff; text-align: left; }
:where(.room, .rlayer) .pl-row > span:not(.va) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.room, .rlayer) .pl-row .va { width: 26px; height: 26px; font-size: 12px; }
:where(.room, .rlayer) .pl-row .va .crown { top: -9px; width: 14px; height: 14px; margin-left: -7px; }
:where(.room, .rlayer) .pl-row em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--text-dim); }
:where(.room, .rlayer) .pl-row.off { opacity: 0.5; }
:where(.room, .rlayer) .tneed { display: flex; align-items: center; justify-content: center; min-height: 30px; border-radius: 10px; border: 1.5px dashed rgba(var(--trgb), 0.5); font-size: 12px; font-weight: 900; color: var(--tc); }
:where(.room, .rlayer) .joinbtn { border: 1px dashed rgba(var(--trgb), 0.6); background: transparent; color: var(--tc); border-radius: 10px; min-height: 34px; font-size: 12px; font-weight: 900; }
:where(.room, .rlayer) .ghost.rwide { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
:where(.room, .rlayer) .ghost.rwide .i { width: 18px; height: 18px; }
:where(.room, .rlayer) .ghost.hl { border-color: rgba(255, 210, 63, 0.6); color: var(--sun); }
:where(.room, .rlayer) .teamnote { font-size: 13px; font-weight: 700; color: var(--text-dim); text-align: center; line-height: 1.45; } /* a game's word on its teams (lobbyNote) */

/* a choice shown as cards (Deme!'s "Nasıl oynuyorsunuz?"), and what the chosen one means */
:where(.room, .rlayer) .modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
:where(.room, .rlayer) .mode { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 2px solid rgba(255, 255, 255, 0.1); color: #fff; text-align: left; }
:where(.room, .rlayer) .mode .mi { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.1); color: #fff; }
:where(.room, .rlayer) .mode .mi .i { width: 22px; height: 22px; }
:where(.room, .rlayer) .mode b { font-size: 15px; font-weight: 900; line-height: 1.2; }
:where(.room, .rlayer) .mode > span:last-child { font-size: 12px; font-weight: 700; color: var(--text-dim); line-height: 1.3; }
:where(.room, .rlayer) .mode.on { border-color: var(--sun); background: rgba(255, 210, 63, 0.1); }
:where(.room, .rlayer) .mode.on .mi { background: var(--sun); color: var(--on-light); }
:where(.room, .rlayer) div.mode:not(.on) { opacity: 0.6; }
:where(.room, .rlayer) .info { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; background: rgba(255, 210, 63, 0.08); border: 1px solid rgba(255, 210, 63, 0.3); font-size: 13px; font-weight: 700; line-height: 1.45; color: #f4ecc9; }
:where(.room, .rlayer) .info .i { width: 18px; height: 18px; flex: none; color: var(--sun); margin-top: 1px; }

/* the team names of a game on one phone */
:where(.room, .rlayer) .tinput { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 6px 0 12px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 2px solid rgba(var(--trgb), 0.45); }
:where(.room, .rlayer) .tinput:focus-within { border-color: var(--tc); }
:where(.room, .rlayer) .tinput .dot { width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--tc); }
:where(.room, .rlayer) .tinput input { flex: 1; min-width: 0; height: 46px; padding: 0; border: 0; background: transparent; color: #fff; font: inherit; font-size: 16px; font-weight: 900; outline: none; }
:where(.room, .rlayer) .tinput input::placeholder { color: #fff; opacity: 1; }
:where(.room, .rlayer) .tinput input:focus::placeholder { color: var(--text-faint); }
:where(.room, .rlayer) .tinput .x { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--text-faint); }
:where(.room, .rlayer) .tinput .x .i { width: 16px; height: 16px; }
:where(.room, .rlayer) .addteam { min-height: 44px; border-radius: 14px; border: 2px dashed rgba(255, 255, 255, 0.2); background: transparent; color: #ddd5f3; font-size: 14px; font-weight: 900; }

/* settings: the host's chips, a guest's summary */
:where(.room, .rlayer) .opt { display: flex; flex-direction: column; gap: 6px; }
:where(.room, .rlayer) .ol { font-size: 13px; font-weight: 800; color: #ddd5f3; }
:where(.room, .rlayer) .ochips { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
:where(.room, .rlayer) .ochips.many { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
/* choices with a drawing of their own (Alın Yazısı's card categories): five tiles to a row, the drawing on a paper square */
:where(.room, .rlayer) .ochips.embs { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); }
:where(.room, .rlayer) .ochips.embs .och { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 8px 2px 7px; border-radius: 13px; font-size: 11.5px; line-height: 1.15; overflow-wrap: anywhere; }
:where(.room, .rlayer) .ochips.embs .och.on { background: #fff8e8; box-shadow: 0 0 0 3px #a596ff; }
:where(.room, .rlayer) .oemb { display: block; flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 10px; background: #fff8e8; }
:where(.room, .rlayer) .och.on .oemb { background: #efe9ff; }
:where(.room, .rlayer) .oemb svg { display: block; width: 100%; height: 100%; overflow: visible; }
:where(.room, .rlayer) .sumrow .oemb { display: inline-block; width: 22px; height: 22px; padding: 2px; margin: -2px 6px -2px -4px; border-radius: 7px; vertical-align: middle; }
:where(.room, .rlayer) .och { border: 0; border-radius: 12px; padding: 10px 4px; min-height: 42px; font-size: 14px; font-weight: 900; color: #fff; background: rgba(255, 255, 255, 0.08); }
:where(.room, .rlayer) .och.on { background: #fff; color: var(--on-light); }
/* a choice that needs more people than are here (Casus's "2 casus" under 7): still a choice, it waits for them */
:where(.room, .rlayer) .och.off { opacity: 0.4; }
:where(.room, .rlayer) .och.on.off { background: rgba(255, 255, 255, 0.55); }
:where(.room, .rlayer) .optnote { font-size: 12px; font-weight: 700; color: var(--text-faint); line-height: 1.35; }
:where(.room, .rlayer) .sumcard { display: flex; flex-direction: column; border-radius: 16px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
:where(.room, .rlayer) .sumrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; font-weight: 800; color: #ddd5f3; }
:where(.room, .rlayer) .sumrow + .sumrow { border-top: 1px solid rgba(255, 255, 255, 0.07); }
:where(.room, .rlayer) .sumrow b { padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); color: #fff; font-weight: 900; text-align: right; }
:where(.room, .rlayer) .howto { border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
:where(.room, .rlayer) .howto summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14px; font-weight: 900; color: #ddd5f3; cursor: pointer; list-style: none; }
:where(.room, .rlayer) .howto summary::-webkit-details-marker { display: none; }
:where(.room, .rlayer) .howto summary .i { width: 16px; height: 16px; transition: transform 0.15s ease; }
:where(.room, .rlayer) .howto[open] summary .i { transform: rotate(180deg); }
:where(.room, .rlayer) .howto ol { margin: 0; padding: 0 16px 14px 34px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--text-body); }

/* the start: the host's button (greyed with its reason), or who will start */
:where(.room, .rlayer) .cta { position: sticky; bottom: 0; display: flex; flex-direction: column; gap: 6px; padding-top: 16px; margin-top: auto; padding-bottom: env(safe-area-inset-bottom); background: linear-gradient(rgba(21, 11, 43, 0), var(--night) 30%); z-index: 2; }
:where(.room, .rlayer) .cta .primary { width: 100%; min-height: 60px; border-radius: 18px; font-size: 20px; font-weight: 1000; }
:where(.room, .rlayer) .cta .primary:disabled { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.45); box-shadow: none; transform: none; cursor: default; }
:where(.room, .rlayer) .cta .primary small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; color: var(--sun); }
:where(.room, .rlayer) .cta .primary:not(:disabled) small { color: var(--on-light); opacity: 0.7; }
:where(.room, .rlayer) .waitcard { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #21143f; border: 1px solid rgba(255, 255, 255, 0.14); }
:where(.room, .rlayer) .waitcard .va { width: 42px; height: 42px; font-size: 16px; }
:where(.room, .rlayer) .waitcard .va .crown { top: -10px; }
:where(.room, .rlayer) .wtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:where(.room, .rlayer) .wtx b { font-size: 16px; font-weight: 900; }
:where(.room, .rlayer) .wtx > span { font-size: 12px; font-weight: 700; color: var(--text-dim); }
:where(.room, .rlayer) .wdots { display: flex; gap: 4px; }
:where(.room, .rlayer) .wdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--sun); animation: wd 1.2s ease-in-out infinite; }
:where(.room, .rlayer) .wdots i:nth-child(2) { animation-delay: 0.15s; }
:where(.room, .rlayer) .wdots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wd { 0%, 60%, 100% { opacity: 0.25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------- a TV asks to connect (the host decides) ---------- */
:where(.room, .rlayer) .tvask { display: flex; flex-direction: column; gap: 12px; padding: 14px; border-radius: 20px; background: linear-gradient(120deg, rgba(63, 208, 240, 0.16), rgba(63, 208, 240, 0.04)); border: 2px solid rgba(63, 208, 240, 0.55); animation: sheetUp 0.45s cubic-bezier(0.2, 1, 0.3, 1) both; }
:where(.room, .rlayer) .tvhead { display: flex; gap: 12px; align-items: flex-start; }
:where(.room, .rlayer) .tvic { position: relative; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #3fd0f0; color: #06222b; }
:where(.room, .rlayer) .tvic .i { width: 24px; height: 24px; stroke-width: 2.4; }
:where(.room, .rlayer) .tvic i { position: absolute; right: -4px; top: -4px; width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #21143f; animation: live 1.6s infinite; }
:where(.room, .rlayer) .tvic.sm { width: 38px; height: 38px; border-radius: 12px; }
:where(.room, .rlayer) .tvic.sm .i { width: 20px; height: 20px; }
:where(.room, .rlayer) .tvtx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
:where(.room, .rlayer) .tvtx b { font-size: 16px; font-weight: 1000; }
:where(.room, .rlayer) .tvtx > span { font-size: 12.5px; font-weight: 700; color: #cdeef6; line-height: 1.35; }
:where(.room, .rlayer) .tvchip .tvtx > span { color: var(--text-dim); }
:where(.room, .rlayer) .tvtime { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11px; font-weight: 900; color: #8fdcef; }
:where(.room, .rlayer) .tvtime i { width: 8px; height: 8px; border-radius: 50%; background: #3fd0f0; }
:where(.room, .rlayer) .tvbtns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
:where(.room, .rlayer) .tvbtns .primary { min-height: 50px; padding: 10px; font-size: 17px; font-weight: 1000; }
:where(.room, .rlayer) .tvbtns .ghost { min-height: 50px; padding: 10px; }

/* ---------- creating a room / joining one: the code is drawn ---------- */
:where(.room, .rlayer) .creating { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
:where(.room, .rlayer) .clogo { font-size: 34px; margin-bottom: 26px; } /* the brand logo on two lines (ds.css .brand) */
:where(.room, .rlayer) .creating b { margin-top: 14px; font-size: 22px; font-weight: 1000; }
:where(.room, .rlayer) .creating > span:last-child { font-size: 14px; font-weight: 700; color: var(--text-dim); }
:where(.room, .rlayer) .tiles4 { display: flex; gap: 8px; }
:where(.room, .rlayer) .tiles4 i { display: grid; place-items: center; width: 46px; height: 52px; border-radius: 12px; background: #fff; color: var(--on-light); font-style: normal; font-size: 30px; font-weight: 1000; box-shadow: 0 4px 0 rgba(27, 16, 51, 0.3); }
:where(.room, .rlayer) .tiles4 i:nth-child(odd) { transform: rotate(-3deg); }
:where(.room, .rlayer) .tiles4 i:nth-child(even) { transform: rotate(2deg); }
:where(.room, .rlayer) .tiles4.flip i { animation: flip 1.6s ease-in-out infinite; }
:where(.room, .rlayer) .tiles4.flip i:nth-child(2) { animation-delay: 0.12s; }
:where(.room, .rlayer) .tiles4.flip i:nth-child(3) { animation-delay: 0.24s; }
:where(.room, .rlayer) .tiles4.flip i:nth-child(4) { animation-delay: 0.36s; }
@keyframes flip { 0%, 55%, 100% { transform: rotateX(0); } 70% { transform: rotateX(90deg); } 85% { transform: rotateX(0); } }

/* ---------- sheets that rise from the bottom: the room's (picker, player, rename, menu, TV) and the voice chat's ---------- */
.rlayer { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; font-size: 16px; line-height: 1.4; }
.rlayer[hidden] { display: none; }
:where(.room, .rlayer) .shade { position: absolute; inset: 0; background: rgba(8, 4, 20, 0.66); border: 0; cursor: default; }
:where(.room, .rlayer) .sheet { position: relative; display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 520px; max-height: 88vh; margin: 0 auto; padding: 10px 16px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; border-radius: 28px 28px 0 0; background: #21143f; border-top: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.55); animation: sheetUp 0.45s cubic-bezier(0.2, 1, 0.3, 1) both; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
:where(.room, .rlayer) .grab { flex: none; align-self: center; width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.25); margin-bottom: 2px; }
:where(.room, .rlayer) .sh-head { display: flex; align-items: center; gap: 12px; }
:where(.room, .rlayer) .sh-head .tx { flex: 1; min-width: 0; }
:where(.room, .rlayer) .sh-head b { display: block; font-size: 19px; font-weight: 1000; line-height: 1.15; }
:where(.room, .rlayer) .sh-head .tx > span { font-size: 13px; font-weight: 700; color: var(--text-dim); }
:where(.room, .rlayer) .sh-head .tx > span .i { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
:where(.room, .rlayer) .xbtn { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); border: 0; color: #fff; }
:where(.room, .rlayer) .xbtn .i { width: 18px; height: 18px; }
:where(.room, .rlayer) .shl { font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-faint); margin-top: 4px; }
:where(.room, .rlayer) .sh-ico { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(150deg, #a27ad8, #6f4fd6); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
:where(.room, .rlayer) .sh-ico .i { width: 22px; height: 22px; stroke-width: 2.3; }
:where(.room, .rlayer) .sh-ico.tvico { background: linear-gradient(150deg, #3fd0f0, #1aa7d6); color: #06222b; }
:where(.room, .rlayer) .bigva { width: 46px; height: 46px; font-size: 19px; }
:where(.room, .rlayer) .rnote { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-dim); line-height: 1.4; }
:where(.room, .rlayer) .rnote .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
:where(.room, .rlayer) .sheet .primary { width: 100%; min-height: 58px; border-radius: 18px; font-size: 19px; font-weight: 1000; }
:where(.room, .rlayer) .sheet .input.rin { min-height: 58px; font-size: 20px; font-weight: 900; }

/* the menu */
:where(.room, .rlayer) .mlist { display: flex; flex-direction: column; gap: 8px; }
:where(.room, .rlayer) .mitem { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 8px 14px 8px 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; color: #fff; text-align: left; }
:where(.room, .rlayer) .mi2 { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); }
:where(.room, .rlayer) .mi2 .i { width: 19px; height: 19px; }
:where(.room, .rlayer) .mitem .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
:where(.room, .rlayer) .mitem b { font-size: 16px; font-weight: 900; }
:where(.room, .rlayer) .mitem .sub { font-size: 12px; font-weight: 700; color: var(--text-dim); }
:where(.room, .rlayer) .mitem .chev { width: 16px; height: 16px; color: var(--text-faint); }
:where(.room, .rlayer) .mitem.danger b { color: #ff8098; }
:where(.room, .rlayer) .mitem.danger .mi2 { background: rgba(255, 77, 109, 0.15); color: #ff4d6d; }
:where(.room, .rlayer) .mitem.locked { border-color: rgba(255, 92, 92, 0.45); background: rgba(255, 92, 92, 0.1); }
:where(.room, .rlayer) .mitem.locked .mi2 { background: #ff5c5c; color: #fff; }
:where(.room, .rlayer) .mitem.armed { background: #ff4d6d; border-color: #ff8aa0; animation: nudge 0.5s ease-in-out; }
:where(.room, .rlayer) .mitem.armed b, :where(.room, .rlayer) .mitem.armed .sub { color: #fff; }
:where(.room, .rlayer) .mitem.armed .mi2 { background: rgba(255, 255, 255, 0.22); color: #fff; }
@keyframes nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
/* the game's own items in its menu, in the game's colour (the sheet carries .t-<id>) */
:where(.room, .rlayer) .mitem.game { border-color: rgba(var(--rgb, 255, 255, 255), 0.4); background: rgba(var(--rgb, 255, 255, 255), 0.1); }
:where(.room, .rlayer) .mitem.game .mi2 { background: rgba(var(--rgb, 255, 255, 255), 0.2); color: var(--c, #fff); }
:where(.room, .rlayer) .sh-head .ai.ai-head { width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
:where(.room, .rlayer) .sh-head .ai.ai-head svg { width: 32px; height: 32px; }
:where(.room, .rlayer) .rrules { margin: 0; padding: 0 0 0 4px; list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: 10px; }
:where(.room, .rlayer) .rrules li { position: relative; padding-left: 40px; min-height: 28px; font-size: 15px; font-weight: 700; line-height: 1.45; color: #ddd5f3; counter-increment: r; }
:where(.room, .rlayer) .rrules li::before { content: counter(r); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--rgb, 255, 210, 63), 0.2); color: var(--c, var(--sun)); font-size: 14px; font-weight: 1000; }
:where(.room, .rlayer) .hostmark { font-size: 10.5px; font-weight: 900; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 7px; border-radius: 99px; background: rgba(255, 210, 63, 0.18); color: var(--sun); margin-left: 6px; vertical-align: 2px; }

/* the game picker */
:where(.room, .rlayer) .glist { display: flex; flex-direction: column; gap: 6px; }
:where(.room, .rlayer) .gpick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 2px solid transparent; color: #fff; text-align: left; }
:where(.room, .rlayer) .gpick .ai { width: 44px; height: 44px; border-radius: 13px; }
:where(.room, .rlayer) .gpick .ai svg { width: 30px; height: 30px; }
:where(.room, .rlayer) .gtx { flex: 1; min-width: 0; display: flex; flex-direction: column; }
:where(.room, .rlayer) .gtx b { font-size: 15.5px; font-weight: 1000; }
:where(.room, .rlayer) .gtx > span { font-size: 12px; font-weight: 700; color: #ddd5f3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:where(.room, .rlayer) .gtx small { font-size: 11.5px; font-weight: 800; color: var(--text-faint); }
:where(.room, .rlayer) .gtx small em { font-style: normal; color: var(--sun); }
:where(.room, .rlayer) .gpick.on { border-color: rgba(var(--rgb), 0.75); background: linear-gradient(120deg, rgba(var(--rgb), 0.2), rgba(var(--rgb), 0.04)); }
:where(.room, .rlayer) .gcheck { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--on-light); }
:where(.room, .rlayer) .gcheck .i { width: 16px; height: 16px; stroke-width: 3; }
:where(.room, .rlayer) .gpick.faint { opacity: 0.55; }
:where(.room, .rlayer) .gpick.faint .ai { filter: saturate(0.4); }

/* the TV steps */
:where(.room, .rlayer) .steps3 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
:where(.room, .rlayer) .steps3 li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 700; color: #ddd5f3; line-height: 1.45; }
:where(.room, .rlayer) .steps3 li b { color: #fff; }
:where(.room, .rlayer) .steps3 .sn { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #3fd0f0; color: #06222b; font-size: 14px; font-weight: 1000; }
:where(.room, .rlayer) .steps3 li.scode { padding-left: 40px; }

/* ---------- the voice chat: a button in the bar, a sheet to join, a panel once in ---------- */
:where(.room, .rlayer) .vpill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px 0 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; font-size: 13px; font-weight: 900; white-space: nowrap; }
:where(.room, .rlayer) .vpill .vi { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
:where(.room, .rlayer) .vpill .vi .i { width: 16px; height: 16px; }
:where(.room, .rlayer) .vpill.on { background: rgba(46, 194, 126, 0.16); border-color: rgba(46, 194, 126, 0.5); }
:where(.room, .rlayer) .vpill.on .vi { background: #2ec27e; color: #06281a; }
:where(.room, .rlayer) .vpill.muted { background: rgba(255, 77, 109, 0.14); border-color: rgba(255, 77, 109, 0.45); }
:where(.room, .rlayer) .vpill.muted .vi { background: #ff4d6d; color: #fff; }
:where(.room, .rlayer) .vpill.wait .vi { background: rgba(255, 210, 63, 0.2); color: var(--sun); }
:where(.room, .rlayer) .vpill.unblock { background: var(--sun); border-color: var(--sun); color: var(--on-light); }
:where(.room, .rlayer) .vpill.unblock .vi { background: rgba(27, 16, 51, 0.15); color: var(--on-light); }
:where(.room, .rlayer) .vpill .count { display: inline-flex; align-items: center; gap: 5px; color: #ddd5f3; }
:where(.room, .rlayer) .stack { display: inline-flex; padding-left: 7px; }
:where(.room, .rlayer) .stack .va { width: 24px; height: 24px; margin-left: -7px; font-size: 11px; border: 2px solid #2a1b52; }
:where(.room, .rlayer) .stack .va.more { background: rgba(255, 255, 255, 0.18); color: #fff; }
:where(.room, .rlayer) .livedot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #3ad38a; animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(58, 211, 138, 0.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(58, 211, 138, 0); } }
:where(.room, .rlayer) .va.speaking { animation: talk 0.9s ease-in-out infinite; }
:where(.room, .rlayer) .va.speaking::before, :where(.room, .rlayer) .va.speaking::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2.5px solid #3ad38a; animation: ripple 1.4s ease-out infinite; }
:where(.room, .rlayer) .va.speaking::after { animation-delay: 0.7s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes talk { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.07); } 70% { transform: scale(0.98); } }
:where(.room, .rlayer) .va .mut { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #ff4d6d; color: #fff; border: 2px solid #21143f; }
:where(.room, .rlayer) .va .mut .i { width: 9px; height: 9px; stroke-width: 3; }
:where(.room, .rlayer) .va .bad { position: absolute; right: -3px; top: -3px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--on-light); font-size: 11px; font-weight: 1000; border: 2px solid #21143f; }
/* joining */
:where(.room, .rlayer) .vhero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: linear-gradient(120deg, rgba(46, 194, 126, 0.18), rgba(46, 194, 126, 0.04)); border: 1px solid rgba(46, 194, 126, 0.35); }
:where(.room, .rlayer) .vhero .people { display: flex; gap: 10px; }
:where(.room, .rlayer) .vhero .va { width: 42px; height: 42px; font-size: 16px; }
:where(.room, .rlayer) .vhero .va.tvva { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.35); color: #ddd5f3; }
:where(.room, .rlayer) .vhero .va.tvva .i { width: 20px; height: 20px; }
:where(.room, .rlayer) .vhero .tx { flex: 1; font-size: 13px; font-weight: 800; color: #c9f5df; line-height: 1.35; }
:where(.room, .rlayer) .facts2 { display: flex; flex-direction: column; gap: 8px; }
:where(.room, .rlayer) .f2 { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 700; color: #ddd5f3; line-height: 1.4; }
:where(.room, .rlayer) .f2 .fi { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #fff; }
:where(.room, .rlayer) .f2 .fi .i { width: 17px; height: 17px; }
:where(.room, .rlayer) .f2 b { color: #fff; }
:where(.room, .rlayer) .btn-green { width: 100%; border: 0; border-radius: 18px; min-height: 60px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #2ec27e; color: #06281a; box-shadow: 0 6px 0 #1b8a57; font-size: 19px; font-weight: 1000; }
:where(.room, .rlayer) .btn-green small { font-size: 12px; font-weight: 800; opacity: 0.8; }
:where(.room, .rlayer) .btn-green:disabled { opacity: 0.7; box-shadow: 0 3px 0 #1b8a57; transform: translateY(3px); cursor: default; }
:where(.room, .rlayer) .btn-plain { width: 100%; border: 0; border-radius: 14px; min-height: 46px; background: transparent; color: var(--text-dim); font-size: 15px; font-weight: 900; }
/* in voice */
:where(.room, .rlayer) .vlist { display: flex; flex-direction: column; gap: 6px; }
:where(.room, .rlayer) .vrow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid transparent; }
:where(.room, .rlayer) .vrow .va { width: 40px; height: 40px; font-size: 16px; }
:where(.room, .rlayer) .vrow .va.speaking { animation: none; box-shadow: none; }
:where(.room, .rlayer) .vrow .va.speaking::before, :where(.room, .rlayer) .vrow .va.speaking::after { display: none; }
:where(.room, .rlayer) .vrow .nm { flex: 1; min-width: 0; font-weight: 900; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:where(.room, .rlayer) .vrow .nm small { display: block; font-size: 12px; font-weight: 700; color: var(--text-dim); }
:where(.room, .rlayer) .vrow .nm small.warn { color: var(--sun); white-space: normal; }
:where(.room, .rlayer) .vrow.me { background: rgba(46, 194, 126, 0.12); border-color: rgba(46, 194, 126, 0.35); }
:where(.room, .rlayer) .vrow.me.off { background: rgba(255, 77, 109, 0.1); border-color: rgba(255, 77, 109, 0.35); }
:where(.room, .rlayer) .vrow.pending { opacity: 0.6; }
:where(.room, .rlayer) .vrow.trouble { cursor: pointer; }
:where(.room, .rlayer) .vrow .st { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; color: #ff4d6d; }
:where(.room, .rlayer) .vrow .st .i { width: 18px; height: 18px; }
:where(.room, .rlayer) .vrow .st.wait { color: var(--sun); }
:where(.room, .rlayer) .vrow.tv .va { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.35); color: #ddd5f3; }
:where(.room, .rlayer) .vrow.tv .va .i { width: 20px; height: 20px; }
:where(.room, .rlayer) .wave { display: flex; align-items: center; gap: 3px; height: 28px; padding: 0 2px; }
:where(.room, .rlayer) .wave i { display: block; width: 4px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.28); }
:where(.room, .rlayer) .speaking .wave i, :where(.room, .rlayer) .wave.on i { background: #3ad38a; animation: wv 1s ease-in-out infinite; }
:where(.room, .rlayer) .wave i:nth-child(1) { animation-duration: 0.9s; animation-delay: -0.2s; }
:where(.room, .rlayer) .wave i:nth-child(2) { animation-duration: 0.7s; animation-delay: -0.5s; }
:where(.room, .rlayer) .wave i:nth-child(3) { animation-duration: 1.1s; animation-delay: -0.1s; }
:where(.room, .rlayer) .wave i:nth-child(4) { animation-duration: 0.8s; animation-delay: -0.65s; }
:where(.room, .rlayer) .wave i:nth-child(5) { animation-duration: 1s; animation-delay: -0.35s; }
:where(.room, .rlayer) .wave i:nth-child(6) { animation-duration: 0.75s; animation-delay: -0.8s; }
:where(.room, .rlayer) .wave i:nth-child(7) { animation-duration: 0.95s; animation-delay: -0.45s; }
@keyframes wv { 0%, 100% { height: 6px; } 50% { height: 26px; } }
:where(.room, .rlayer) .vctrl { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
:where(.room, .rlayer) .bigmic { border: 0; border-radius: 18px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 1000; background: #2ec27e; color: #06281a; box-shadow: 0 5px 0 #1b8a57; }
:where(.room, .rlayer) .bigmic .i { width: 22px; height: 22px; stroke-width: 2.4; }
:where(.room, .rlayer) .bigmic > span { display: flex; flex-direction: column; text-align: left; }
:where(.room, .rlayer) .bigmic small { font-size: 11.5px; font-weight: 800; opacity: 0.8; }
:where(.room, .rlayer) .bigmic.off { background: #ff4d6d; color: #fff; box-shadow: 0 5px 0 #b8203f; }
:where(.room, .rlayer) .leavev { border-radius: 18px; min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 1000; background: transparent; color: #ff8098; border: 2px solid rgba(255, 77, 109, 0.5); }
:where(.room, .rlayer) .leavev .i { width: 20px; height: 20px; }
:where(.room, .rlayer) .vmsg { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 16px; background: rgba(255, 77, 109, 0.08); border: 1px solid rgba(255, 77, 109, 0.3); }
:where(.room, .rlayer) .vmsg .vmi { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 77, 109, 0.15); color: #ff8098; }
:where(.room, .rlayer) .vmsg b { display: block; font-size: 15px; font-weight: 1000; }
:where(.room, .rlayer) .vmsg > span > span { font-size: 13px; font-weight: 700; color: #ddd5f3; line-height: 1.45; }
