/* IMVU lounge — furnished 3D room, orbit camera, nameplates on heads */
.chat-lounge__stage{
  position:relative !important;
  overflow:hidden !important;
  padding:0 !important;
}
.chat-lounge__viewport{
  height:min(86vh, 880px) !important;
  min-height:540px !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene .chat-lounge__room{
  display:none !important;
  visibility:hidden !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene,
.chat-lounge__stage.has-room3d.is-room3d-scene.has-image{
  background-image:none !important;
  background-color:#08060c !important;
  border-radius:22px !important;
  box-shadow:
    0 0 0 1px rgba(255,220,160,.28),
    0 0 0 6px rgba(255,80,180,.08),
    0 0 60px rgba(120,40,180,.2),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.chat-lounge__stage.is-premium-lounge::after{
  content:none !important;
  display:none !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene::before{
  content:none !important;
  display:none !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene .room-photo-props{
  display:none !important;
}
.chat-lounge__stage.is-orbiting{
  cursor:grabbing !important;
}
.chat-lounge__stage.is-imvu-lounge{
  cursor:grab !important;
}
.room-zoom{
  position:absolute !important;
  right:14px !important;
  bottom:52px !important;
  z-index:14 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:6px !important;
  pointer-events:auto !important;
}
.room-zoom__btn{
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
  border:1px solid rgba(212,168,75,.55) !important;
  background:linear-gradient(180deg,rgba(40,20,55,.95),rgba(12,8,22,.95)) !important;
  color:#ffe7a8 !important;
  font-size:1.3rem !important;
  font-weight:700 !important;
  line-height:1 !important;
  cursor:pointer !important;
  box-shadow:0 6px 18px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.12) !important;
}
.room-zoom__btn:hover{
  border-color:#ff80d0 !important;
  color:#fff !important;
}
.room-zoom__hint{
  font-size:.58rem !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
  color:rgba(255,230,180,.7) !important;
  text-shadow:0 1px 3px rgba(0,0,0,.8) !important;
}
.room-zoom__orbit{
  font-size:.62rem !important;
  letter-spacing:.02em !important;
}
.room-zoom__orbit.is-on{
  border-color:#ff80d0 !important;
  color:#fff !important;
  box-shadow:0 0 12px rgba(255,80,200,.45) !important;
}

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

.room-avatars{
  position:absolute !important;
  inset:0 !important;
  z-index:9 !important;
  pointer-events:none !important;
}
.room-avatars-3d__canvas{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  z-index:8 !important;
  pointer-events:none !important;
  display:block !important;
  mix-blend-mode:normal;
  opacity:1;
}
.room-figure--plate-only .room-figure__body,
.room-figure--plate-only .room-figure__shadow{
  display:none !important;
}
.room-figure--plate-only{
  width:auto !important;
  filter:none !important;
  /* Head-projected: point is above skull, plate sits just over it */
  transform:translate(-50%, -110%) !important;
  transition:left .12s linear, top .12s linear !important;
}
/* Speech stack is taller — anchor closer so the bubble stays inside the stage */
.room-figure--plate-only.is-speaking{
  transform:translate(-50%, -100%) !important;
}
.chat-lounge__stage.is-premium-lounge .room-zoom__hint{
  color:rgba(255,210,160,.85) !important;
  letter-spacing:.08em !important;
}

/* —— Slim action orbs (no giant chrome box over the room) —— */
.lounge-hud{
  position:absolute !important;
  left:50% !important;
  bottom:10px !important;
  transform:translateX(-50%) !important;
  z-index:15 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:6px !important;
  width:auto !important;
  max-width:94% !important;
  pointer-events:none !important;
}
.lounge-hud__chips{
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  align-items:center !important;
  gap:5px !important;
  max-width:min(94vw, 520px) !important;
  pointer-events:none !important;
}
.lounge-hud__chips > *{ pointer-events:auto !important; }
.lounge-hud__sticker{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(255,210,140,.35) !important;
  color:#ffe9c2 !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
}
.lounge-hud__sticker[hidden]{ display:none !important; }
.lounge-hud__sticker:hover{
  border-color:rgba(255,180,120,.55) !important;
  color:#fff !important;
}
.lounge-hud__crowd{
  pointer-events:none !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(124,236,255,.32) !important;
  color:#c9f7ff !important;
  font-size:.58rem !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
}
.lounge-hud__crowd[hidden]{ display:none !important; }
.lounge-hud__crowd.is-bump{
  animation:crowdBump .75s cubic-bezier(.2,.9,.2,1) 1 !important;
  border-color:rgba(255,180,220,.55) !important;
  color:#ffe0f0 !important;
}
@keyframes crowdBump{
  0%{ transform:scale(1); }
  35%{ transform:scale(1.14); }
  100%{ transform:scale(1); }
}
.lounge-hud__mood{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(255,180,220,.35) !important;
  color:#ffd6ea !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:capitalize !important;
}
.lounge-hud__mood[hidden]{ display:none !important; }
.lounge-hud__mood[data-mood="hype"],
.lounge-hud__mood[data-mood="mosh"]{ border-color:rgba(255,160,80,.45) !important; color:#ffe0a8 !important; }
.lounge-hud__mood[data-mood="cosmic"]{ border-color:rgba(160,180,255,.45) !important; color:#c8d4ff !important; }
.lounge-hud__mood[data-mood="chill"]{ border-color:rgba(120,220,200,.4) !important; color:#c8fff0 !important; }
.lounge-hud__mood.is-flash{
  animation:moodChipFlash .85s ease-out 1 !important;
}
@keyframes moodChipFlash{
  0%{ transform:scale(1); filter:brightness(1); }
  40%{ transform:scale(1.12); filter:brightness(1.35); }
  100%{ transform:scale(1); filter:brightness(1); }
}
.chat-lounge__stage.is-mood-flash::after{
  content:"" !important;
  position:absolute !important;
  inset:0 !important;
  pointer-events:none !important;
  z-index:6 !important;
  background:radial-gradient(ellipse at 50% 40%, rgba(255,200,230,.18), transparent 62%) !important;
  animation:moodStageFlash .85s ease-out 1 !important;
}
@keyframes moodStageFlash{
  0%{ opacity:0; }
  30%{ opacity:1; }
  100%{ opacity:0; }
}
.lounge-hud__spin{
  pointer-events:auto !important;
  cursor:pointer !important;
  max-width:min(72vw, 260px) !important;
  padding:3px 10px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.68) !important;
  border:1px solid rgba(255,210,140,.4) !important;
  color:#ffe9c2 !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.lounge-hud__spin:hover{
  border-color:rgba(255,128,200,.55) !important;
  color:#fff !important;
}
.lounge-hud__pose{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(180,220,255,.35) !important;
  color:#d8ecff !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
}
.lounge-hud__pose[hidden]{ display:none !important; }
.lounge-hud__pose.is-groove{
  border-color:rgba(255,180,220,.5) !important;
  color:#ffe0f0 !important;
  animation:poseGroovePulse 1.2s ease-in-out infinite !important;
}
.lounge-hud__pose:hover{
  border-color:rgba(124,236,255,.55) !important;
  color:#fff !important;
}
.lounge-hud__cam{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(180,220,255,.32) !important;
  color:#d0e8ff !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  text-transform:capitalize !important;
}
.lounge-hud__cam:hover{
  border-color:rgba(124,236,255,.55) !important;
  color:#fff !important;
}
.lounge-hud__look{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(255,210,160,.35) !important;
  color:#ffe9c8 !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  max-width:7.5rem !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.lounge-hud__look[hidden]{ display:none !important; }
.lounge-hud__look:hover{
  border-color:rgba(255,180,120,.55) !important;
  color:#fff !important;
}
.lounge-hud__guest{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 9px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.65) !important;
  border:1px solid rgba(200,180,255,.35) !important;
  color:#e8dcff !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  max-width:7.5rem !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.lounge-hud__guest[hidden]{ display:none !important; }
.lounge-hud__guest:hover{
  border-color:rgba(200,160,255,.55) !important;
  color:#fff !important;
}
.lounge-hud__favs{
  pointer-events:auto !important;
  display:flex !important;
  flex-wrap:wrap !important;
  justify-content:center !important;
  gap:4px !important;
  max-width:min(92vw, 420px) !important;
}
.lounge-hud__favs[hidden]{ display:none !important; }
.lounge-hud__fav-chip{
  pointer-events:auto !important;
  border:1px solid rgba(255,210,122,.4) !important;
  background:rgba(12,8,20,.78) !important;
  color:#ffe7a8 !important;
  border-radius:999px !important;
  padding:2px 8px !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  cursor:pointer !important;
  max-width:7.5rem !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.lounge-hud__fav-chip:hover{
  border-color:#ff80d0 !important;
  color:#fff !important;
}
.lounge-hud__status{
  pointer-events:none !important;
  padding:3px 10px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.72) !important;
  border:1px solid rgba(255,210,140,.35) !important;
  color:#ffe9c2 !important;
  font-size:.58rem !important;
  font-weight:700 !important;
  letter-spacing:.08em !important;
  text-transform:uppercase !important;
}
.lounge-hud__status[hidden]{ display:none !important; }
.lounge-hud__thanks{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 10px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.72) !important;
  border:1px solid rgba(255,180,220,.45) !important;
  color:#ffe0f0 !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  animation:moodChipFlash .9s ease-out 1 !important;
}
.lounge-hud__thanks[hidden]{ display:none !important; }
.lounge-hud__thanks:hover{
  border-color:rgba(255,128,200,.6) !important;
  color:#fff !important;
}
.lounge-hud__whisper{
  pointer-events:auto !important;
  cursor:pointer !important;
  padding:3px 10px !important;
  border-radius:999px !important;
  background:rgba(8,6,14,.72) !important;
  border:1px solid rgba(160,180,255,.45) !important;
  color:#d8e4ff !important;
  font-size:.55rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
}
.lounge-hud__whisper[hidden]{ display:none !important; }
.lounge-hud__whisper:hover{
  border-color:rgba(124,236,255,.55) !important;
  color:#fff !important;
}
.lounge-actions{
  position:relative !important;
  display:flex !important;
  flex-wrap:nowrap !important;
  justify-content:center !important;
  align-items:flex-end !important;
  gap:7px !important;
  padding:6px 8px !important;
  border-radius:16px !important;
  background:rgba(10,8,18,.55) !important;
  border:1px solid rgba(255,210,140,.28) !important;
  backdrop-filter:blur(6px) !important;
  pointer-events:auto !important;
}
.lounge-actions__btn{
  appearance:none !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:2px !important;
  border:0 !important;
  background:transparent !important;
  color:#ffe7b0 !important;
  font-size:.52rem !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  padding:0 !important;
  cursor:pointer !important;
  transition:transform .12s ease !important;
}
.lounge-actions__orb{
  display:grid !important;
  place-items:center !important;
  width:42px !important;
  height:42px !important;
  border-radius:50% !important;
  font-size:1.15rem !important;
  line-height:1 !important;
  background:linear-gradient(160deg, rgba(70,30,90,.95), rgba(12,8,20,.96)) !important;
  border:1px solid rgba(255,210,140,.55) !important;
  box-shadow:0 4px 12px rgba(0,0,0,.4) !important;
}
.lounge-actions__lbl{
  color:rgba(255,233,194,.85) !important;
  text-shadow:0 1px 2px rgba(0,0,0,.8) !important;
}
.lounge-actions__btn:hover{ transform:translateY(-2px) !important; }
.lounge-actions__btn--hero .lounge-actions__orb{
  width:48px !important;
  height:48px !important;
  border-color:rgba(124,236,255,.65) !important;
}
.lounge-actions__btn[aria-expanded="true"] .lounge-actions__orb,
.lounge-actions__btn.is-active .lounge-actions__orb{
  border-color:#7cecff !important;
  box-shadow:0 0 14px rgba(124,236,255,.4) !important;
}
.lounge-dance-menu{
  position:absolute !important;
  left:50% !important;
  bottom:calc(100% + 8px) !important;
  transform:translateX(-50%) !important;
  z-index:16 !important;
  display:grid !important;
  grid-template-columns:repeat(3, minmax(70px, 1fr)) !important;
  gap:5px !important;
  padding:8px !important;
  border-radius:12px !important;
  background:rgba(12,8,20,.94) !important;
  border:1px solid rgba(124,236,255,.4) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.5) !important;
  pointer-events:auto !important;
}
.lounge-dance-menu[hidden]{ display:none !important; }
.lounge-dance-menu button{
  appearance:none !important;
  border:1px solid rgba(255,210,140,.3) !important;
  background:rgba(255,255,255,.04) !important;
  color:#ffe9c2 !important;
  font-size:.62rem !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  padding:7px 5px !important;
  border-radius:8px !important;
  cursor:pointer !important;
}
.lounge-dance-menu button:hover{
  border-color:#7cecff !important;
  color:#fff !important;
}
.lounge-seat-tip{
  position:absolute !important;
  z-index:16 !important;
  padding:5px 9px !important;
  border-radius:8px !important;
  background:rgba(16,10,24,.92) !important;
  border:1px solid rgba(255,140,210,.6) !important;
  color:#ffe9c2 !important;
  font-size:.68rem !important;
  font-weight:700 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  pointer-events:none !important;
  white-space:nowrap !important;
}
.lounge-seat-tip[hidden]{ display:none !important; }
.room-zoom{ bottom:78px !important; }
.chat-lounge__viewport{
  height:min(88vh, 900px) !important;
  min-height:560px !important;
}
@media (max-width:720px){
  .lounge-actions{
    flex-wrap:wrap !important;
    max-width:96vw !important;
    gap:5px !important;
  }
  .lounge-actions__orb{ width:36px !important; height:36px !important; font-size:.95rem !important; }
  .lounge-actions__btn--hero .lounge-actions__orb{ width:42px !important; height:42px !important; }
  .lounge-actions__lbl{ font-size:.48rem !important; }
  .lounge-dance-menu{ grid-template-columns:repeat(2, minmax(64px, 1fr)) !important; }
  .room-zoom{ bottom:96px !important; }
  .lounge-hud__favs{ max-width:94vw !important; }
}
/* Full-body photoreal sprites (same PNGs as the look picker) */
.room-figure{
  position:absolute !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  width:118px !important;
  transform:translate(-50%, -100%) scale(var(--room-scale, 1));
  transform-origin:50% 100% !important;
  pointer-events:none !important;
  transition:left .4s ease, top .4s ease;
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.35))
    drop-shadow(0 12px 16px rgba(0,0,0,.55));
  --move-delay: 0s;
}
.room-figure--sprite .room-figure__body{
  width:112px;
  height:188px;
}
.room-figure__sprite{
  position:relative;
  width:100%;
  height:100%;
  transform-origin:50% 100%;
  will-change:transform;
}
.room-figure__sprite img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center bottom;
  display:block;
  /* Knock out the solid black studio backdrop */
  mix-blend-mode:lighten;
  pointer-events:none;
  user-select:none;
}
.room-figure.is-self{
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.65))
    drop-shadow(0 0 12px rgba(124,236,255,.5))
    drop-shadow(0 14px 18px rgba(0,0,0,.55));
}

.room-figure__plate{
  order:1;
  max-width:160px;
  margin:0 0 2px;
  padding:5px 12px 5px 10px;
  border-radius:999px;
  font-size:.7rem;
  font-weight:750;
  letter-spacing:.01em;
  line-height:1.2;
  color:#fff6e8 !important;
  background:linear-gradient(135deg,rgba(28,16,40,.72),rgba(8,6,18,.82));
  border:1px solid rgba(255,210,150,.4);
  backdrop-filter:blur(10px) saturate(1.2);
  -webkit-backdrop-filter:blur(10px) saturate(1.2);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  box-shadow:
    0 0 0 1px rgba(255,90,180,.12),
    0 10px 24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.14);
  text-shadow:0 1px 3px rgba(0,0,0,.75);
  pointer-events:auto !important;
  cursor:pointer !important;
}
.room-figure__reacts{
  order:2;
  display:flex !important;
  flex-wrap:wrap !important;
  gap:3px !important;
  justify-content:center !important;
  max-width:168px !important;
  margin-top:2px !important;
  opacity:0 !important;
  transform:translateY(4px) !important;
  pointer-events:none !important;
  transition:opacity .18s ease, transform .18s ease !important;
}
.room-figure:hover .room-figure__reacts,
.room-figure:focus-within .room-figure__reacts{
  opacity:1 !important;
  transform:translateY(0) !important;
  pointer-events:auto !important;
}
.room-figure__react{
  width:26px !important;
  height:26px !important;
  padding:0 !important;
  border-radius:999px !important;
  border:1px solid rgba(255,210,150,.35) !important;
  background:rgba(10,8,20,.88) !important;
  font-size:.78rem !important;
  line-height:1 !important;
  cursor:pointer !important;
  pointer-events:auto !important;
  box-shadow:0 6px 14px rgba(0,0,0,.4) !important;
}
.room-figure__react:hover{
  transform:scale(1.12) !important;
  border-color:rgba(255,210,150,.7) !important;
  background:rgba(40,28,20,.95) !important;
}
.room-figure__fav{
  display:inline-block !important;
  margin-right:4px !important;
  color:#ffd27a !important;
  text-shadow:0 0 8px rgba(255,200,100,.55) !important;
  font-size:.72rem !important;
  vertical-align:middle !important;
}
.room-figure__pose{
  display:inline-block !important;
  margin-right:3px !important;
  font-size:.68rem !important;
  vertical-align:middle !important;
  opacity:.95 !important;
}
.room-figure__pose.is-groove{
  animation:poseGroovePulse 1.15s ease-in-out infinite !important;
  filter:drop-shadow(0 0 4px rgba(255,180,220,.45)) !important;
}
@keyframes poseGroovePulse{
  0%,100%{ transform:scale(1); opacity:.9; }
  50%{ transform:scale(1.18); opacity:1; }
}
.room-figure__sticker{
  display:inline-block !important;
  margin-right:3px !important;
  font-size:.78rem !important;
  vertical-align:middle !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55)) !important;
}
.room-figure__look{
  display:inline-block !important;
  margin-left:5px !important;
  padding:0 5px !important;
  border-radius:999px !important;
  font-size:.52rem !important;
  font-weight:700 !important;
  letter-spacing:.03em !important;
  text-transform:uppercase !important;
  color:rgba(255,255,255,.78) !important;
  background:rgba(0,0,0,.35) !important;
  vertical-align:middle !important;
  max-width:4.8rem !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.room-figure__afk{
  display:inline-block !important;
  margin-right:3px !important;
  font-size:.7rem !important;
  vertical-align:middle !important;
}
.room-figure.is-whisper-target .room-figure__plate{
  box-shadow:
    0 0 0 1px rgba(160,180,255,.45),
    0 0 16px rgba(120,160,255,.28),
    0 10px 24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.room-figure.is-afk .room-figure__plate{
  opacity:.78 !important;
  filter:saturate(.7) !important;
}
.chat-lounge__stage[data-mood="hype"] .lounge-hud__status,
.chat-lounge__stage[data-mood="mosh"] .lounge-hud__status{
  color:#ffe0a8 !important;
}
.chat-lounge__stage[data-mood="romance"] .lounge-hud__status{
  color:#ffc2d8 !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene[data-mood="hype"]{
  box-shadow:
    0 0 0 1px rgba(255,200,120,.4),
    0 0 0 6px rgba(255,120,40,.12),
    0 0 70px rgba(255,90,40,.22),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene[data-mood="mosh"]{
  box-shadow:
    0 0 0 1px rgba(255,80,120,.45),
    0 0 0 6px rgba(255,40,80,.14),
    0 0 80px rgba(220,20,80,.28),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene[data-mood="romance"]{
  box-shadow:
    0 0 0 1px rgba(255,160,200,.42),
    0 0 0 6px rgba(255,80,160,.12),
    0 0 70px rgba(255,60,140,.24),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene[data-mood="cosmic"]{
  box-shadow:
    0 0 0 1px rgba(160,180,255,.4),
    0 0 0 6px rgba(80,100,255,.12),
    0 0 70px rgba(100,80,255,.26),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.chat-lounge__stage.has-room3d.is-room3d-scene[data-mood="chill"]{
  box-shadow:
    0 0 0 1px rgba(120,220,200,.32),
    0 0 0 6px rgba(40,180,160,.08),
    0 0 60px rgba(40,160,140,.16),
    inset 0 0 80px rgba(0,0,0,.35),
    0 28px 70px rgba(0,0,0,.65) !important;
}
.room-figure.is-mentioned .room-figure__plate{
  border-color:rgba(124,236,255,.85) !important;
  box-shadow:0 0 0 2px rgba(124,236,255,.35), 0 10px 24px rgba(0,0,0,.45) !important;
}
.chat-mention{
  display:inline !important;
  margin:0 !important;
  padding:0 2px !important;
  border:0 !important;
  border-radius:4px !important;
  background:rgba(124,236,255,.16) !important;
  color:#9becff !important;
  font:inherit !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
.chat-mention:hover{ background:rgba(124,236,255,.28) !important; }
.chat-presence__row{
  position:relative;
}
.chat-presence__go{
  margin-left:auto !important;
  width:28px !important;
  height:28px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  border-radius:8px !important;
  background:rgba(255,255,255,.05) !important;
  color:#f0eaff !important;
  cursor:pointer !important;
  font-size:.95rem !important;
  line-height:1 !important;
  flex:0 0 auto !important;
}
.chat-presence__go:hover{
  background:rgba(255,180,120,.18) !important;
  border-color:rgba(255,210,150,.45) !important;
}
.chat-presence-filter{
  margin-left:auto !important;
  margin-right:6px !important;
  border:1px solid rgba(255,255,255,.14) !important;
  background:rgba(255,255,255,.05) !important;
  color:rgba(255,230,190,.85) !important;
  border-radius:999px !important;
  padding:4px 10px !important;
  font-size:.72rem !important;
  font-weight:700 !important;
  cursor:pointer !important;
}
.chat-presence-filter.is-on{
  border-color:rgba(255,210,120,.65) !important;
  background:rgba(60,40,16,.55) !important;
  color:#ffe7c2 !important;
}
.room-figure__badges{
  display:inline-flex !important;
  gap:2px !important;
  margin-left:5px !important;
  vertical-align:middle !important;
}
.room-figure__badge{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:16px !important;
  height:16px !important;
  font-size:.68rem !important;
  line-height:1 !important;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.55)) !important;
}
.room-figure.is-fav .room-figure__plate{
  border-color:rgba(255,210,120,.72) !important;
  box-shadow:
    0 0 0 1px rgba(255,200,100,.22),
    0 10px 24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.chat-presence__pose{
  display:inline-block !important;
  margin-right:4px !important;
  font-size:.72rem !important;
  vertical-align:middle !important;
  opacity:.9 !important;
}
.chat-presence__pose.is-groove{
  filter:drop-shadow(0 0 3px rgba(255,180,220,.4)) !important;
}
.chat-presence__row.is-muted{
  opacity:.55 !important;
  filter:grayscale(.35) !important;
}
.chat-presence__row.is-muted .chat-presence__name{
  text-decoration:line-through !important;
}
.chat-presence__row.is-fav .chat-presence__name{
  font-weight:750 !important;
}
.chat-presence__row.is-self{
  outline:1px solid rgba(124,236,255,.28) !important;
  outline-offset:-1px !important;
  background:rgba(124,236,255,.06) !important;
}
.lounge-guest-menu{
  position:absolute !important;
  z-index:28 !important;
  min-width:156px !important;
  max-width:200px !important;
  max-height:min(62vh, 380px) !important;
  overflow-y:auto !important;
  overscroll-behavior:contain !important;
  padding:6px !important;
  border-radius:14px !important;
  background:rgba(10,8,20,.92) !important;
  border:1px solid rgba(255,210,150,.35) !important;
  box-shadow:0 12px 28px rgba(0,0,0,.5) !important;
  backdrop-filter:blur(10px) !important;
  display:flex !important;
  flex-direction:column !important;
  gap:4px !important;
  pointer-events:auto !important;
}
.lounge-guest-menu[hidden]{ display:none !important; }
.lounge-guest-menu__who{
  padding:4px 8px 6px !important;
  font-size:.68rem !important;
  font-weight:700 !important;
  color:rgba(255,230,190,.9) !important;
  border-bottom:1px solid rgba(255,255,255,.08) !important;
  margin-bottom:2px !important;
  max-width:180px !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.lounge-guest-menu__look{
  display:block !important;
  margin-top:2px !important;
  font-size:.55rem !important;
  font-weight:650 !important;
  letter-spacing:.04em !important;
  text-transform:uppercase !important;
  color:rgba(200,220,255,.7) !important;
}
.lounge-guest-menu__sep{
  height:1px !important;
  margin:4px 6px !important;
  background:rgba(255,255,255,.1) !important;
  border:0 !important;
  pointer-events:none !important;
}
.lounge-guest-menu button{
  border:0 !important;
  background:rgba(255,255,255,.04) !important;
  color:#f7f0ff !important;
  text-align:left !important;
  padding:7px 10px !important;
  border-radius:10px !important;
  font-size:.78rem !important;
  font-weight:650 !important;
  cursor:pointer !important;
}
.lounge-guest-menu button:hover{
  background:rgba(255,180,120,.18) !important;
  color:#ffe7c2 !important;
}
.lounge-gift-grid{
  display:grid !important;
  grid-template-columns:repeat(4, 1fr) !important;
  gap:4px !important;
  padding:2px 0 4px !important;
}
.lounge-gift-pick{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  gap:2px !important;
  padding:6px 4px !important;
  border:0 !important;
  border-radius:10px !important;
  background:rgba(255,255,255,.05) !important;
  color:#f7f0ff !important;
  cursor:pointer !important;
  min-width:0 !important;
}
.lounge-gift-pick.is-last{
  border:1px solid rgba(255,210,140,.55) !important;
  background:rgba(255,210,140,.12) !important;
  box-shadow:0 0 0 1px rgba(255,180,120,.2) !important;
}
.lounge-gift-pick span{ font-size:1.15rem !important; line-height:1 !important; }
.lounge-gift-pick em{
  font-style:normal !important;
  font-size:.58rem !important;
  font-weight:650 !important;
  opacity:.85 !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}
.lounge-gift-pick:hover{
  background:rgba(255,180,120,.2) !important;
  color:#ffe7c2 !important;
}
.lounge-gift-float{
  position:absolute !important;
  left:50% !important;
  top:0 !important;
  transform:translate(-50%, 8px) scale(.7) !important;
  font-size:1.55rem !important;
  line-height:1 !important;
  opacity:0 !important;
  pointer-events:none !important;
  z-index:5 !important;
  filter:drop-shadow(0 6px 10px rgba(0,0,0,.45)) !important;
  transition:transform .45s cubic-bezier(.2,.9,.2,1), opacity .35s ease !important;
}
.lounge-gift-float.is-on{
  opacity:1 !important;
  transform:translate(-50%, -42px) scale(1.15) !important;
}
.room-figure__role{
  display:inline-block;
  margin-left:4px;
  padding:0 5px;
  border-radius:999px;
  font-size:.55rem;
  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);
}
.room-figure.is-staff .room-figure__plate{
  box-shadow:0 0 0 1px rgba(255,210,122,.55), 0 0 14px rgba(255,135,217,.35) !important;
}
.room-figure.is-staff .room-figure__role{
  box-shadow:0 0 8px rgba(255,210,122,.55);
}
.room-figure.is-fav .room-figure__plate{
  box-shadow:0 0 0 1px rgba(255,214,102,.4) !important;
}

.room-figure__body{
  order:2;
  position:relative;
  width:108px;
  height:180px;
  display:flex;
  align-items:flex-end;
  justify-content:center;
}
.room-figure__rig{
  position:relative;
  width:100%;
  height:100%;
}

.room-figure__part{
  position:absolute;
  inset:0;
  display:block;
  pointer-events:none;
  will-change:transform;
  background-image:var(--figure-sprite);
  background-repeat:no-repeat;
  background-position:center bottom;
  background-size:contain;
}

/*
  Wide torso CORE owns the outfit/chest (never punched out).
  Arms are outer strips only. Legs step. Head nods.
*/
.room-figure__leg--l{
  z-index:2;
  clip-path:polygon(0% 58%, 49% 58%, 49% 100%, 0% 100%);
  transform-origin:28% 58%;
}
.room-figure__leg--r{
  z-index:2;
  clip-path:polygon(51% 58%, 100% 58%, 100% 100%, 51% 100%);
  transform-origin:72% 58%;
}
.room-figure__torso{
  z-index:3;
  /* wide center — jacket/dress always visible; arms sit on top at edges */
  clip-path:polygon(18% 20%, 82% 20%, 82% 60%, 18% 60%);
  transform-origin:50% 48%;
}
.room-figure__arm--l{
  z-index:4;
  clip-path:polygon(0% 20%, 22% 20%, 22% 62%, 0% 62%);
  transform-origin:20% 26%;
}
.room-figure__arm--r{
  z-index:4;
  clip-path:polygon(78% 20%, 100% 20%, 100% 62%, 78% 62%);
  transform-origin:80% 26%;
}
.room-figure__head{
  z-index:5;
  clip-path:polygon(22% 0%, 78% 0%, 78% 22%, 22% 22%);
  transform-origin:50% 16%;
}

/* ---- Whole-sprite dance (no limb clip-path spiders) ---- */
@keyframes spriteIdle{
  0%,100%{ transform:translateY(0) rotate(0deg); }
  50%{ transform:translateY(-3px) rotate(0.6deg); }
}
@keyframes spriteVibe{
  0%,100%{ transform:translateY(0) rotate(-2deg) scale(1); }
  25%{ transform:translateY(-7px) rotate(2deg) scale(1.02); }
  50%{ transform:translateY(-2px) rotate(-1.5deg) scale(1); }
  75%{ transform:translateY(-8px) rotate(2.2deg) scale(1.02); }
}
@keyframes spriteHouse{
  0%,100%{ transform:translateY(0) scaleY(1); }
  50%{ transform:translateY(-10px) scaleY(1.04); }
}
@keyframes spriteHiphop{
  0%,100%{ transform:translateY(0) rotate(-3deg); }
  40%{ transform:translateY(-11px) rotate(3deg) scale(1.03); }
  55%{ transform:translateY(-2px) rotate(-1deg); }
}
@keyframes spriteSalsa{
  0%,100%{ transform:translateY(0) translateX(0) rotate(-2deg); }
  25%{ transform:translateY(-5px) translateX(4px) rotate(2deg); }
  75%{ transform:translateY(-5px) translateX(-4px) rotate(-2deg); }
}
@keyframes spriteFree{
  0%,100%{ transform:translateY(0) rotate(-2deg) scale(1); }
  33%{ transform:translateY(-9px) rotate(3deg) scale(1.03); }
  66%{ transform:translateY(-4px) rotate(-3deg) scale(1.01); }
}
@keyframes spriteCheer{
  0%,100%{ transform:translateY(0) scale(1); }
  50%{ transform:translateY(-14px) scale(1.06); }
}

.room-figure--idle .room-figure__sprite{ animation:spriteIdle 2.8s ease-in-out var(--move-delay) infinite; }
.room-figure--vibe .room-figure__sprite{ animation:spriteVibe 1.15s ease-in-out var(--move-delay) infinite; }
.room-figure--house .room-figure__sprite{ animation:spriteHouse .85s ease-in-out var(--move-delay) infinite; }
.room-figure--hiphop .room-figure__sprite{ animation:spriteHiphop .7s cubic-bezier(.2,.85,.2,1) var(--move-delay) infinite; }
.room-figure--salsa .room-figure__sprite{ animation:spriteSalsa 1.05s ease-in-out var(--move-delay) infinite; }
.room-figure--freestyle .room-figure__sprite{ animation:spriteFree .9s ease-in-out var(--move-delay) infinite; }
.room-figure.is-cheering .room-figure__sprite{ animation:spriteCheer .5s ease-in-out infinite !important; }
.room-figure.is-dancing .room-figure__sprite{ animation:spriteVibe .55s ease-in-out infinite !important; }

.room-figure .room-figure__shadow{
  animation:roomShadowPulse 1.1s ease-in-out var(--move-delay) infinite;
}

/* Legs — step / stomp (no inward cross) */
@keyframes legStepL{
  0%,100%{ transform:translateY(0); }
  50%{ transform:translateY(-5px); }
}
@keyframes legStepR{
  0%,100%{ transform:translateY(-5px); }
  50%{ transform:translateY(0); }
}
@keyframes legStompL{
  0%,100%{ transform:translateY(0) rotate(-1deg); }
  35%{ transform:translateY(-6px) rotate(-2deg); }
  55%{ transform:translateY(0) rotate(0); }
}
@keyframes legStompR{
  0%,100%{ transform:translateY(-6px) rotate(2deg); }
  35%{ transform:translateY(0) rotate(0); }
  55%{ transform:translateY(-3px) rotate(1deg); }
}
@keyframes legSalsaL{
  0%,100%{ transform:translate(0,0); }
  50%{ transform:translate(-2px,-4px); }
}
@keyframes legSalsaR{
  0%,100%{ transform:translate(0,-4px); }
  50%{ transform:translate(2px,0); }
}
@keyframes legJump{
  0%,100%{ transform:translateY(0); }
  40%{ transform:translateY(-9px); }
}

/* Torso — small weight shifts only (not whole-doll thrash) */
@keyframes torsoBreathe{
  0%,100%{ transform:translateY(0) scaleY(1); }
  50%{ transform:translateY(-1px) scaleY(1.012); }
}
@keyframes torsoSway{
  0%,100%{ transform:translateY(0) rotate(-1.5deg); }
  50%{ transform:translateY(-2px) rotate(1.5deg); }
}
@keyframes torsoBounce{
  0%,100%{ transform:translateY(0); }
  40%{ transform:translateY(-3px); }
}
@keyframes torsoPop{
  0%,100%{ transform:translateY(0) rotate(0); }
  30%{ transform:translateY(-2px) rotate(-2deg); }
  60%{ transform:translateY(0) rotate(2deg); }
}
@keyframes torsoSalsa{
  0%,100%{ transform:translateX(-2px) rotate(-2deg); }
  50%{ transform:translateX(2px) rotate(2deg); }
}
@keyframes torsoJump{
  0%,100%{ transform:translateY(0); }
  40%{ transform:translateY(-8px); }
}

/* Arms — real swings / pumps */
@keyframes armIdleL{
  0%,100%{ transform:rotate(2deg); }
  50%{ transform:rotate(-3deg); }
}
@keyframes armIdleR{
  0%,100%{ transform:rotate(-2deg); }
  50%{ transform:rotate(3deg); }
}
@keyframes armSwingL{
  0%,100%{ transform:rotate(8deg); }
  50%{ transform:rotate(-14deg); }
}
@keyframes armSwingR{
  0%,100%{ transform:rotate(-8deg); }
  50%{ transform:rotate(14deg); }
}
@keyframes armPumpL{
  0%,100%{ transform:rotate(4deg) translateY(0); }
  50%{ transform:rotate(-18deg) translateY(-3px); }
}
@keyframes armPumpR{
  0%,100%{ transform:rotate(-4deg) translateY(0); }
  50%{ transform:rotate(18deg) translateY(-3px); }
}
@keyframes armCrossL{
  0%,100%{ transform:rotate(6deg); }
  40%{ transform:rotate(-22deg); }
  70%{ transform:rotate(10deg); }
}
@keyframes armCrossR{
  0%,100%{ transform:rotate(-6deg); }
  40%{ transform:rotate(22deg); }
  70%{ transform:rotate(-10deg); }
}
@keyframes armSalsaL{
  0%,100%{ transform:rotate(12deg) translateY(0); }
  50%{ transform:rotate(-8deg) translateY(-2px); }
}
@keyframes armSalsaR{
  0%,100%{ transform:rotate(-12deg) translateY(0); }
  50%{ transform:rotate(8deg) translateY(-2px); }
}
@keyframes armCheerL{
  0%,100%{ transform:rotate(-28deg); }
  50%{ transform:rotate(-48deg); }
}
@keyframes armCheerR{
  0%,100%{ transform:rotate(28deg); }
  50%{ transform:rotate(48deg); }
}

@keyframes headNod{
  0%,100%{ transform:rotate(-2deg) translateY(0); }
  50%{ transform:rotate(2deg) translateY(1px); }
}
@keyframes headTick{
  0%,100%{ transform:rotate(0); }
  35%{ transform:rotate(-5deg); }
  70%{ transform:rotate(4deg); }
}
@keyframes roomShadowPulse{
  0%,100%{ transform:scaleX(1); opacity:.9; }
  50%{ transform:scaleX(.82); opacity:.6; }
}

.room-figure__emoji{
  position:absolute;
  left:4px;
  bottom:8px;
  width:22px;
  height:22px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.85rem;
  line-height:1;
  background:rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.25);
  box-shadow:0 2px 6px rgba(0,0,0,.4);
}
.room-figure__sticker{
  position:absolute;
  right:2px;
  top:8px;
  font-size:1rem;
  line-height:1;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,.45));
}
.room-figure__shadow{
  order:3;
  width:56px;
  height:14px;
  margin-top:-4px;
  border-radius:50%;
  background:radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%);
  transform-origin:50% 50%;
}
.room-figure__speech{
  order:0;
  position:relative;
  max-width:168px;
  margin:0 0 8px;
  padding:7px 11px 8px;
  border-radius:14px;
  font-size:.74rem;
  font-weight:600;
  line-height:1.3;
  color:#f4f7ff;
  background:rgba(10,12,26,.94);
  border:1px solid rgba(255,230,180,.28);
  box-shadow:
    0 0 0 1px rgba(0,0,0,.35),
    0 8px 18px rgba(0,0,0,.4);
  opacity:0;
  transform:translateY(6px) scale(.96);
  transition:opacity .22s ease, transform .22s ease;
  pointer-events:none;
  text-align:center;
  word-break:break-word;
}
/* Tail pointing at the head / nameplate */
.room-figure__speech::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-6px;
  width:10px;
  height:10px;
  margin-left:-5px;
  background:rgba(10,12,26,.94);
  border-right:1px solid rgba(255,230,180,.28);
  border-bottom:1px solid rgba(255,230,180,.28);
  transform:rotate(45deg);
}
.room-figure__speech.is-on{
  opacity:1;
  transform:translateY(0) scale(1);
  animation:rgfxSpeechPop .28s cubic-bezier(.2,.9,.2,1);
}
@keyframes rgfxSpeechPop{
  from{ opacity:0; transform:translateY(8px) scale(.86); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .room-figure__speech.is-on{ animation:none !important; }
  .lounge-gift-float{ transition:none !important; }
  .room-figure.is-poke .room-figure__plate{ animation:none !important; }
  .room-figure.is-join .room-figure__plate{ animation:none !important; }
  .room-figure__pose.is-groove{ animation:none !important; }
  .lounge-hud__crowd.is-bump{ animation:none !important; }
  .lounge-hud__mood.is-flash{ animation:none !important; }
  .lounge-hud__pose.is-groove{ animation:none !important; }
  .chat-lounge__stage.is-mood-flash::after{ animation:none !important; opacity:0 !important; }
}
.room-figure__speech[hidden]{ display:none !important; }
.room-figure.is-speaking{
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.45))
    drop-shadow(0 0 10px rgba(255,210,140,.35))
    drop-shadow(0 12px 16px rgba(0,0,0,.55));
}
.room-figure.is-self.is-speaking{
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,.7))
    drop-shadow(0 0 12px rgba(124,236,255,.55))
    drop-shadow(0 14px 18px rgba(0,0,0,.55));
}
.room-figure.room-figure--house .room-figure__plate,
.room-figure.room-figure--hiphop .room-figure__plate,
.room-figure.room-figure--salsa .room-figure__plate,
.room-figure.room-figure--freestyle .room-figure__plate,
.room-figure.room-figure--samba .room-figure__plate,
.room-figure.room-figure--robot .room-figure__plate,
.room-figure.room-figure--macarena .room-figure__plate,
.room-figure.room-figure--belly .room-figure__plate,
.room-figure.room-figure--vibe .room-figure__plate{
  box-shadow:
    0 0 0 1px rgba(255,160,210,.28),
    0 0 14px rgba(255,120,200,.18),
    0 10px 24px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.14) !important;
}
.room-figure.is-pulse .room-figure__plate{
  animation:plateTalkPulse .9s ease-out 1 !important;
}
@keyframes plateTalkPulse{
  0%{
    transform:scale(1);
    box-shadow:
      0 0 0 0 rgba(255,210,140,.55),
      0 10px 24px rgba(0,0,0,.45),
      inset 0 1px 0 rgba(255,255,255,.14);
  }
  40%{
    transform:scale(1.08);
    box-shadow:
      0 0 0 8px rgba(255,210,140,.0),
      0 12px 28px rgba(0,0,0,.5),
      inset 0 1px 0 rgba(255,255,255,.18);
  }
  100%{
    transform:scale(1);
    box-shadow:
      0 0 0 1px rgba(255,90,180,.12),
      0 10px 24px rgba(0,0,0,.45),
      inset 0 1px 0 rgba(255,255,255,.14);
  }
}
.room-figure.is-self.is-pulse .room-figure__plate{
  animation-name:plateTalkPulseSelf !important;
}
.room-figure.is-join .room-figure__plate{
  animation:plateJoinIn .7s cubic-bezier(.2,.9,.2,1) 1 !important;
}
@keyframes plateJoinIn{
  0%{ opacity:0; transform:translateY(10px) scale(.88); }
  60%{ opacity:1; transform:translateY(-2px) scale(1.04); }
  100%{ opacity:1; transform:translateY(0) scale(1); }
}
.room-figure.is-poke .room-figure__plate{
  animation:platePokeNudge .55s cubic-bezier(.2,.9,.25,1) 1 !important;
}
@keyframes platePokeNudge{
  0%{ transform:translateX(0) scale(1); }
  25%{ transform:translateX(6px) scale(1.06); }
  50%{ transform:translateX(-4px) scale(1.04); }
  75%{ transform:translateX(3px) scale(1.02); }
  100%{ transform:translateX(0) scale(1); }
}
@keyframes plateTalkPulseSelf{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(124,236,255,.5), 0 10px 24px rgba(0,0,0,.45);
  }
  40%{
    transform:scale(1.08);
    box-shadow:0 0 0 8px rgba(124,236,255,0), 0 12px 28px rgba(0,0,0,.5);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 1px rgba(124,236,255,.25), 0 10px 24px rgba(0,0,0,.45);
  }
}

.chat-avatar-panel__hint{
  margin:0 0 10px !important;
  font-size:.78rem !important;
  line-height:1.35 !important;
  color:rgba(230,220,255,.72) !important;
}
.chat-theme-grid{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:6px !important;
  margin:0 0 12px !important;
  max-height:140px !important;
  overflow:auto !important;
}
.chat-theme-pick{
  border:1px solid rgba(255,255,255,.16) !important;
  background:rgba(12,14,28,.88) !important;
  color:#f0eaff !important;
  border-radius:999px !important;
  padding:5px 10px !important;
  font-size:.72rem !important;
  font-weight:600 !important;
  cursor:pointer !important;
  line-height:1.2 !important;
}
.chat-theme-pick.is-active{
  border-color:rgba(255,210,140,.65) !important;
  background:rgba(60,40,20,.55) !important;
  color:#ffe9c2 !important;
}
.chat-body-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  max-height:320px;
  overflow:auto;
  padding:2px;
}
.chat-body-pick{
  position:relative;
  overflow:hidden;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(ellipse at 50% 80%, rgba(60,70,110,.55), transparent 60%),
    linear-gradient(165deg, rgba(18,20,36,.98), rgba(6,8,16,.98));
  aspect-ratio:3/4;
  cursor:pointer;
  padding:0;
}
.chat-body-pick img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center 62%;
  display:block;
  background:transparent;
  opacity:.35;
  transition:opacity .25s ease;
}
.chat-body-pick img.is-ready{ opacity:1; }
.chat-body-pick.is-loading::after{
  content:'' !important;
  position:absolute !important;
  inset:18% 22% 28% !important;
  border-radius:12px !important;
  background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 65%) !important;
  background-size:200% 100% !important;
  animation:bodyThumbShimmer 1.1s linear infinite !important;
  pointer-events:none !important;
}
@keyframes bodyThumbShimmer{
  0%{ background-position:120% 0; }
  100%{ background-position:-40% 0; }
}
.chat-body-pick__label{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:5px 6px;
  font-size:.62rem;
  font-weight:800;
  letter-spacing:.03em;
  text-align:center;
  color:#f4f7ff;
  background:linear-gradient(180deg, transparent, rgba(4,6,14,.88));
  pointer-events:none;
}
.chat-body-pick.is-active,
.chat-dance-btn.is-active{
  border-color:rgba(124,236,255,.7);
  box-shadow:0 0 0 1px rgba(124,236,255,.35), 0 0 16px rgba(124,236,255,.2);
}

@media (max-width:980px){
  .chat-lounge__viewport{
    height:min(50vh, 440px) !important;
    min-height:280px !important;
  }
  .room-figure{ width:90px !important; }
  .room-figure__body{ width:82px; height:140px; }
  .chat-body-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); max-height:240px; }
}

@media (prefers-reduced-motion: reduce){
  .room-figure__sprite,
  .room-figure__shadow{
    animation:none !important;
  }
}
