* {
  box-sizing: border-box;
}

img {
  -webkit-user-drag: none;
  user-select: none;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #16171a;
  display: grid;
  font-family: "PingFang SC", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  place-items: center;
}

.stage {
  display: grid;
  min-height: 100vh;
  padding: 0;
  place-items: center;
  width: 100%;
}

.camera {
  background: #000;
  color: #fafbff;
  height: 852px;
  overflow: hidden;
  position: relative;
  width: 393px;
}

.status-bar {
  background: #000;
  height: 54px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 8;
}

.status-bar img {
  display: block;
  height: 54px;
  width: 393px;
}

.preview {
  height: 700px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 54px;
}

.preview-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.icon-frame {
  align-items: center;
  display: flex;
  justify-content: center;
  position: absolute;
}

.icon-frame img {
  display: block;
  height: 28px;
  width: 28px;
}

.top-close {
  backdrop-filter: blur(10px);
  height: 36px;
  left: 8px;
  overflow: hidden;
  top: 62px;
  width: 36px;
  z-index: 5;
}

.top-close img,
.tool-icon img,
.mode-bar img {
  filter: drop-shadow(0 0 2.333px rgba(0, 0, 0, 0.3))
    drop-shadow(0 2.333px 7px rgba(0, 0, 0, 0.06));
}

.music-pill {
  align-items: center;
  backdrop-filter: blur(5px);
  background: rgba(37, 38, 43, 0.5);
  border-radius: 16px;
  display: flex;
  gap: 4px;
  height: 32px;
  left: 50%;
  padding: 7px 12px;
  position: absolute;
  top: 64px;
  transform: translateX(-50%);
  transition: width 180ms cubic-bezier(0.2, 0.9, 0.2, 1), padding 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  width: 150px;
  z-index: 5;
}

.music-title {
  display: block;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 500;
  line-height: 16.8px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  user-select: none;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 14px), transparent 100%);
}

.music-marquee {
  animation: music-marquee var(--music-duration, 6s) linear infinite;
  color: #fafbff;
  display: inline-flex;
  gap: 24px;
  min-width: max-content;
  will-change: transform;
}

.music-marquee span {
  flex: 0 0 auto;
}

.music-pill:hover .music-marquee {
  animation-play-state: paused;
}

@keyframes music-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-1 * var(--music-distance, 96px)));
  }
}

.music-icon {
  flex: 0 0 auto;
  height: 18px;
  margin-left: -2px;
  width: 18px;
}

.music-close-button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  height: 18px;
  margin: 0 -3px 0 0;
  padding: 3px;
  width: 18px;
}

.music-close {
  flex: 0 0 auto;
  height: 12px;
  width: 12px;
}

.music-pill.is-empty {
  padding: 7px 14px 7px 12px;
  width: 96px;
}

.music-pill.is-empty .music-title {
  flex: 0 0 auto;
  -webkit-mask-image: none;
  mask-image: none;
}

.music-pill.is-empty .music-marquee {
  animation: none;
  gap: 0;
  transform: none;
}

.music-pill.is-empty .music-close-button {
  display: none;
}

.side-toolbar {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 54px;
  width: 52px;
  z-index: 5;
}

.tool-item {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 50px;
  justify-content: center;
  width: 36px;
}

.tool-icon {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
}

.tool-icon img {
  display: block;
  height: 28px;
  width: 28px;
}

.overflow-icon {
  overflow: visible;
}

.overflow-icon img[src$="retouch_15.svg"],
.overflow-icon img[src$="filters_tool.svg"] {
  height: 51px;
  max-width: none;
  width: 52px;
}

.tool-label {
  color: #fafbff;
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
  text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  width: 36px;
}

.more-icon {
  align-items: center;
  display: flex;
  height: 36px;
  justify-content: center;
  position: relative;
  width: 36px;
}

.more-icon img {
  display: block;
  height: 39px;
  width: 47px;
}

.bottom-overlay {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
  height: 126px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 628px;
  z-index: 4;
}

.effect-name {
  align-items: center;
  backdrop-filter: blur(2px);
  background: rgba(37, 38, 43, 0.5);
  border-radius: 4px;
  display: flex;
  gap: 2px;
  height: 23px;
  justify-content: center;
  left: 50%;
  padding: 4px 6px;
  position: absolute;
  top: 7px;
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 4;
}

.effect-name.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(4px);
}

.effect-name span {
  color: #fafbff;
  font-size: 11px;
  font-weight: 500;
  line-height: 15.4px;
  max-width: 44px;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.effect-clear {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  height: 14px;
  margin: 0 -2px 0 0;
  padding: 1px;
  width: 14px;
}

.effect-clear img {
  display: block;
  height: 12px;
  width: 12px;
}

.effects-row {
  align-items: center;
  bottom: 12px;
  height: 78px;
  left: 0;
  position: absolute;
  width: 393px;
}

.effect-carousel {
  cursor: grab;
  height: 78px;
  left: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 10px, rgba(0, 0, 0, 0.62) 28px, #000 58px, #000 calc(100% - 50px), rgba(0, 0, 0, 0.62) calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, 0.18) 10px, rgba(0, 0, 0, 0.62) 28px, #000 58px, #000 calc(100% - 50px), rgba(0, 0, 0, 0.62) calc(100% - 26px), transparent 100%);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  overflow: hidden;
  position: absolute;
  top: 0;
  touch-action: none;
  user-select: none;
  width: 393px;
  z-index: 1;
}

.effect-carousel.dragging {
  cursor: grabbing;
}

.effects-track {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  left: 0;
  position: absolute;
  top: 13px;
  transform: translate3d(var(--track-x, 34.5px), 0, 0);
  transition: transform 150ms cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

.effect-carousel.dragging .effects-track {
  transition: none;
}

.thumb {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: var(--thumb-radius, 26px);
  cursor: pointer;
  flex: 0 0 var(--thumb-size, 52px);
  height: var(--thumb-size, 52px);
  overflow: hidden;
  padding: 0;
  position: relative;
  touch-action: none;
  transform: translateY(var(--thumb-y, 0));
  transition: opacity 160ms ease;
  width: var(--thumb-size, 52px);
  z-index: 1;
}

.thumb.is-focused {
  z-index: 2;
}

.thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  width: 100%;
}

.effect-thumb > img {
  border-radius: var(--thumb-image-radius, 26px);
  height: var(--thumb-image-size, 52px);
  left: 50%;
  max-width: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--thumb-image-size, 52px);
}

.effect-thumb::after {
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--thumb-image-radius, 26px);
  content: "";
  height: var(--thumb-image-size, 52px);
  left: 50%;
  opacity: var(--thumb-overlay-opacity, 0);
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--thumb-image-size, 52px);
}

.entry-thumb,
.none-thumb {
  align-items: center;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(37, 38, 43, 0.52);
  border: 0.5px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  display: flex;
  justify-content: center;
}

.entry-thumb img,
.none-thumb img {
  height: 24px;
  width: 24px;
}

.entry-thumb.is-stuck {
  opacity: 0;
}

.record-gap-spacer {
  flex: 0 0 10px;
  height: 52px;
  pointer-events: none;
}

.none-thumb {
  opacity: 1;
  z-index: 1;
}

.bottom-overlay.has-effect .record-gap-spacer {
  display: none;
}

.effect-carousel.dragging .none-thumb {
  opacity: 1;
}

.record-button {
  height: 78px;
  left: 157px;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 78px;
  z-index: 3;
}

.record-ring {
  border: 4px solid #fff;
  border-radius: 50%;
  height: 78px;
  left: 0;
  position: absolute;
  top: 0;
  width: 78px;
}

.record-thumb {
  background: #ff2f5f;
  border-radius: 31px;
  height: 64px;
  left: 7px;
  overflow: hidden;
  position: absolute;
  top: 7px;
  transition: background 160ms ease, opacity 120ms ease;
  width: 64px;
}

.record-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.record-thumb span {
  background: rgba(0, 0, 0, 0.2);
  inset: 0;
  position: absolute;
}

.record-button.no-effect .record-thumb img,
.record-button.no-effect .record-thumb span {
  display: none;
}

.record-button.has-effect .record-thumb {
  background: transparent;
  opacity: 0;
}

.record-video {
  display: block;
  height: 28px;
  left: 25px;
  position: absolute;
  top: 25px;
  width: 28px;
  z-index: 2;
}

.effect-entry {
  align-items: center;
  appearance: none;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  background: rgba(37, 38, 43, 0.52);
  border: 0.5px solid rgba(255, 255, 255, 0.04);
  border-radius: 26px;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.28),
    0 2px 8px rgba(0, 0, 0, 0.14),
    inset 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  cursor: pointer;
  display: flex;
  height: 52px;
  justify-content: center;
  left: 12px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
  position: absolute;
  top: 49px;
  width: 52px;
  z-index: 6;
  display: none;
}

.bottom-overlay.entry-stuck .effect-entry {
  display: flex;
}

.effect-entry img {
  display: block;
  height: 24px;
  width: 24px;
}

.effect-sheet {
  background: rgba(28, 28, 28, 0.9);
  border-radius: 12px 12px 0 0;
  bottom: 0;
  height: 345px;
  left: 0;
  overflow: hidden;
  position: absolute;
  right: 0;
  transform: translate3d(0, 100%, 0);
  transition: transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  z-index: 12;
}

.effect-sheet.is-open {
  transform: translate3d(0, 0, 0);
}

.sheet-grabber {
  align-items: center;
  display: flex;
  height: 16px;
  justify-content: center;
}

.sheet-grabber span {
  background: rgba(237, 240, 253, 0.22);
  border-radius: 99px;
  display: block;
  height: 3px;
  width: 32px;
}

.sheet-tabs {
  align-items: center;
  border-bottom: 0.5px solid rgba(237, 240, 253, 0.08);
  display: flex;
  height: 48px;
  overflow: hidden;
  padding: 0 42px 0 8px;
  position: relative;
  white-space: nowrap;
}

.sheet-search,
.sheet-tab,
.sheet-done {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(237, 240, 253, 0.5);
  cursor: pointer;
  flex: 0 0 auto;
  font: inherit;
  margin: 0;
  padding: 0;
}

.sheet-search {
  align-items: center;
  display: flex;
  height: 48px;
  justify-content: center;
  width: 36px;
}

.sheet-search img {
  display: block;
  height: 20px;
  width: 20px;
}

.sheet-tab {
  font-size: 14px;
  font-weight: 500;
  height: 48px;
  line-height: 19.6px;
  padding: 0 8px;
  position: relative;
}

.sheet-tab.active {
  color: #fafbff;
}

.sheet-tab.active::after {
  background: #fe2a54;
  bottom: 0;
  content: "";
  height: 2px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 30px;
}

.sheet-done {
  align-items: center;
  background: linear-gradient(270deg, rgba(28, 28, 28, 0.95) 64%, rgba(28, 28, 28, 0));
  display: flex;
  height: 48px;
  justify-content: center;
  padding-left: 18px;
  position: absolute;
  right: 0;
  top: 0;
  width: 52px;
}

.sheet-done img {
  display: block;
  height: 20px;
  width: 20px;
}

.sheet-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-height: 247px;
  overflow: hidden;
  padding: 8px 12.5px 40px;
}

.sheet-item {
  appearance: none;
  background: transparent;
  border: 0;
  color: rgba(237, 240, 253, 0.5);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  min-width: 0;
  padding: 3.5px;
  text-align: center;
}

.sheet-cover {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(229, 236, 255, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.sheet-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.sheet-item.is-none .sheet-cover img {
  height: 20px;
  object-fit: contain;
  width: 20px;
}

.sheet-label {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.sheet-item.is-selected {
  color: #fafbff;
}

.sheet-item.is-selected .sheet-cover::after {
  border: 1.5px solid #fafbff;
  border-radius: 10px;
  content: "";
  inset: -2px;
  pointer-events: none;
  position: absolute;
}

.sheet-home {
  bottom: 0;
  height: 34px;
  left: 0;
  position: absolute;
  right: 0;
}

.sheet-home span {
  background: #fff;
  border-radius: 100px;
  bottom: 8px;
  display: block;
  height: 5px;
  left: 129.5px;
  position: absolute;
  width: 134px;
}

.mode-bar {
  align-items: center;
  background: #000;
  bottom: 34px;
  display: flex;
  height: 64px;
  justify-content: space-between;
  left: 0;
  padding: 10px 16px;
  position: absolute;
  right: 0;
  z-index: 6;
}

.gallery {
  border-radius: 24px;
  height: 44px;
  left: 16px;
  position: static;
  width: 44px;
}

.mode-tabs {
  align-items: center;
  display: flex;
  height: 30px;
  left: 109.5px;
  overflow: hidden;
  position: absolute;
  top: 17px;
  width: 174px;
}

.mode-tabs span {
  align-items: center;
  color: rgba(246, 247, 254, 0.7);
  display: flex;
  font-size: 16px;
  font-weight: 400;
  height: 30px;
  justify-content: center;
  line-height: 22.4px;
  white-space: nowrap;
  width: 58px;
}

.mode-tabs .active {
  color: #fafbff;
  font-weight: 600;
}

.rotate {
  border-radius: 24px;
  height: 44px;
  position: static;
  width: 44px;
}

.rotate img {
  height: 51px;
  max-width: none;
  width: 50px;
}

.home-indicator {
  background: #000;
  bottom: 0;
  height: 34px;
  left: 0;
  position: absolute;
  right: 0;
  z-index: 6;
}

.home-indicator span {
  background: #fff;
  border-radius: 100px;
  bottom: 8px;
  display: block;
  height: 5px;
  left: 129.5px;
  position: absolute;
  width: 134px;
}

@media (max-width: 500px) {
  .stage {
    justify-items: start;
  }
}
