/* Shared RoomPlay mode sheet; labels and routes belong to the caller. */
.rp-mode-sheet[hidden] { display: none; }
.rp-mode-sheet { position: fixed; inset: 0; z-index: 13000; color: #fff; }
.rp-mode-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(3,6,18,.72); backdrop-filter: blur(4px); }
.rp-mode-panel { position: absolute; left: 50%; bottom: 0; width: min(100%,430px); max-height: 100dvh; overflow-y: auto; box-sizing: border-box; padding: 10px 20px calc(22px + env(safe-area-inset-bottom,0px)); transform: translateX(-50%); border-radius: 24px 24px 0 0; background: var(--rp-mode-surface,#141b35); box-shadow: 0 -18px 50px rgba(0,0,0,.45); animation: rpModeIn 220ms ease; }
.rp-mode-handle { width: 44px; height: 4px; margin: 0 auto 14px; border-radius: 99px; background: rgba(255,255,255,.2); }
.rp-mode-panel header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.rp-mode-panel h2 { margin: 0; color: inherit; font: inherit; font-size: 22px; font-weight: 800; overflow-wrap: anywhere; }
.rp-mode-close { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.04); color: inherit; font: inherit; font-size: 28px; cursor: pointer; }
.rp-mode-options { display: grid; gap: 8px; }
.rp-mode-close svg,.rp-mode-option-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rp-mode-option-icon { display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px; margin-right: 16px; border-radius: 14px; color: #9eb5ff; background: rgba(74,108,247,.14); }
.rp-mode-option { display: flex; align-items: center; min-height: 72px; box-sizing: border-box; padding: 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; color: inherit; text-decoration: none; background: rgba(255,255,255,.04); transition: transform 150ms ease, background 150ms ease; }
.rp-mode-option strong { font: inherit; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.rp-mode-option:active { transform: scale(.985); }
.rp-mode-option:hover { background: rgba(255,255,255,.08); }
.rp-mode-option:focus-visible,.rp-mode-close:focus-visible { outline: 2px solid #9eb5ff; outline-offset: 2px; }
@keyframes rpModeIn { from { transform: translate(-50%,24px); opacity: 0; } }
@media(prefers-reduced-motion: reduce) { .rp-mode-panel { animation: none; } .rp-mode-option { transition: none; } }
