/* ============================================================
   Vybe Space — Rooms Page Styles  (Sprint 13)
   rooms_themes.css
   Cozy, digital hangout rooms
   ============================================================ */

/* Room cards */
.cozy-room-card {
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cozy-room-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(139, 92, 246, 0.08);
  transform: translateY(-2px);
}

.cozy-room-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cozy-room-card:hover::before { opacity: 1; }

.cozy-room-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cozy-room-avatar {
  width: 64px;
  height: 64px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
}

.cozy-room-active::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: #4ade80;
  border: 3px solid #080c18;
  border-radius: 50%;
  bottom: -2px;
  right: -2px;
  animation: cozyPulse 2.5s ease-in-out infinite;
}

.cozy-room-info {
  flex: 1;
  min-width: 0;
}

.cozy-room-name {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #e9d5ff;
  text-decoration: none;
  word-break: break-word;
  margin: 0 0 0.35rem;
}

.cozy-room-name:hover { color: #d8b4fe; }

.cozy-room-category {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: rgba(139, 92, 246, 0.12);
  border-radius: 0.4rem;
  color: #a78bfa;
  font-weight: 600;
  margin-right: 0.5rem;
}

.cozy-room-description {
  font-size: 0.9rem;
  color: #cbd5e1;
  margin: 0.5rem 0;
  word-break: break-word;
}

.cozy-room-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.cozy-room-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.cozy-room-meta-item strong {
  color: #a78bfa;
  font-weight: 600;
}

/* Room participants */
.cozy-room-participants {
  display: flex;
  align-items: center;
  gap: -0.3rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}

.cozy-room-participant {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border: 2px solid #080c18;
  margin-left: -8px;
  transition: transform 0.2s ease;
}

.cozy-room-participant:first-child { margin-left: 0; }

.cozy-room-participant:hover { transform: scale(1.15); z-index: 10; }

.cozy-room-friends-count {
  font-size: 0.8rem;
  color: #a78bfa;
  margin-left: 0.5rem;
}

/* Room actions */
.cozy-room-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.cozy-room-join-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  border: none;
  border-radius: 0.75rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cozy-room-join-btn:hover {
  background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
  transform: translateY(-1px);
}

.cozy-room-action-btn {
  padding: 0.65rem 1rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 0.75rem;
  color: #a78bfa;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cozy-room-action-btn:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
}

/* Room index layout */
.cozy-rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.cozy-rooms-section {
  margin-bottom: 2.5rem;
}

.cozy-rooms-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #e9d5ff;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cozy-rooms-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(139, 92, 246, 0.06);
  border: 1px dashed rgba(139, 92, 246, 0.2);
  border-radius: 1rem;
}

.cozy-rooms-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.cozy-rooms-empty__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e9d5ff;
  margin: 0 0 0.5rem;
}

.cozy-rooms-empty__text {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

/* Room status badges */
.cozy-room-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
}

.cozy-room-status--active {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.cozy-room-status--quiet {
  background: rgba(156, 163, 175, 0.12);
  color: #d1d5db;
}

.cozy-room-status--friends {
  background: rgba(139, 92, 246, 0.12);
  color: #d8b4fe;
}

/* Room category colors */
.cozy-room-card--chill { --room-color: rgba(100, 116, 139, 0.12); }
.cozy-room-card--game { --room-color: rgba(34, 197, 94, 0.12); }
.cozy-room-card--study { --room-color: rgba(59, 130, 246, 0.12); }
.cozy-room-card--music { --room-color: rgba(236, 72, 153, 0.12); }
.cozy-room-card--talk { --room-color: rgba(139, 92, 246, 0.12); }
.cozy-room-card--meme { --room-color: rgba(250, 204, 21, 0.12); }

/* Invites section */
.cozy-invites-section {
  margin-top: 2.5rem;
}

.cozy-invite-card {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.3s ease;
}

.cozy-invite-card:hover {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
}

.cozy-invite-info {
  flex: 1;
}

.cozy-invite-room-name {
  font-weight: 600;
  color: #e9d5ff;
  margin: 0 0 0.25rem;
}

.cozy-invite-inviter {
  font-size: 0.85rem;
  color: #94a3b8;
}

.cozy-invite-actions {
  display: flex;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 680px) {
  .cozy-rooms-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cozy-room-card { padding: 1rem; }

  .cozy-room-header { gap: 0.75rem; }

  .cozy-room-avatar {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }
}

@media (max-width: 430px) {
  .cozy-room-card { padding: 0.85rem; }

  .cozy-room-header { gap: 0.65rem; }

  .cozy-room-avatar {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
  }

  .cozy-room-name { font-size: 0.95rem; }

  .cozy-room-actions {
    flex-direction: column;
  }

  .cozy-room-join-btn {
    width: 100%;
  }
}

/* ============================================================
   Vybe Space — Room Detail Immersive Overhaul
   ============================================================ */

.vs-room-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 0.9rem 1rem;
}

.vs-room-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vs-room-dock {
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.vs-room-dock__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.vs-room-dock__header h2 {
  margin: 0.1rem 0 0;
  font-size: 1rem;
  color: #f2e8ff;
}

.vs-room-dock__eyebrow {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a5b4fc;
}

.vs-room-dock__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.vs-room-dock__pill {
  min-width: 220px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 1rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(12, 15, 31, 0.62);
  text-decoration: none;
  color: #dbeafe;
}

.vs-room-dock__pill.is-active {
  border-color: color-mix(in srgb, var(--room-color), white 28%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(139, 92, 246, 0.14);
  background: linear-gradient(135deg, rgba(35, 17, 57, 0.88), rgba(15, 26, 52, 0.78));
}

.vs-room-dock__pill.has-unread {
  border-color: rgba(251, 191, 36, 0.36);
}

.vs-room-dock__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vs-room-dock__copy strong,
.vs-room-dock__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-room-dock__copy small {
  color: #94a3b8;
}

.vs-room-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--room-color), #ffffff 32%);
  min-height: 200px;
  padding: 1rem 1rem 1.05rem;
  isolation: isolate;
}

.vs-room-hero__wallpaper {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 70% at 10% 15%, color-mix(in srgb, var(--room-color), transparent 65%), transparent 70%),
    radial-gradient(90% 60% at 90% 85%, rgba(34, 211, 238, 0.19), transparent 70%),
    linear-gradient(132deg, rgba(8, 10, 26, 0.92), rgba(20, 8, 40, 0.9));
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.vs-room-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 6, 18, 0.18) 0%, rgba(6, 6, 18, 0.78) 100%);
}

.vs-room-hero__fog {
  position: absolute;
  inset: auto -8% -28% -8%;
  height: 62%;
  background: radial-gradient(circle at 50% 50%, rgba(186, 230, 253, 0.14), transparent 68%);
  filter: blur(20px);
}

.vs-room-hero__particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vs-room-hero__orbit {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 9rem;
  height: 9rem;
  pointer-events: none;
}

.vs-room-hero__orbit-avatar {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.25);
  transform: translate(-50%, -50%);
}

.vs-room-hero__orbit-avatar:nth-child(1) { top: 18%; left: 46%; }
.vs-room-hero__orbit-avatar:nth-child(2) { top: 46%; left: 76%; }
.vs-room-hero__orbit-avatar:nth-child(3) { top: 76%; left: 54%; }
.vs-room-hero__orbit-avatar:nth-child(4) { top: 44%; left: 18%; }

.vs-room-hero__orbit-avatar.is-online {
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.18), 0 0 20px rgba(74, 222, 128, 0.22);
}

.vs-room-hero__content,
.vs-room-hero__actions {
  position: relative;
  z-index: 2;
}

.vs-room-hero__topline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.vs-room-hero__title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #f2e8ff;
}

.vs-room-hero__vibe {
  margin: 0.2rem 0 0;
  color: #c8d0ee;
  font-size: 0.9rem;
}

.vs-room-hero__subtitle {
  margin: 0.25rem 0 0;
  color: #9fb2d9;
  font-size: 0.76rem;
}

.vs-room-hero__statusline {
  margin-top: 0.85rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.vs-room-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  font-size: 0.75rem;
  color: #d9e8ff;
  border: 1px solid rgba(149, 120, 255, 0.35);
  background: rgba(23, 24, 45, 0.64);
}

.vs-room-occupancy {
  margin-top: 0.95rem;
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.vs-room-occupant-bubble {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.32rem 0.56rem;
  font-size: 0.73rem;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(12, 17, 37, 0.72);
}

.vs-room-occupant-bubble.is-online {
  border-color: rgba(74, 222, 128, 0.55);
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.12), 0 0 18px rgba(74, 222, 128, 0.2);
}

.vs-room-occupant-bubble__state {
  opacity: 0.8;
}

.vs-room-hero__actions {
  margin-top: 0.8rem;
}

.vs-room-mobile-bar {
  display: none;
}

.vs-room-main-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 310px;
  gap: 1rem;
  min-height: 0;
  align-items: start;
}

.vs-room-zone {
  min-height: 0;
  scroll-margin-top: 5rem;
}

.vs-room-zone--left,
.vs-room-zone--right {
  padding: 0.75rem;
}

.vs-room-zone__title {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  color: #d7ccff;
  letter-spacing: 0.02em;
}

.vs-room-inline-list {
  line-height: 1.5;
}

.vs-room-ambient-stack {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vs-room-ambient-card {
  border-radius: 0.8rem;
  padding: 0.6rem 0.65rem;
  background: linear-gradient(135deg, rgba(28, 20, 56, 0.76), rgba(15, 34, 59, 0.66));
  border: 1px solid rgba(129, 140, 248, 0.25);
}

.vs-room-ambient-card strong {
  display: block;
  font-size: 0.76rem;
  color: #c9d7ff;
  margin-bottom: 0.2rem;
}

.vs-room-ambient-card p {
  margin: 0;
  font-size: 0.8rem;
  color: #aeb9d6;
  line-height: 1.35;
}

.vs-room-memory-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.vs-room-memory-chip {
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: rgba(12, 17, 37, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #dbeafe;
  font-size: 0.75rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vs-room-sticker-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.1rem 0.1rem 0;
}

.vs-room-sticker-cloud__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(139, 92, 246, 0.22);
  animation: roomReactionFloat 5s ease-in-out infinite;
}

@keyframes roomReactionFloat {
  0%, 100% { transform: translateY(0); opacity: 0.88; }
  50% { transform: translateY(-5px); opacity: 1; }
}

.vs-room-scene {
  position: relative;
  min-height: 220px;
  border-radius: 1.2rem;
  overflow: hidden;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(139, 92, 246, 0.16);
  background:
    radial-gradient(circle at 16% 22%, rgba(139, 92, 246, 0.18), transparent 36%),
    radial-gradient(circle at 76% 28%, rgba(56, 189, 248, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(13, 18, 40, 0.88), rgba(10, 11, 23, 0.96));
}

.vs-room-scene__glow,
.vs-room-scene__haze,
.vs-room-scene__skyline {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vs-room-scene__glow {
  background: radial-gradient(circle at 50% 100%, color-mix(in srgb, var(--room-color), transparent 74%), transparent 64%);
}

.vs-room-scene__haze {
  inset: auto -10% -18% -10%;
  height: 58%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1), transparent 72%);
  filter: blur(26px);
}

.vs-room-scene__skyline {
  background:
    linear-gradient(0deg, rgba(6, 8, 18, 0.75) 0 20%, transparent 20% 100%),
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.04) 8% 10%, transparent 10% 18%, rgba(255, 255, 255, 0.03) 18% 22%, transparent 22% 100%);
  opacity: 0.7;
}

.vs-room-scene__presence {
  position: absolute;
  inset: 0.8rem 0.8rem auto auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: min(42%, 250px);
}

.vs-room-presence-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(12, 17, 37, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #dbeafe;
  font-size: 0.74rem;
}

.vs-room-presence-chip.is-online {
  border-color: rgba(74, 222, 128, 0.34);
}

.vs-room-object-stage {
  position: absolute;
  inset: 0;
}

.vs-room-stage-object {
  position: absolute;
  width: clamp(8rem, 18vw, 12rem);
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.2);
  color: #ecf5ff;
}

.vs-room-stage-object strong {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.22rem;
}

.vs-room-stage-object p {
  margin: 0;
  font-size: 0.73rem;
  line-height: 1.4;
  color: #d2deef;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vs-room-stage-object--memory,
.vs-room-stage-object--note {
  background: rgba(36, 28, 54, 0.78);
}

.vs-room-stage-object--playlist {
  background: rgba(15, 42, 59, 0.8);
}

.vs-room-stage-object--sticker {
  width: 4.2rem;
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
  background: rgba(58, 29, 82, 0.82);
}

.vs-room-stage-object--sticker p,
.vs-room-stage-object--sticker strong {
  display: none;
}

.vs-room-stage-object--collectible,
.vs-room-stage-object--mood {
  background: rgba(31, 29, 68, 0.82);
}

.stage-slot-0 { top: 16%; left: 7%; transform: rotate(-5deg); }
.stage-slot-1 { top: 12%; right: 12%; transform: rotate(3deg); }
.stage-slot-2 { bottom: 18%; left: 14%; }
.stage-slot-3 { bottom: 14%; right: 20%; transform: rotate(-3deg); }
.stage-slot-4 { top: 36%; left: 38%; }
.stage-slot-5 { bottom: 10%; left: 45%; }

.vs-room-feed-wrap {
  height: 100%;
}

.vs-thread-messages {
  border-radius: 16px;
  background:
    radial-gradient(circle at 15% 5%, rgba(139, 92, 246, 0.18), transparent 40%),
    radial-gradient(circle at 88% 90%, rgba(6, 182, 212, 0.14), transparent 42%),
    rgba(8, 12, 27, 0.74);
  border: 1px solid rgba(129, 140, 248, 0.22);
  padding: 1rem;
  min-height: 360px;
}

.vs-room-message-card {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(139, 92, 246, 0.08);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vs-room-message-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.3);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.vs-room-message-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.vs-room-zone--right {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.vs-room-presence-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.vs-room-objects-grid {
  display: grid;
  gap: 0.55rem;
}

.vs-room-object-card {
  margin: 0;
  border: 1px solid rgba(139, 92, 246, 0.25);
  background: rgba(18, 11, 39, 0.66);
  border-radius: 0.75rem;
  padding: 0.55rem;
}

.vs-room-object-card h4 {
  margin: 0 0 0.3rem;
  font-size: 0.8rem;
  color: #e9d5ff;
}

.vs-room-object-card p {
  margin: 0;
  font-size: 0.76rem;
  color: #b7c2dd;
}

.vs-room-object-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
}

.vs-room-object-create-row {
  display: grid;
  grid-template-columns: 1fr 92px;
  gap: 0.45rem;
}

.vs-room-right-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.vs-room-mini-panel {
  border-radius: 1rem;
  padding: 0.7rem;
  background: linear-gradient(135deg, rgba(28, 20, 56, 0.68), rgba(15, 34, 59, 0.58));
  border: 1px solid rgba(129, 140, 248, 0.2);
}

.vs-room-mini-panel h4 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: #ece7ff;
}

.vs-room-presence-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 0.45rem;
  row-gap: 0.2rem;
}

.vs-room-presence-row__activity {
  grid-column: 2 / 4;
  color: #9fb2d9;
  font-size: 0.72rem;
}

.vs-room-drop-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.vs-room-drop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 0.9rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(139, 92, 246, 0.24);
  background: rgba(12, 17, 37, 0.7);
  color: #e5e7eb;
  font-size: 0.76rem;
  cursor: pointer;
}

.vs-room-drop-action:hover {
  border-color: rgba(139, 92, 246, 0.42);
  transform: translateY(-1px);
}

.vs-room-actions-panel {
  border-radius: 1rem;
  background: rgba(12, 17, 37, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.vs-room-actions-panel__summary {
  cursor: pointer;
  padding: 0.7rem 0.8rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}

.vs-room-actions-panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.8rem 0.8rem;
}

.vs-settings-form--compact {
  gap: 0.45rem;
}

.vs-room-empty-prompts {
  margin-top: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#room-composer-shell {
  position: sticky;
  bottom: 0.4rem;
  z-index: 5;
  border: 1px solid rgba(139, 92, 246, 0.3);
  background: rgba(12, 14, 29, 0.92);
  backdrop-filter: blur(9px);
}

.vs-compose-tools--room {
  gap: 0.28rem;
}

.vs-compose-tools--room .vs-compose-tool {
  border-radius: 999px;
}

.vs-room-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.vs-room-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(8px);
}

.vs-room-modal__panel {
  position: relative;
  width: min(92vw, 440px);
  margin: min(12vh, 6rem) auto 0;
  padding: 1rem;
  z-index: 1;
}

.vs-room-modal__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  color: #dbeafe;
  font-size: 1rem;
  cursor: pointer;
}

.vs-room-modal__eyebrow {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #a5b4fc;
}

.vs-room-modal__panel h3 {
  margin: 0.2rem 0 0.35rem;
  color: #f2e8ff;
}

.vs-room-modal__copy {
  margin: 0 0 0.8rem;
  color: #aeb9d6;
  font-size: 0.82rem;
}

.room-hero-particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.65);
  box-shadow: 0 0 14px rgba(125, 211, 252, 0.5);
  animation: roomHeroParticle 7.5s linear forwards;
}

@keyframes roomHeroParticle {
  0% { transform: translateY(10px) scale(0.7); opacity: 0; }
  20% { opacity: 0.8; }
  100% { transform: translateY(-120px) scale(1.15); opacity: 0; }
}

@media (max-width: 1180px) {
  .vs-room-main-grid {
    grid-template-columns: 230px minmax(0, 1fr) 280px;
  }
}

@media (max-width: 880px) {
  .vs-room-dock__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .vs-room-main-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.8rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.2rem;
  }

  .vs-room-mobile-bar {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    position: sticky;
    top: 3.05rem;
    z-index: 4;
  }

  .vs-room-zone {
    min-width: calc(100vw - 1.8rem);
    scroll-snap-align: center;
  }

  .vs-room-chip {
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(17, 20, 41, 0.86);
    color: #d7dbff;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .vs-thread-messages {
    min-height: 290px;
  }

  .vs-room-hero {
    min-height: 180px;
  }

  .vs-room-hero__orbit {
    display: none;
  }

  .vs-room-scene__presence {
    position: static;
    max-width: none;
    padding: 0.7rem 0.7rem 0;
  }

  .vs-room-object-stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    padding: 0.8rem;
  }

  .vs-room-stage-object {
    position: static;
    width: auto;
    transform: none !important;
  }

  .vs-room-occupancy {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.2rem;
  }
}

@media (max-width: 560px) {
  .vs-room-shell {
    padding-inline: 0.55rem;
  }

  .vs-room-zone {
    min-width: calc(100vw - 1.1rem);
  }

  .vs-room-drop-actions,
  .vs-room-object-create-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-room-floating-reactions span,
  .room-hero-particle,
  .vs-room-occupant-bubble.is-online,
  .vs-room-sticker-cloud__item {
    animation: none !important;
    transition: none !important;
  }
}
