/* Galaxy Lounge — IMVU layout: big room LEFT, streaming chat RIGHT
   #chatRoomCanvas is the future 3D mount point */

.chat-lounge--imvu{
  width:100%;
}
.page-chat .content-wrapper{
  max-width:min(1600px, calc(100% - 28px));
}
.page-chat .content-card:first-child{
  margin-bottom:14px;
}

.chat-lounge__shell{
  display:grid;
  grid-template-columns:minmax(0, 1.55fr) minmax(320px, 400px);
  gap:16px;
  align-items:start; /* left (room+tools) owns height; chat is synced to it */
}

/* Left column: backdrop on top, composer tools underneath — no stretch gap */
.chat-lounge__left.content-card{
  padding:8px !important;
  margin-bottom:0 !important;
  text-align:left !important;
  background:linear-gradient(180deg, rgba(8,10,22,.35), rgba(6,8,18,.55)) !important;
  display:flex;
  flex-direction:column;
  gap:10px;
  height:fit-content;
  align-self:start;
  border-color:rgba(255,255,255,.08) !important;
}

.chat-lounge__viewport{
  flex:0 0 auto;
  height:min(68vh, 640px);
  min-height:360px;
  display:flex;
}

.chat-controls--under-room{
  flex:0 0 auto;
  gap:8px;
  padding:4px 2px 2px;
}

.chat-lounge__stream.content-card{
  padding:12px !important;
  margin-bottom:0 !important;
  text-align:left !important;
  background:linear-gradient(180deg, rgba(8,10,22,.72), rgba(6,8,18,.88)) !important;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:0;
  max-height:none;
  align-self:start;
  overflow:hidden;
  box-sizing:border-box;
}

.chat-lounge__stream-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex:0 0 auto;
}
.chat-lounge__stream-titles{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.chat-lounge__stream-head h2{
  margin:0;
  font-family:var(--g-font-neon, "Pacifico", cursive);
  font-size:1.2rem;
  font-weight:400;
  color:#ff87d9;
  text-shadow:0 0 16px rgba(255,135,217,.75), 0 0 28px rgba(213,140,255,.35);
}
.chat-lounge__stream-live{
  font-size:.82rem;
  opacity:.9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  color:#ffc2ec;
  text-shadow:0 0 10px rgba(255,135,217,.35);
}
.chat-lounge__dj-banner{
  margin:0 0 8px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,135,217,.35);
  background:rgba(255,135,217,.08);
  color:#ffc2ec;
  font-size:.88rem;
}

.chat-presence-toggle{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(124,236,255,.28);
  background:rgba(0,0,0,.28);
  color:inherit;
  font:inherit;
  font-size:.82rem;
  font-weight:800;
  cursor:pointer;
}
.chat-presence-toggle:hover,
.chat-presence-toggle.is-open{
  border-color:rgba(124,236,255,.5);
  background:rgba(124,236,255,.12);
}
.chat-presence-toggle__label{ white-space:nowrap; }
.chat-presence-toggle .chat-presence__count{
  min-width:22px;
  height:22px;
  margin:0;
}
.chat-presence-hide{
  border:0;
  background:transparent;
  color:inherit;
  opacity:.75;
  font:inherit;
  font-size:.78rem;
  font-weight:700;
  cursor:pointer;
  padding:2px 6px;
  border-radius:8px;
}
.chat-presence-hide:hover{
  opacity:1;
  background:rgba(255,255,255,.08);
}
/* Left stage = full-bleed room (custom image or CSS scenery) */
.chat-lounge__stage{
  position:relative !important;
  flex:1 1 auto;
  width:100%;
  height:100% !important;
  min-height:100% !important;
  border-radius:18px !important;
  overflow:hidden !important;
  isolation:isolate;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.1) !important;
  box-shadow:
    inset 0 0 60px rgba(0,0,0,.45),
    0 18px 40px rgba(0,0,0,.35) !important;
  background:#0a0814 !important;
  cursor:crosshair;
}

.chat-lounge__theme-tag{
  top:14px !important;
  left:14px !important;
  z-index:7 !important;
}

.chat-lounge__stage:not(.has-room3d)::before{ content:none !important; display:none !important; }
.chat-lounge__stage:not(.has-image)::after{ content:none !important; display:none !important; }

.chat-lounge__stage.has-image{
  background-image:var(--chat-room-image) !important;
  background-size:cover !important;
  background-position:center !important;
  background-repeat:no-repeat !important;
}
/* Photoreal props layer (admin-managed) over theme backdrop */
.chat-lounge__stage.has-image .chat-lounge__room,
.chat-lounge__stage.has-photo-props .chat-lounge__room{
  background:transparent !important;
}
.room-photo-props{
  position:absolute;
  inset:0;
  z-index:3;
  pointer-events:none;
}
.room-photo-prop{
  position:absolute;
  transform:translate(-50%, -100%);
  height:auto;
  max-width:28%;
  max-height:42%;
  object-fit:contain;
  filter:
    drop-shadow(0 14px 20px rgba(0,0,0,.55))
    drop-shadow(0 2px 3px rgba(0,0,0,.65));
  pointer-events:none;
  user-select:none;
}
.room-photo-prop.is-flipped{
  transform:translate(-50%, -100%) scaleX(-1);
}
.chat-lounge__stage.has-image::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 50% 78%, transparent 32%, rgba(0,0,0,.38) 100%),
    linear-gradient(180deg, rgba(0,0,0,.22), transparent 26%),
    linear-gradient(90deg, rgba(0,0,0,.18), transparent 18%, transparent 82%, rgba(0,0,0,.18));
}
.chat-lounge__stage.has-photo-props .chat-lounge__room::after{
  content:none;
  display:none;
}
.chat-lounge__move-hint{
  position:absolute;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  z-index:6;
  margin:0;
  padding:4px 10px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.02em;
  color:rgba(255,255,255,.78);
  background:rgba(0,0,0,.42);
  border:1px solid rgba(255,255,255,.12);
  pointer-events:none;
  opacity:.85;
  transition:opacity .4s ease;
}
.chat-lounge__stage.is-walking .chat-lounge__move-hint,
.chat-lounge__stage:hover .chat-lounge__move-hint{
  opacity:.35;
}

/* Standing IMVU-style room figures */
.room-avatars{
  position:absolute;
  inset:0;
  z-index:5;
  pointer-events:none;
}
.room-figure{
  position:absolute;
  transform:translate(-50%, -100%) scale(var(--room-scale, 1));
  transform-origin:50% 100%;
  width:72px;
  display:flex;
  flex-direction:column;
  align-items:center;
  pointer-events:none;
  transition:left .45s cubic-bezier(.2,.8,.2,1), top .45s cubic-bezier(.2,.8,.2,1), transform .45s ease;
  filter:drop-shadow(0 10px 14px rgba(0,0,0,.4));
}
.room-figure.is-self{
  filter:drop-shadow(0 0 10px color-mix(in srgb, var(--room-color, #7cecff) 55%, transparent)) drop-shadow(0 10px 14px rgba(0,0,0,.4));
}
.room-figure__plate{
  order:1;
  max-width:110px;
  margin-bottom:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  line-height:1.2;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  background:rgba(4,6,14,.78);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 4px 12px rgba(0,0,0,.35);
  text-shadow:0 1px 2px rgba(0,0,0,.55);
}
.room-figure__role{
  display:inline-block;
  margin-left:4px;
  padding:0 5px;
  border-radius:999px;
  font-size:.58rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#0a0814;
  background:linear-gradient(90deg,#ffd27a,#ff87d9);
  vertical-align:middle;
}
.room-figure.is-bot .room-figure__role{
  background:linear-gradient(90deg,#7cecff,#a5b4fc);
}
/* Stick-body silhouette rules removed — live figures use chat-room-imvu.css puppet parts */
.room-figure__sticker{
  position:absolute;
  right:-10px;
  top:-6px;
  font-size:.85rem;
  line-height:1;
}
.room-figure__shadow{
  order:3;
  width:36px;
  height:10px;
  margin-top:-2px;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
}
.room-figure__speech{
  order:0;
  position:relative;
  max-width:140px;
  margin-bottom:6px;
  padding:6px 10px;
  border-radius:12px 12px 12px 4px;
  font-size:.72rem;
  font-weight:600;
  line-height:1.25;
  color:#f4f0ff;
  background:rgba(10,12,24,.88);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 8px 18px rgba(0,0,0,.35);
  opacity:0;
  transform:translateY(6px) scale(.92);
  transition:opacity .25s ease, transform .25s ease;
  pointer-events:none;
  word-break:break-word;
}
.room-figure__speech.is-on{
  opacity:1;
  transform:translateY(0) scale(1);
}
.room-figure__speech[hidden]{ display:none !important; }

/* Chat pane fills synced stream height; does not grow the page */
.chat-box--stream,
.chat-lounge__stream .chat-box,
.chat-lounge__stream .chat-box--bubbles{
  position:relative;
  z-index:1;
  flex:1 1 0 !important;
  width:100%;
  min-height:0 !important;
  max-height:none !important;
  height:0 !important; /* flex-basis trick: size from parent, not message content */
  margin:0 !important;
  overflow-y:auto !important;
  background:rgba(4,6,16,.55) !important;
  border-color:rgba(255,255,255,.14) !important;
  box-shadow:inset 0 0 14px rgba(0,0,0,.28) !important;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

.chat-controls--under-room .chat-profile-bar{
  flex-wrap:wrap;
  gap:8px;
}
.chat-controls--under-room .chat-input-row{
  display:flex;
  gap:8px;
  align-items:center;
}
.chat-controls--under-room .chat-input-row .request-input{
  flex:1 1 auto;
  min-width:0;
}
.chat-controls--under-room .chat-whisper-toggle{
  font-size:.82rem;
}
.chat-controls--under-room .chat-hint{ display:none; }
.chat-controls--under-room .chat-emoji{
  position:relative;
}
.chat-controls--under-room .emoji-panel{
  left:0;
  right:auto;
  bottom:auto;
  top:auto;
}

.chat-presence--inline{
  flex:0 0 auto;
  min-height:0 !important;
  margin:0 !important;
  padding:8px 10px !important;
  border-radius:12px;
  border:1px solid rgba(124,236,255,.16);
  background:rgba(0,0,0,.22) !important;
  box-shadow:none !important;
}
.chat-presence--inline[hidden]{
  display:none !important;
}
.chat-presence--inline .chat-presence__head{
  margin-bottom:8px;
}
.chat-presence--inline .chat-presence__list{
  max-height:96px;
  overflow:auto;
}
.chat-presence--inline .chat-presence__foot{ display:none; }

/* ===== Room scenery fills the left viewport ===== */
.chat-lounge__room{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  overflow:hidden;
  pointer-events:none;
}

.room-wall,
.room-ceiling,
.room-floor,
.room-stars,
.room-window,
.room-neon,
.room-disco-ball,
.room-beams,
.room-bar,
.room-stools,
.room-couch,
.room-table,
.room-speakers,
.room-stage-deck,
.room-amps,
.room-mic,
.room-jukebox,
.room-bales,
.room-plants,
.room-lava,
.room-palm,
.room-grid-horizon,
.room-spotlights{
  position:absolute;
  display:none;
}

/* Shared architecture */
.room-wall{
  display:block;
  inset:0 0 38% 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.04), transparent 30%),
    linear-gradient(90deg, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.35)),
    linear-gradient(180deg, #1b1533, #241a42 60%, #17122c);
}
.room-ceiling{
  display:block;
  top:0; left:0; right:0;
  height:18%;
  background:linear-gradient(180deg, rgba(0,0,0,.55), transparent);
  z-index:2;
}
.room-floor{
  display:block;
  left:-8%; right:-8%;
  bottom:-4%;
  height:44%;
  transform-origin:center top;
  transform:perspective(700px) rotateX(58deg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 18%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, #2a2148, #120e22);
  box-shadow:inset 0 30px 50px rgba(0,0,0,.35);
  z-index:1;
}

/* ---- Cosmic lounge ---- */
.theme-cosmic .room-wall{
  background:
    radial-gradient(circle at 20% 30%, rgba(124,236,255,.18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(213,140,255,.2), transparent 38%),
    linear-gradient(180deg, #10122a, #1a1640 55%, #0e1024) !important;
}
.theme-cosmic .room-floor{
  background:
    linear-gradient(180deg, rgba(124,236,255,.12), transparent 20%),
    repeating-linear-gradient(90deg, rgba(124,236,255,.06) 0 1px, transparent 1px 48px),
    linear-gradient(180deg, #1c2448, #0a0e1c) !important;
}
.theme-cosmic .room-stars,
.theme-cosmic .room-window,
.theme-cosmic .room-couch,
.theme-cosmic .room-table,
.theme-cosmic .room-plants,
.theme-cosmic .room-lava{ display:block; }

.room-stars{
  inset:6% 8% 50% 8%;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 28% 40%, #cfe9ff, transparent),
    radial-gradient(2px 2px at 45% 18%, #fff, transparent),
    radial-gradient(1px 1px at 62% 35%, #ffd6ff, transparent),
    radial-gradient(1.5px 1.5px at 78% 22%, #fff, transparent),
    radial-gradient(1px 1px at 88% 48%, #b8f0ff, transparent),
    radial-gradient(2px 2px at 35% 55%, #fff, transparent),
    radial-gradient(1px 1px at 55% 60%, #fff, transparent);
  opacity:.85;
  animation:roomTwinkle 5s ease-in-out infinite alternate;
}
.room-window{
  top:12%;
  left:50%;
  width:min(42%, 280px);
  height:28%;
  transform:translateX(-50%);
  border-radius:18px 18px 8px 8px;
  border:3px solid rgba(180,210,255,.28);
  box-shadow:
    0 0 30px rgba(124,236,255,.2),
    inset 0 0 40px rgba(80,140,255,.2);
  background:
    radial-gradient(circle at 30% 40%, rgba(255,180,255,.35), transparent 40%),
    radial-gradient(circle at 70% 30%, rgba(100,200,255,.4), transparent 45%),
    linear-gradient(180deg, #0a1230, #1a0a30);
}
.room-window::before,
.room-window::after{
  content:"";
  position:absolute;
  background:rgba(200,220,255,.2);
}
.room-window::before{ left:50%; top:0; bottom:0; width:2px; }
.room-window::after{ top:50%; left:0; right:0; height:2px; }

.room-couch{
  bottom:16%;
  width:22%;
  height:12%;
  border-radius:14px 14px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.12), transparent 40%),
    linear-gradient(180deg, #3a2f6e, #241a48);
  box-shadow:0 10px 18px rgba(0,0,0,.35);
  z-index:2;
}
.room-couch::before{
  content:"";
  position:absolute;
  left:6%; right:6%;
  top:-28%;
  height:40%;
  border-radius:12px 12px 0 0;
  background:linear-gradient(180deg, #4a3c82, #2e2458);
}
.room-couch::after{
  content:"";
  position:absolute;
  bottom:-10%;
  left:8%; right:8%;
  height:18%;
  border-radius:4px;
  background:rgba(0,0,0,.35);
}
.room-couch--left{ left:7%; }
.room-couch--right{ right:7%; }
.room-table{
  left:50%;
  bottom:18%;
  width:14%;
  height:5%;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle at 40% 30%, #6a5a3a, #2a2010);
  box-shadow:0 8px 16px rgba(0,0,0,.4);
  z-index:2;
}
.room-table::before{
  content:"";
  position:absolute;
  left:46%;
  top:90%;
  width:8%;
  height:70px;
  background:linear-gradient(180deg, #3a2a14, #1a1208);
}
.room-plants{ inset:0; }
.room-plants i{
  position:absolute;
  bottom:20%;
  width:18px;
  height:48px;
  border-radius:40% 40% 20% 20%;
  background:linear-gradient(180deg, #4cff9a, #1a8040);
  box-shadow:0 0 12px rgba(80,255,160,.25);
}
.room-plants i:first-child{ left:3%; }
.room-plants i:last-child{ right:3%; }
.room-plants i::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:22px;
  height:14px;
  transform:translateX(-50%);
  border-radius:4px;
  background:#5a3a20;
}
.room-lava{
  right:12%;
  bottom:28%;
  width:18px;
  height:52px;
  border-radius:20px;
  background:linear-gradient(180deg, #ff6ec7, #7b2cff 55%, #1a1030);
  box-shadow:0 0 18px rgba(255,110,200,.45);
  z-index:2;
  animation:lavaBlob 3.5s ease-in-out infinite;
}
.room-lava::before{
  content:"";
  position:absolute;
  left:3px; right:3px; top:8px;
  height:14px;
  border-radius:50%;
  background:rgba(255,180,240,.55);
  animation:lavaBlob 3.5s ease-in-out infinite reverse;
}

/* ---- Disco floor ---- */
.theme-disco .room-wall{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.18), transparent 35%),
    linear-gradient(180deg, #2a0a3a, #4a1260 50%, #1a0828) !important;
}
.theme-disco .room-floor{
  background:
    linear-gradient(rgba(255,255,255,.05), rgba(255,255,255,.05)),
    repeating-conic-gradient(#1a0a20 0% 25%, #ff4fc3 0% 50%) 0 0 / 42px 42px,
    #120818 !important;
  filter:saturate(1.15);
  animation:floorPulse 2.8s ease-in-out infinite;
}
.theme-disco .room-disco-ball,
.theme-disco .room-beams,
.theme-disco .room-bar,
.theme-disco .room-stools,
.theme-disco .room-speakers,
.theme-disco .room-neon,
.theme-disco .room-spotlights{ display:block; }

.room-disco-ball{
  top:4%;
  left:50%;
  width:min(120px, 14vw);
  height:min(120px, 14vw);
  transform:translateX(-50%);
  z-index:5;
}
.room-disco-ball::before{
  content:"";
  position:absolute;
  left:50%;
  top:-28px;
  width:2px;
  height:30px;
  background:linear-gradient(180deg, #aaa, #666);
  transform:translateX(-50%);
}
.room-disco-ball i{
  position:absolute;
  inset:0;
  border-radius:50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      #f4f7ff 0deg 12deg,
      #9ad7ff 12deg 24deg,
      #ff9ad8 24deg 36deg,
      #ffe58a 36deg 48deg
    );
  box-shadow:
    0 0 24px rgba(255,255,255,.55),
    0 0 48px rgba(255,120,220,.35),
    inset -8px -10px 18px rgba(0,0,0,.25);
  animation:discoSpin 6s linear infinite;
}
.room-disco-ball b{
  position:absolute;
  width:10px; height:10px;
  border-radius:50%;
  background:#fff;
  opacity:.0;
  animation:discoSpark 2.4s ease-in-out infinite;
}
.room-disco-ball b:nth-child(2){ top:10%; left:70%; animation-delay:.2s; background:#ff9ad8; }
.room-disco-ball b:nth-child(3){ top:55%; left:8%; animation-delay:.8s; background:#9ad7ff; }
.room-disco-ball b:nth-child(4){ top:70%; left:75%; animation-delay:1.4s; background:#ffe58a; }

.room-beams{
  inset:0;
  background:
    conic-gradient(from 200deg at 50% 8%, transparent 0 8%, rgba(255,120,220,.12) 8% 11%, transparent 11% 22%, rgba(100,220,255,.1) 22% 25%, transparent 25% 100%);
  animation:beamSweep 7s linear infinite;
  z-index:2;
  mix-blend-mode:screen;
}

.room-bar{
  left:4%;
  bottom:14%;
  width:26%;
  height:22%;
  z-index:3;
}
.room-bar__front{
  position:absolute;
  left:0; right:0; bottom:0;
  height:62%;
  border-radius:8px 8px 4px 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 3px, transparent 3px 14px),
    linear-gradient(180deg, #3a1848, #1a0a22);
  border:1px solid rgba(255,180,255,.2);
  box-shadow:0 12px 24px rgba(0,0,0,.4);
}
.room-bar__top{
  position:absolute;
  left:-2%; right:-2%;
  bottom:58%;
  height:14%;
  border-radius:6px;
  background:linear-gradient(180deg, #6a3a55, #2a1528);
  box-shadow:0 4px 0 rgba(0,0,0,.35);
}
.room-bar__bottles{
  position:absolute;
  left:8%; right:8%;
  bottom:70%;
  height:34%;
  background:
    radial-gradient(circle at 15% 80%, #4cffc0 0 5px, transparent 6px),
    radial-gradient(circle at 35% 70%, #ff6ec7 0 6px, transparent 7px),
    radial-gradient(circle at 55% 78%, #7cecff 0 5px, transparent 6px),
    radial-gradient(circle at 75% 68%, #ffd27a 0 6px, transparent 7px),
    radial-gradient(circle at 90% 80%, #d58cff 0 5px, transparent 6px);
  filter:drop-shadow(0 0 6px rgba(255,255,255,.25));
}

.room-stools{
  left:8%;
  bottom:12%;
  width:20%;
  height:10%;
  z-index:4;
}
.room-stools i{
  position:absolute;
  bottom:0;
  width:22%;
  height:100%;
  border-radius:50% 50% 4px 4px;
  background:linear-gradient(180deg, #2a2a38, #101018);
  box-shadow:0 6px 10px rgba(0,0,0,.35);
}
.room-stools i::before{
  content:"";
  position:absolute;
  left:10%; right:10%;
  top:0;
  height:28%;
  border-radius:50%;
  background:linear-gradient(180deg, #ff7ad9, #8a2a6a);
}
.room-stools i:nth-child(1){ left:5%; }
.room-stools i:nth-child(2){ left:38%; }
.room-stools i:nth-child(3){ left:70%; }

.room-speakers{
  top:28%;
  left:0; right:0;
  height:28%;
  z-index:2;
}
.room-speakers i{
  position:absolute;
  top:0;
  width:54px;
  height:90px;
  border-radius:10px;
  background:
    radial-gradient(circle at 50% 30%, #222 0 12px, transparent 13px),
    radial-gradient(circle at 50% 68%, #222 0 16px, transparent 17px),
    linear-gradient(180deg, #1a1a22, #0a0a10);
  border:2px solid rgba(255,255,255,.12);
  box-shadow:0 0 18px rgba(255,80,200,.2);
}
.room-speakers i:first-child{ left:3%; }
.room-speakers i:last-child{ right:3%; }
.room-speakers i::after{
  content:"";
  position:absolute;
  inset:18% 22%;
  border-radius:50%;
  border:2px solid rgba(255,255,255,.15);
  animation:speakerThump 1.1s ease-in-out infinite;
}

.room-neon{
  top:10%;
  right:8%;
  padding:6px 14px;
  border:2px solid #ff4fc3;
  border-radius:8px;
  color:#ff9ad8;
  font-family:Syne, Outfit, sans-serif;
  font-weight:800;
  letter-spacing:.18em;
  font-size:.78rem;
  text-shadow:0 0 10px #ff4fc3, 0 0 22px #ff4fc3;
  box-shadow:0 0 18px rgba(255,79,195,.45), inset 0 0 12px rgba(255,79,195,.2);
  transform:rotate(-6deg);
  z-index:4;
  animation:neonFlicker 4s infinite;
}
.room-neon span{ display:block; }

.room-spotlights{
  top:0; left:0; right:0;
  height:40%;
  z-index:2;
}
.room-spotlights i{
  position:absolute;
  top:0;
  width:80px;
  height:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.22), transparent 70%);
  clip-path:polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  opacity:.55;
  filter:blur(1px);
  animation:spotSway 5s ease-in-out infinite alternate;
}
.room-spotlights i:nth-child(1){ left:18%; background:linear-gradient(180deg, rgba(255,100,220,.35), transparent 70%); }
.room-spotlights i:nth-child(2){ left:45%; animation-delay:1s; background:linear-gradient(180deg, rgba(120,220,255,.3), transparent 70%); }
.room-spotlights i:nth-child(3){ left:70%; animation-delay:2s; background:linear-gradient(180deg, rgba(255,220,100,.28), transparent 70%); }

/* ---- Neon night club ---- */
.theme-neon .room-wall{
  background:
    linear-gradient(90deg, rgba(255,45,149,.15), transparent 30%, transparent 70%, rgba(0,255,220,.12)),
    linear-gradient(180deg, #12001e, #1e0032 55%, #0a0014) !important;
}
.theme-neon .room-floor{
  background:
    repeating-linear-gradient(90deg, rgba(0,255,220,.15) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(0deg, rgba(255,45,149,.12) 0 2px, transparent 2px 40px),
    linear-gradient(180deg, #1a0028, #080010) !important;
}
.theme-neon .room-bar,
.theme-neon .room-stools,
.theme-neon .room-neon,
.theme-neon .room-speakers,
.theme-neon .room-spotlights,
.theme-neon .room-beams{ display:block; }
.theme-neon .room-neon{
  left:50%; right:auto;
  top:12%;
  transform:translateX(-50%) rotate(0deg);
  border-color:#00ffdc;
  color:#9ffff0;
  text-shadow:0 0 10px #00ffdc, 0 0 22px #ff2d95;
  box-shadow:0 0 18px rgba(0,255,220,.45), inset 0 0 12px rgba(255,45,149,.2);
}
.theme-neon .room-bar{ left:auto; right:4%; }
.theme-neon .room-stools{ left:auto; right:8%; }
.theme-neon .room-bar__front{
  background:
    repeating-linear-gradient(90deg, rgba(0,255,220,.1) 0 3px, transparent 3px 14px),
    linear-gradient(180deg, #2a0840, #100018) !important;
}

/* ---- Chill lounge ---- */
.theme-chill .room-wall{
  background:
    radial-gradient(circle at 70% 20%, rgba(120,200,255,.25), transparent 40%),
    linear-gradient(180deg, #0a2030, #123848 55%, #071820) !important;
}
.theme-chill .room-floor{
  background:
    linear-gradient(180deg, rgba(140,210,255,.12), transparent 25%),
    linear-gradient(180deg, #1a4050, #0a1820) !important;
}
.theme-chill .room-couch,
.theme-chill .room-table,
.theme-chill .room-plants,
.theme-chill .room-palm,
.theme-chill .room-window,
.theme-chill .room-lava{ display:block; }
.theme-chill .room-couch{
  background:linear-gradient(180deg, #3a7088, #1a3848) !important;
}
.theme-chill .room-couch::before{ background:linear-gradient(180deg, #4a88a0, #245060) !important; }
.theme-chill .room-window{
  background:
    radial-gradient(circle at 50% 70%, rgba(255,200,140,.35), transparent 45%),
    linear-gradient(180deg, #4a90b8, #0a3048) !important;
}
.room-palm{ inset:0; }
.room-palm i{
  position:absolute;
  bottom:18%;
  width:10px;
  height:70px;
  background:linear-gradient(180deg, #2a6030, #0a3018);
  border-radius:4px;
}
.room-palm i::before{
  content:"";
  position:absolute;
  left:50%;
  top:-8px;
  width:56px;
  height:28px;
  transform:translateX(-50%);
  background:
    radial-gradient(ellipse at 20% 80%, #3d9a4a 0 10px, transparent 11px),
    radial-gradient(ellipse at 50% 40%, #4cb85a 0 12px, transparent 13px),
    radial-gradient(ellipse at 80% 80%, #3d9a4a 0 10px, transparent 11px);
}
.room-palm i:first-child{ left:5%; }
.room-palm i:last-child{ right:5%; }

/* ---- Country barn ---- */
.theme-country .room-wall{
  background:
    repeating-linear-gradient(90deg, rgba(80,40,10,.35) 0 18px, rgba(120,70,25,.25) 18px 36px),
    linear-gradient(180deg, #4a2a12, #2a1608 60%, #1a0e06) !important;
}
.theme-country .room-floor{
  background:
    repeating-linear-gradient(90deg, #5a3818 0 28px, #3a2410 28px 56px),
    #2a1808 !important;
  transform:perspective(700px) rotateX(58deg) !important;
}
.theme-country .room-bar,
.theme-country .room-stools,
.theme-country .room-jukebox,
.theme-country .room-bales,
.theme-country .room-spotlights{ display:block; }
.theme-country .room-bar{ left:auto; right:5%; width:28%; }
.theme-country .room-stools{ left:auto; right:9%; }
.theme-country .room-bar__front{
  background:
    repeating-linear-gradient(90deg, #6a4220 0 10px, #4a2c12 10px 20px),
    #3a200e !important;
  border-color:rgba(255,200,120,.25) !important;
}
.theme-country .room-bar__top{ background:linear-gradient(180deg, #8a5a30, #4a2c12) !important; }
.theme-country .room-stools i::before{ background:linear-gradient(180deg, #c28a4a, #6a3a18) !important; }
.theme-country .room-spotlights i{
  background:linear-gradient(180deg, rgba(255,200,100,.28), transparent 70%) !important;
}
.room-jukebox{
  left:8%;
  bottom:16%;
  width:70px;
  height:110px;
  border-radius:10px 10px 4px 4px;
  background:
    linear-gradient(180deg, #ff6b6b 0 18%, #2a2a40 18% 55%, #c28a4a 55% 100%);
  box-shadow:0 0 20px rgba(255,100,100,.35), 0 10px 18px rgba(0,0,0,.35);
  z-index:3;
  border:2px solid rgba(255,220,160,.25);
}
.room-jukebox::before{
  content:"";
  position:absolute;
  left:12%; right:12%;
  top:24%;
  height:22%;
  border-radius:6px;
  background:linear-gradient(90deg, #7cecff, #ff6ec7, #ffd27a);
  box-shadow:0 0 12px rgba(124,236,255,.5);
  animation:jukeGlow 2s ease-in-out infinite alternate;
}
.room-bales{ inset:0; z-index:2; }
.room-bales i{
  position:absolute;
  bottom:14%;
  width:70px;
  height:36px;
  border-radius:8px;
  background:
    repeating-linear-gradient(90deg, #c9a227 0 8px, #a8861a 8px 16px);
  box-shadow:0 8px 14px rgba(0,0,0,.3);
}
.room-bales i:first-child{ left:4%; }
.room-bales i:last-child{ left:12%; bottom:20%; width:58px; }

/* ---- Retro wave ---- */
.theme-retro .room-wall{
  background:
    radial-gradient(circle at 50% 0%, rgba(255,120,200,.35), transparent 40%),
    linear-gradient(180deg, #2a0848, #120828 60%, #080418) !important;
}
.theme-retro .room-floor{
  background:
    linear-gradient(180deg, rgba(255,110,180,.2), transparent 30%),
    repeating-linear-gradient(90deg, rgba(120,220,255,.2) 0 2px, transparent 2px 36px),
    repeating-linear-gradient(0deg, rgba(120,220,255,.15) 0 2px, transparent 2px 36px),
    #140828 !important;
}
.theme-retro .room-grid-horizon,
.theme-retro .room-neon,
.theme-retro .room-palm,
.theme-retro .room-speakers,
.theme-retro .room-beams{ display:block; }
.theme-retro .room-neon{
  left:50%; right:auto; top:8%;
  transform:translateX(-50%);
  border-color:#ff6ec7;
  color:#ffb0e0;
}
.room-grid-horizon{
  left:0; right:0;
  top:18%;
  height:28%;
  background:
    linear-gradient(180deg, transparent, rgba(255,100,180,.15)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(120,220,255,.25) 28px 30px),
    radial-gradient(ellipse at 50% 100%, #ff6ec7 0 20%, transparent 55%);
  mask-image:linear-gradient(180deg, transparent, #000 40%, #000);
  -webkit-mask-image:linear-gradient(180deg, transparent, #000 40%, #000);
}

/* ---- Rock stage ---- */
.theme-rock .room-wall{
  background:
    radial-gradient(circle at 50% 10%, rgba(255,60,60,.3), transparent 40%),
    linear-gradient(180deg, #1a0808, #120606 55%, #080404) !important;
}
.theme-rock .room-floor{
  background:
    linear-gradient(180deg, rgba(255,80,60,.15), transparent 25%),
    repeating-linear-gradient(90deg, #1a1010 0 40px, #0e0a0a 40px 80px),
    #0a0606 !important;
}
.theme-rock .room-stage-deck,
.theme-rock .room-amps,
.theme-rock .room-mic,
.theme-rock .room-speakers,
.theme-rock .room-spotlights,
.theme-rock .room-beams{ display:block; }
.theme-rock .room-spotlights i{
  background:linear-gradient(180deg, rgba(255,60,60,.4), transparent 70%) !important;
}
.theme-rock .room-beams{
  background:conic-gradient(from 210deg at 50% 5%, transparent 0 10%, rgba(255,60,60,.14) 10% 13%, transparent 13% 100%) !important;
}

/* ---- Metal stage (photo backdrop + rock-style stage props on top) ---- */
.theme-metal .room-wall{
  background:
    radial-gradient(circle at 50% 8%, rgba(255,40,40,.28), transparent 42%),
    linear-gradient(180deg, #120606, #0a0404 55%, #050202) !important;
}
.theme-metal .room-floor{
  background:
    linear-gradient(180deg, rgba(255,50,40,.12), transparent 25%),
    repeating-linear-gradient(90deg, #141010 0 40px, #0a0808 40px 80px),
    #060404 !important;
}
.theme-metal .room-stage-deck,
.theme-metal .room-amps,
.theme-metal .room-mic,
.theme-metal .room-speakers,
.theme-metal .room-spotlights,
.theme-metal .room-beams{ display:block; }
.theme-metal .room-spotlights i{
  background:linear-gradient(180deg, rgba(255,40,40,.45), transparent 70%) !important;
}
.theme-metal .room-beams{
  background:conic-gradient(from 210deg at 50% 5%, transparent 0 10%, rgba(255,40,40,.16) 10% 13%, transparent 13% 100%) !important;
}

/* Photo-first themes that lacked CSS props — lounge baseline furniture over the image */
.theme-blues .room-bar,
.theme-blues .room-stools,
.theme-blues .room-mic,
.theme-blues .room-speakers,
.theme-jazz .room-bar,
.theme-jazz .room-stools,
.theme-jazz .room-mic,
.theme-jazz .room-speakers,
.theme-soul .room-bar,
.theme-soul .room-stools,
.theme-soul .room-mic,
.theme-soul .room-spotlights,
.theme-hiphop .room-speakers,
.theme-hiphop .room-amps,
.theme-hiphop .room-spotlights,
.theme-hiphop .room-stage-deck,
.theme-reggae .room-bar,
.theme-reggae .room-palm,
.theme-reggae .room-speakers,
.theme-classical .room-mic,
.theme-classical .room-spotlights,
.theme-folk .room-bar,
.theme-folk .room-stools,
.theme-folk .room-mic,
.theme-latin .room-bar,
.theme-latin .room-disco-ball,
.theme-latin .room-speakers,
.theme-edm .room-disco-ball,
.theme-edm .room-beams,
.theme-edm .room-spotlights,
.theme-edm .room-speakers,
.theme-funk .room-bar,
.theme-funk .room-disco-ball,
.theme-funk .room-speakers,
.theme-punk .room-amps,
.theme-punk .room-mic,
.theme-punk .room-speakers,
.theme-punk .room-stage-deck,
.theme-gospel .room-mic,
.theme-gospel .room-spotlights,
.theme-doowop .room-mic,
.theme-doowop .room-jukebox,
.theme-doowop .room-spotlights,
.theme-sixties .room-mic,
.theme-sixties .room-speakers,
.theme-sixties .room-spotlights,
.theme-eighties .room-disco-ball,
.theme-eighties .room-beams,
.theme-eighties .room-speakers,
.theme-nineties .room-speakers,
.theme-nineties .room-amps,
.theme-nineties .room-stage-deck{
  display:block;
}
.room-stage-deck{
  left:18%;
  right:18%;
  bottom:14%;
  height:16%;
  border-radius:8px 8px 2px 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), transparent 40%),
    repeating-linear-gradient(90deg, #2a1818 0 16px, #1a1010 16px 32px);
  box-shadow:0 16px 28px rgba(0,0,0,.5), 0 0 40px rgba(255,60,60,.15);
  z-index:3;
  border:1px solid rgba(255,120,100,.2);
}
.room-stage-deck::before{
  content:"";
  position:absolute;
  left:8%; right:8%;
  top:-8px;
  height:8px;
  border-radius:4px;
  background:rgba(255,80,60,.35);
  box-shadow:0 0 16px rgba(255,60,60,.5);
}
.room-amps{
  left:22%;
  right:22%;
  bottom:28%;
  height:12%;
  z-index:2;
}
.room-amps i{
  position:absolute;
  bottom:0;
  width:48px;
  height:64px;
  border-radius:4px;
  background:
    radial-gradient(circle at 50% 40%, #111 0 10px, transparent 11px),
    radial-gradient(circle at 50% 70%, #111 0 8px, transparent 9px),
    linear-gradient(180deg, #2a2a2a, #0a0a0a);
  border:1px solid rgba(255,255,255,.12);
}
.room-amps i:first-child{ left:0; }
.room-amps i:last-child{ right:0; }
.room-mic{
  left:50%;
  bottom:30%;
  width:6px;
  height:70px;
  transform:translateX(-50%);
  background:linear-gradient(180deg, #888, #333);
  border-radius:3px;
  z-index:4;
}
.room-mic::before{
  content:"";
  position:absolute;
  left:50%;
  top:-14px;
  width:18px;
  height:22px;
  transform:translateX(-50%);
  border-radius:8px;
  background:linear-gradient(180deg, #bbb, #444);
  box-shadow:0 0 12px rgba(255,255,255,.25);
}
.room-mic::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-8px;
  width:28px;
  height:8px;
  transform:translateX(-50%);
  border-radius:50%;
  background:rgba(0,0,0,.5);
}

/* Room viewport theme washes */
.theme-cosmic .chat-lounge__room{ background:#10122a; }
.theme-disco .chat-lounge__room{ background:#2a0a3a; }
.theme-neon .chat-lounge__room{ background:#12001e; }
.theme-chill .chat-lounge__room{ background:#0a2030; }
.theme-country .chat-lounge__room{ background:#4a2a12; }
.theme-retro .chat-lounge__room{ background:#2a0848; }
.theme-rock .chat-lounge__room{ background:#1a0808; }

/* Motion */
@keyframes discoSpin{
  to{ transform:rotate(360deg); }
}
@keyframes discoSpark{
  0%,100%{ opacity:0; transform:scale(.4); }
  40%{ opacity:1; transform:scale(1.3); }
  70%{ opacity:.2; }
}
@keyframes beamSweep{
  to{ transform:rotate(360deg); }
}
@keyframes floorPulse{
  0%,100%{ filter:saturate(1.1) brightness(1); }
  50%{ filter:saturate(1.35) brightness(1.12); }
}
@keyframes speakerThump{
  0%,100%{ transform:scale(1); opacity:.7; }
  50%{ transform:scale(1.08); opacity:1; }
}
@keyframes neonFlicker{
  0%,19%,21%,23%,80%,100%{ opacity:1; }
  20%,22%{ opacity:.65; }
}
@keyframes spotSway{
  from{ transform:translateX(-8px) skewX(-2deg); }
  to{ transform:translateX(10px) skewX(2deg); }
}
@keyframes roomTwinkle{
  from{ opacity:.55; }
  to{ opacity:.95; }
}
@keyframes lavaBlob{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-4px); }
}
@keyframes jukeGlow{
  from{ filter:brightness(1); }
  to{ filter:brightness(1.35); }
}

@media (max-width:980px){
  .chat-lounge__shell{
    grid-template-columns:1fr;
  }
  .chat-lounge__viewport{
    height:min(48vh, 420px);
    min-height:260px;
  }
  .room-figure{ width:60px; }
  .chat-lounge__move-hint{ font-size:.65rem; bottom:6px; }
  .chat-lounge__stream.content-card{
    width:100%;
    height:auto !important;
    min-height:380px;
  }
  .chat-box--stream,
  .chat-lounge__stream .chat-box--bubbles{
    flex:1 1 auto !important;
    height:auto !important;
    min-height:260px !important;
  }
  .room-disco-ball{ width:72px; height:72px; }
  .room-bar{ width:34%; }
  .room-couch{ width:26%; }
}

@media (prefers-reduced-motion: reduce){
  .room-disco-ball i,
  .room-beams,
  .room-spotlights i,
  .theme-disco .room-floor,
  .room-neon,
  .room-speakers i::after,
  .room-stars,
  .room-lava,
  .room-jukebox::before{
    animation:none !important;
  }
}

.chat-profile-studio-link{
  display:inline-block;
  margin-top:4px;
  font-size:.78rem;
  color:#ff87d9;
  text-decoration:none;
  opacity:.9;
}
.chat-profile-studio-link:hover{ opacity:1; text-decoration:underline; }

/* ---- Sticker store (locked stickers) + presence profile links + lounge tip goal ---- */
.chat-sticker-pick{ position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1.1; }
.chat-sticker-grid{ grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); }
.chat-sticker-pick__emoji{ font-size:1.35rem; }
.chat-sticker-pick.is-locked{
  filter:grayscale(1);
  opacity:.5;
  cursor:not-allowed;
  height:auto;
  min-height:56px;
  padding:4px 2px;
}
.chat-sticker-pick.is-locked:hover{ border-color:rgba(255,255,255,.14); background:rgba(255,255,255,.04); }
.chat-sticker-pick__req{ font-size:.6rem; line-height:1.15; text-align:center; opacity:.95; margin-top:2px; }
.chat-sticker-points{ grid-column:1 / -1; font-size:.78rem; opacity:.8; margin-top:4px; }
a.chat-presence__name--link{ text-decoration:none; }
a.chat-presence__name--link:hover,
a.chat-presence__name--link:focus-visible{ text-decoration:underline; }
.chat-lounge__tip-goal{ display:block; flex:1 1 100%; max-width:340px; margin-top:6px; }
.chat-lounge__tip-goal .tip-goal{ text-align:left; font-size:.85rem; }
.chat-lounge__tip-goal .tip-goal__head{ display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.chat-lounge__tip-goal .tip-goal__label{ font-weight:700; color:#ffc2ec; }
.chat-lounge__tip-goal .tip-goal__track{ height:10px; border-radius:999px; background:rgba(255,255,255,.08); border:1px solid rgba(255,135,217,.28); overflow:hidden; }
.chat-lounge__tip-goal .tip-goal__fill{ display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#ff87d9,#7cecff); box-shadow:0 0 12px rgba(255,135,217,.4); }
.chat-lounge__tip-goal .tip-goal__pct{ margin-top:4px; font-size:.75rem; opacity:.75; }
