/* Phase 36: transparent social-style action rail and non-overlapping gifts. */
.ldroom-actions {
  width: 44px;
  gap: 9px;
}

.ldroom-action-btn {
  grid-template-areas:
    "icon"
    "label"
    "count";
  grid-template-rows: auto auto auto;
  width: 44px;
  min-height: 58px;
  gap: 0;
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .95);
}

.ldroom-action-btn .ico {
  grid-area: icon;
  font-size: 27px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .72));
}

.ldroom-action-btn > span:not(.ico) {
  grid-area: label;
  font-size: 11px;
  line-height: 1.15;
}

.ldroom-action-btn b {
  position: static;
  grid-area: count;
  display: block;
  min-width: 0;
  width: auto;
  height: auto;
  max-width: 44px;
  padding: 1px 0 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ldroom-action-btn.replay-locked {
  border: 0;
  opacity: .82;
}

.ldroom-pop {
  right: 50px;
}

.ldroom-gift-overlay {
  position: relative;
  z-index: 2;
  left: auto;
  bottom: auto;
  width: max-content;
  min-width: 0;
  max-width: min(520px, 100%);
  height: 0;
  min-height: 0;
  margin: 0 auto;
  padding: 0 12px;
  overflow: hidden;
  transform: translateY(6px);
  border: 0;
  border-radius: 15px;
  background: rgba(24, 15, 5, .94);
  opacity: 0;
  box-shadow: 0 9px 26px rgba(0, 0, 0, .32);
}

.ldroom-gift-overlay.show {
  height: 50px;
  min-height: 50px;
  margin-bottom: 4px;
  padding: 5px 12px;
  border: 1px solid rgba(255, 218, 130, .42);
  animation: ld-gift-inline 3.2s both;
}

.ldroom-gift-overlay span,
.ldroom-gift-overlay.show span {
  font-size: 34px;
}

.ldroom-gift-overlay b,
.ldroom-gift-overlay.show b {
  font-size: 13px;
}

@keyframes ld-gift-inline {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(.97);
  }
  10%, 78% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }
}

@media (max-width: 700px) {
  .ldroom-timeline-wrap {
    width: 100%;
    margin: 0;
    padding-right: 36px;
  }

  .ldroom-actions {
    right: 2px;
    width: 36px;
    gap: 7px;
  }

  .ldroom-action-btn {
    width: 36px;
    min-height: 55px;
  }

  .ldroom-action-btn .ico {
    font-size: 25px;
  }

  .ldroom-action-btn > span:not(.ico) {
    font-size: 10px;
  }

  .ldroom-action-btn b {
    max-width: 36px;
    font-size: 9px;
  }

  .ldroom-pop {
    right: 40px;
    width: calc(100vw - 54px);
  }

  .ldroom-bottom {
    padding-right: 38px;
  }

  .ldroom-gift-overlay,
  .ldroom-gift-overlay.show {
    bottom: auto;
    max-width: 100%;
  }
}

@media (max-width: 700px) and (max-height: 680px) {
  .ldroom-actions {
    gap: 4px;
  }

  .ldroom-action-btn {
    min-height: 50px;
  }
}
