/* Salas para jogar com amigos */
.rm-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 24px; }
.rm-game { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface, #fff); box-shadow: var(--shadow-sm); }
.rm-game h2 { margin: 0; font-size: 1.25rem; }
.rm-game .btn { margin-top: auto; justify-content: center; }
.rm-opt { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 700; color: var(--muted); margin: 0; }
.rm-shell { position: relative; }
.rm-join { display: grid; gap: 10px; max-width: 420px; margin: 10px auto 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface, #fff); box-shadow: var(--shadow); text-align: center; }
.rm-join h2 { margin: 0; font-size: 1.2rem; }
.rm-join input { min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line-strong); font: inherit; text-align: center; }
.rm-err { color: #c8323a; margin: 0; min-height: 1.2em; font-weight: 700; }
.rm-lobby { display: grid; grid-template-columns: 1fr auto; gap: 12px 18px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--subtle, #f4f5f6); margin-bottom: 12px; }
.rm-lobby.playing { grid-template-columns: 1fr; padding: 8px 12px; }
.rm-lobby.playing .rm-status { display: none; }
.rm-status { margin: 0 0 6px; font-weight: 800; }
.rm-seats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.rm-seats li { position: relative; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; }
.rm-seats li small { color: var(--muted); font-weight: 600; }
.rm-seats li.me span:nth-child(2) { color: var(--felt, #0d6b57); }
.rm-dot { width: 10px; height: 10px; border-radius: 50%; background: #c9cfd6; }
.rm-seats li.on .rm-dot { background: #2f9e6e; box-shadow: 0 0 0 3px rgba(47,158,110,.2); }
.rm-seats li.off .rm-dot { background: #e0b324; }
.rm-seats li.empty { color: var(--muted); font-weight: 600; }
.rm-invite { display: grid; gap: 8px; justify-items: start; }
.rm-code { margin: 0; font-size: .95rem; }
.rm-code b { font: 800 1.3rem var(--font-display); letter-spacing: .12em; }
.rm-link { display: flex; gap: 6px; }
.rm-link input { width: 230px; min-height: 38px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-strong); font: inherit; font-size: .85rem; }
.rm-emotes { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.rm-emote { border: 1px solid var(--line-strong); background: var(--surface, #fff); border-radius: 999px; padding: 4px 10px; font-size: .85rem; cursor: pointer; }
.rm-emote:hover { border-color: var(--ink); }
.rm-bubble { position: fixed; z-index: 120; transform: translate(-50%, calc(-100% - 8px)); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 7px 14px; font: 800 1.05rem var(--font-display); box-shadow: var(--shadow-lg); white-space: nowrap; pointer-events: none; animation: rm-pop .25s ease; transition: opacity .35s; }
.rm-bubble.floating { left: 50%; top: auto; bottom: 96px; transform: translateX(-50%); max-width: calc(100vw - 32px); overflow: hidden; text-overflow: ellipsis; }
.rm-bubble.out { opacity: 0; }
@keyframes rm-pop { from { opacity: 0; scale: .5; } }
.rm-wait { text-align: center; padding: 30px 10px; color: var(--muted); }
@media (max-width: 760px) { .rm-lobby { grid-template-columns: 1fr; } .rm-link input { width: 100%; } .rm-link { width: 100%; } }
.rm-react { grid-column: 1 / -1; }
.rm-react summary { display: inline-flex; cursor: pointer; font-weight: 700; font-size: .88rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface, #fff); list-style: none; }
.rm-react summary::-webkit-details-marker { display: none; }
.rm-react .rm-emotes { margin-top: 8px; }
.rm-lobby.playing { grid-template-columns: 1fr auto; align-items: center; }
.rm-lobby.playing .rm-react { grid-column: auto; }
.rm-myname { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 700; margin: 0 0 14px; }
.rm-myname input { min-height: 42px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font: inherit; min-width: 240px; }
.rm-game.rm-highlight { border-color: var(--chip); box-shadow: 0 0 0 3px rgba(201,162,39,.35), var(--shadow); }
.rm-tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-public { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.rm-check { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.rm-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #0f6b57; flex: none; }
.rm-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.rm-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: #0f6b57; animation: rm-spin .8s linear infinite; }
@keyframes rm-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rm-spinner { animation: none; } }
/* Partidas online: jogadores e ações */
.on-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 8px 0; }
.on-p { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--subtle, #eef0f2); font-weight: 700; font-size: .92rem; }
.on-p small { font-weight: 600; color: var(--muted); }
.on-p.turn { background: var(--chip, #f4c430); color: var(--chip-ink, #1b1b1b); }
.on-p.turn small { color: inherit; }
.on-p.off { opacity: .6; }
.on-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.on-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 10px 0; }
.on-msg { text-align: center; font-weight: 700; margin: 10px 0 4px; min-height: 1.4em; }
.rm-pair { display: flex; gap: 6px; }
.rm-pair .select { flex: 1; min-width: 0; }
.rm-cats { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.rm-cats legend { padding: 0; margin-bottom: 4px; }
.rm-cats label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--ink); }
