* {
  box-sizing: border-box;
}

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --white: #fff;
  --glass: rgba(0, 0, 0, 0.42);
  --cta-start: #ff2f7d;
  --cta-end: #ff174f;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Yu Gothic", Meiryo, sans-serif;
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.live-app {
  position: relative;
  width: min(100vw, 480px);
  height: 100svh;
  min-height: 560px;
  margin: 0 auto;
  overflow: hidden;
  background: #111;
  color: var(--white);
  isolation: isolate;
}

.media-layer,
.hero-media,
.shade {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: 0;
  transform: scale(1.012);
  transition: opacity 0.35s ease;
}

.hero-media.is-active {
  opacity: 1;
}

.shade {
  z-index: 1;
  pointer-events: none;
}

.shade-top {
  height: 34%;
  bottom: auto;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.76) 0%,
    rgba(0, 0, 0, 0.26) 50%,
    transparent 100%
  );
}

.shade-bottom {
  top: auto;
  height: 58%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.93) 0%,
    rgba(0, 0, 0, 0.62) 31%,
    rgba(0, 0, 0, 0.12) 73%,
    transparent 100%
  );
}

.live-header {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:
    calc(12px + var(--safe-top))
    14px
    10px;
}

.profile-block {
  display: flex;
  align-items: center;
  min-width: 0;
}

.profile-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  object-fit: cover;
  background: #fff;
}

.profile-copy {
  min-width: 0;
  margin-left: 9px;
}

.profile-line,
.live-meta {
  display: flex;
  align-items: center;
}

.profile-line strong {
  max-width: 145px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.75);
}

.live-badge {
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 5px;
  background: linear-gradient(135deg, #ff2f78, #ff1744);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 3px 12px rgba(255, 23, 68, 0.34);
}

.live-meta {
  gap: 5px;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11px;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.viewer-icon {
  font-size: 7px;
}

.viewer-count {
  display: inline-block;
  min-width: 23px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.viewer-count.is-changing {
  opacity: .7;
  transform: translateY(-1px);
}

.elapsed {
  margin-left: 5px;
  opacity: 0.72;
}

.close-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 31px;
  font-weight: 200;
  line-height: 34px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.activity-area {
  position: absolute;
  z-index: 4;
  left: 12px;
  right: 76px;
  bottom: calc(147px + var(--safe-bottom));
  height: 220px;
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.join-notice {
  min-height: 20px;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.join-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.comment-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  overflow: visible;
  padding-top: 8px;
}

.comment {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  opacity: 0;
  transform: translateY(20px);
  animation: comment-in 0.34s cubic-bezier(.2, .9, .35, 1) forwards;
}

.comment-avatar {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  margin-right: 7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.comment-bubble {
  max-width: calc(100% - 33px);
  padding: 7px 10px 8px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
}

.comment-user {
  display: block;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 10px;
  font-weight: 600;
}

.comment-text {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  word-break: break-word;
}

@keyframes comment-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.heart-layer {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: calc(125px + var(--safe-bottom));
  width: 62px;
  height: 330px;
  overflow: visible;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 24px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.28));
  animation: heart-float var(--duration) ease-out forwards;
}

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.65) rotate(0deg);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate3d(var(--drift), -290px, 0)
      scale(1.18)
      rotate(var(--rotate));
  }
}

.bottom-ui {
  position: absolute;
  z-index: 6;
  left: 12px;
  right: 12px;
  bottom: 0;
  padding-bottom: calc(11px + var(--safe-bottom));
}

.typing-indicator {
  display: inline-flex;
  align-items: center;
  height: 30px;
  margin-bottom: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.43);
  font-size: 11px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(6px);
}

.typing-indicator.is-visible {
  opacity: 1;
  transform: translateY(0);
}



.typing-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
}

.typing-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  animation: typing-dot 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-dots i:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typing-dot {
  0%, 60%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.cta-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 57px;
  padding: 0 54px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 17px;
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  box-shadow:
    0 10px 30px rgba(255, 23, 79, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  animation: cta-pulse 2.05s infinite ease-in-out;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: -55%;
  left: -50%;
  width: 28%;
  height: 210%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: rotate(20deg);
  animation: cta-shine 3.4s infinite;
}

.cta-button:active {
  transform: scale(0.975);
}

.cta-arrow {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 34px;
  font-weight: 200;
}

@keyframes cta-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 10px 30px rgba(255, 23, 79, 0.34);
  }
  50% {
    transform: scale(1.018);
    box-shadow: 0 12px 35px rgba(255, 23, 79, 0.49);
  }
}

@keyframes cta-shine {
  0%, 63% {
    left: -50%;
  }
  100% {
    left: 125%;
  }
}

.micro-copy {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  text-align: center;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}

.tap-ripple {
  position: absolute;
  z-index: 10;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.tap-ripple.is-active {
  animation: ripple 0.52s ease-out;
}

@keyframes ripple {
  0% {
    opacity: 0.9;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(6);
  }
}

@media (min-width: 481px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 30%, #232323, #050505 70%);
  }

  .live-app {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
    border-right: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.78);
  }
}

@media (max-height: 650px) {
  .activity-area {
    bottom: calc(136px + var(--safe-bottom));
    height: 190px;
    padding-top: 30px;
  }

  .comment-bubble {
    padding-top: 5px;
    padding-bottom: 6px;
  }

  .cta-button {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

.typing-mini-avatar {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.55);
}

.comment:first-child {
  margin-top: 8px;
}


.store-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}

.store-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.store-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(8px);
}

.store-card {
  position: relative;
  width: min(100%, 360px);
  border-radius: 24px;
  padding: 22px 18px 16px;
  background: rgba(255, 255, 255, .98);
  color: #161616;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .42);
  transform: translateY(20px) scale(.96);
  transition: transform .24s cubic-bezier(.2,.85,.3,1);
}

.store-modal.is-open .store-card {
  transform: translateY(0) scale(1);
}

.store-close {
  position: absolute;
  top: 9px;
  right: 11px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f1f4;
  color: #444;
  font-size: 24px;
  line-height: 30px;
}

.store-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 30px;
}

.store-icon {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.store-copy {
  min-width: 0;
}

.store-label {
  display: block;
  margin-bottom: 3px;
  color: #777;
  font-size: 11px;
  font-weight: 700;
}

.store-copy h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.store-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: #ff9f0a;
  font-size: 13px;
  letter-spacing: 1px;
}

.store-rating small {
  color: #777;
  letter-spacing: 0;
}

.store-description {
  margin: 16px 0 14px;
  color: #555;
  font-size: 13px;
  line-height: 1.6;
}

.store-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 15px;
  background: linear-gradient(135deg, #ff2f7d, #ff174f);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(255, 23, 79, .28);
}

.store-cancel {
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: #777;
  font-size: 13px;
}

.hero-media.is-active { animation: hero-breathe 9s ease-in-out infinite alternate; }
@keyframes hero-breathe { 0% { transform: scale(1.012); } 100% { transform: scale(1.032); } }
.live-badge { animation: live-blink 1.8s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity:1; } 50% { opacity:.72; } }
.preview-notice { margin:5px 8px 0; color:rgba(255,255,255,.58); font-size:9px; line-height:1.45; text-align:center; text-shadow:0 1px 4px rgba(0,0,0,.8); }


.launch-overlay{position:fixed;inset:0;background:rgba(0,0,0,.94);display:flex;align-items:center;justify-content:center;z-index:150;opacity:0;visibility:hidden;transition:.25s}
.launch-overlay.show{opacity:1;visibility:visible}
.launch-card{width:min(88vw,320px);text-align:center;color:#fff}
.launch-logo{font-size:54px;margin-bottom:12px}
.launch-title{font-size:24px;font-weight:800;letter-spacing:2px}
.launch-sub{margin:18px 0;font-size:14px;color:#ddd}
.launch-bar{height:8px;background:#333;border-radius:999px;overflow:hidden}
.launch-progress{height:100%;width:0;background:linear-gradient(90deg,#ff2f7d,#ff6aa2);transition:width .25s}


/* v11: app-launch flow and benefit presentation */
.preview-notice {
  margin-top: 6px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .01em;
}

.store-card {
  padding: 22px 18px 14px;
}

.store-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #555;
  font-size: 12px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff174f;
  box-shadow: 0 0 0 4px rgba(255,23,79,.12);
  animation: status-pulse 1.4s ease-in-out infinite;
}

@keyframes status-pulse {
  50% { opacity: .45; transform: scale(.85); }
}

.benefit-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 16px;
  padding: 13px 14px;
  border-radius: 15px;
  background: #f6f7f9;
  color: #30343a;
  font-size: 13px;
  font-weight: 700;
}

.store-button {
  min-height: 54px;
}

.store-fineprint {
  margin: 9px 0 0;
  color: #8a8d93;
  font-size: 10px;
  text-align: center;
}

.launch-overlay {
  background: rgba(5,5,8,.94);
  backdrop-filter: blur(16px);
}

.launch-card {
  width: min(86vw, 320px);
  text-align: center;
  color: #fff;
}

.launch-logo-wrap {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 0 auto 15px;
}

.launch-avatar {
  width: 86px;
  height: 86px;
  border-radius: 23px;
  object-fit: cover;
  box-shadow: 0 18px 45px rgba(0,0,0,.36);
}

.launch-live-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 24px;
  height: 24px;
  border: 4px solid #08080a;
  border-radius: 50%;
  background: #ff174f;
  animation: status-pulse 1.1s ease-in-out infinite;
}

.launch-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .12em;
}

.launch-sub {
  min-height: 21px;
  margin: 17px 0 13px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  transition: opacity .16s ease;
}

.launch-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  overflow: hidden;
}

.launch-progress {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg,#ff2f7d,#ff174f);
  transition: width .26s cubic-bezier(.2,.8,.3,1);
}

.launch-percent {
  margin-top: 8px;
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}


/* Live-chat style app icon used in the launch screen and app modal */
.app-livechat-icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 21px;
  background:
    radial-gradient(circle at 28% 20%, rgba(255,255,255,.34), transparent 31%),
    linear-gradient(145deg, #ff70a4 0%, #ff3f7d 48%, #ef2566 100%);
  box-shadow:
    0 10px 24px rgba(235, 38, 103, .24),
    inset 0 1px 0 rgba(255,255,255,.32);
}

.app-livechat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: inherit;
  pointer-events: none;
}

.app-livechat-bubble {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 43px;
  height: 31px;
  border-radius: 18px;
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(122, 8, 49, .14);
}

.app-livechat-bubble::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: -7px;
  width: 13px;
  height: 13px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.app-livechat-bubble i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff3f7d;
}

.app-livechat-icon b {
  position: absolute;
  right: 5px;
  top: 5px;
  padding: 3px 5px 2px;
  border-radius: 999px;
  background: #fff;
  color: #ef2566;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(95, 7, 38, .15);
}

.store-icon.app-livechat-icon {
  object-fit: unset;
}

.launch-camera.app-livechat-icon--launch {
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 19px;
  color: inherit;
  font-size: inherit;
  box-shadow:
    0 12px 32px rgba(255, 47, 120, .28),
    inset 0 1px 0 rgba(255,255,255,.34);
}

.launch-camera.app-livechat-icon--launch .app-livechat-bubble {
  width: 39px;
  height: 29px;
}


/* Enhanced background treatment for readability and depth */
.hero-visual {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: #111;
  pointer-events: none;
}

.hero-visual__image {
  position: absolute;
  inset: -2.5%;
  background-image: url("assets/hero.jpg");
  background-size: cover;
  background-position: center 38%;
  transform: scale(1.035);
  filter: saturate(.96) contrast(1.03) brightness(.94);
  animation: heroKenBurns 18s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-visual__soften {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1.6px);
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.03) 0 24%, rgba(0,0,0,.03) 58%, rgba(0,0,0,.08) 100%);
}

.hero-visual__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.36) 0%,
      rgba(0,0,0,.14) 19%,
      rgba(0,0,0,.07) 46%,
      rgba(0,0,0,.22) 70%,
      rgba(0,0,0,.72) 100%);
}

.hero-visual__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center,
      transparent 42%,
      rgba(0,0,0,.10) 72%,
      rgba(0,0,0,.32) 100%);
}

@keyframes heroKenBurns {
  0% {
    transform: scale(1.035) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.075) translate3d(-.6%, -.4%, 0);
  }
  100% {
    transform: scale(1.11) translate3d(.5%, -.9%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual__image {
    animation: none;
    transform: scale(1.055);
  }
}

/* Keep the interface crisp above the treated background */
body,
.app,
.live-shell,
main {
  position: relative;
}

body {
  background: #111 !important;
}

.app,
.live-shell,
main {
  z-index: 0;
}


/* ===== Archive mode ===== */
.archive-bar{
  position:fixed;top:max(12px,env(safe-area-inset-top));left:14px;right:14px;z-index:60;
  display:flex;align-items:center;justify-content:space-between;color:#fff;
  text-shadow:0 1px 7px rgba(0,0,0,.75);pointer-events:none
}
.archive-bar strong{
  padding:7px 13px;border:1px solid rgba(255,255,255,.3);border-radius:999px;
  background:rgba(0,0,0,.25);backdrop-filter:blur(8px);font-size:14px
}
.archive-back{font-size:30px;line-height:1}.archive-menu{font-size:17px;letter-spacing:2px}
.archive-stats{
  position:fixed;top:72px;left:18px;z-index:40;display:flex;gap:4px;align-items:center;
  color:rgba(255,255,255,.9);font-size:12px;text-shadow:0 1px 6px rgba(0,0,0,.85)
}
.archive-stats strong{font-variant-numeric:tabular-nums}.archive-stats .dot{opacity:.65}
.live-badge{background:rgba(0,0,0,.34)!important;border:1px solid rgba(255,255,255,.28)!important}
.hearts,.heart-layer,.floating-hearts,.typing-indicator,.live-typing{display:none!important}

.comment,.comment-item,.live-comment{
  display:flex;align-items:flex-start;gap:9px
}
.comment img,.comment-item img,.live-comment img,.comment-avatar{
  width:30px!important;height:30px!important;border-radius:50%!important;object-fit:cover!important;
  border:1px solid rgba(255,255,255,.55)
}
.archive-log-time{
  margin-left:auto;padding-left:8px;color:rgba(255,255,255,.5);font-size:10px;white-space:nowrap
}

.profile-avatar,.profile-image{
  border-radius:50%!important;
  padding:2px;
  background:linear-gradient(135deg,#ff3c79,#ff9bd0,#9d6cff);
  box-shadow:0 0 0 2px rgba(255,255,255,.85)
}
.store-icon{
  border-radius:22%!important;object-fit:cover!important;
  box-shadow:0 8px 22px rgba(92,47,156,.25)
}


/* v17 archive comment flow */
.archive-inline-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.88);
  font-size: 11px;
  line-height: 1.2;
  text-shadow: 0 1px 5px rgba(0,0,0,.8);
}

.archive-inline-meta .viewer-count {
  font-variant-numeric: tabular-nums;
}

.archive-separator {
  opacity: .65;
  margin: 0 1px;
}

.activity-area {
  overflow: hidden;
}

.comment-list {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  min-height: 190px;
  overflow: hidden;
}

.archive-comment {
  display: grid !important;
  grid-template-columns: 31px minmax(0,1fr) auto;
  align-items: end !important;
  gap: 8px !important;
  opacity: 0;
  transform: translate3d(0,22px,0);
  transition: opacity .28s ease, transform .34s cubic-bezier(.2,.8,.2,1), margin .26s ease;
  will-change: transform, opacity;
}

.archive-comment.is-visible,
.archive-comment.is-initial {
  opacity: 1;
  transform: translate3d(0,0,0);
}

.archive-comment.is-removing {
  opacity: 0;
  transform: translate3d(0,-18px,0);
  margin-top: -43px;
}

.archive-comment .comment-avatar {
  width: 31px !important;
  height: 31px !important;
  align-self: end;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.archive-comment .comment-bubble {
  min-width: 0;
  padding: 7px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.34);
  backdrop-filter: blur(7px);
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.archive-comment .comment-user {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,.72);
  font-size: 10px;
  font-weight: 700;
}

.archive-comment .comment-text {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  text-shadow: 0 1px 3px rgba(0,0,0,.55);
}

.archive-comment .archive-log-time {
  align-self: end;
  margin: 0 0 7px;
  padding: 0;
  color: rgba(255,255,255,.55);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.profile-image {
  object-fit: cover !important;
  object-position: center !important;
}

.store-icon,
.launch-avatar {
  object-fit: cover !important;
  object-position: center !important;
}

.typing-indicator,
.heart-layer,
.join-notice {
  display: none !important;
}


/* v18 polish */
.archive-bar,.archive-topbar{display:none!important}

.activity-area{
  overflow:visible!important;
  padding-top:8px;
}

.comment-list{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:7px;
  min-height:214px;
  max-height:228px;
  overflow:hidden;
  padding-top:10px;
  mask-image:linear-gradient(to bottom,transparent 0,#000 10%,#000 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 10%,#000 100%);
}

.archive-comment{
  display:grid!important;
  grid-template-columns:32px minmax(0,1fr) auto;
  align-items:end!important;
  gap:8px!important;
  opacity:0;
  transform:translate3d(0,20px,0);
  transition:opacity .28s ease,transform .34s cubic-bezier(.2,.8,.2,1),margin .26s ease;
}

.archive-comment.is-visible,.archive-comment.is-initial{
  opacity:1;
  transform:translate3d(0,0,0);
}

.archive-comment.is-removing{
  opacity:0;
  transform:translate3d(0,-18px,0);
  margin-top:-44px;
}

.initial-avatar{
  width:32px;
  height:32px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:linear-gradient(145deg,var(--avatar-c1),var(--avatar-c2));
  color:#fff;
  font-size:10px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid rgba(255,255,255,.62);
  box-shadow:0 3px 10px rgba(0,0,0,.18);
  text-shadow:0 1px 2px rgba(0,0,0,.28);
}

.image-avatar{
  object-fit:cover;
}

.emoji-avatar{
  font-size:17px;
  text-shadow:none;
}

.archive-comment .comment-bubble{
  min-width:0;
  padding:7px 10px;
  border-radius:14px;
  background:rgba(0,0,0,.36);
  backdrop-filter:blur(8px);
  box-shadow:0 4px 14px rgba(0,0,0,.13);
}

.archive-comment .comment-user{
  display:block;
  margin-bottom:2px;
  color:rgba(255,255,255,.7);
  font-size:10px;
  font-weight:700;
}

.archive-comment .comment-text{
  display:block;
  color:#fff;
  font-size:12px;
  line-height:1.35;
  text-shadow:0 1px 3px rgba(0,0,0,.5);
}

.archive-comment .archive-log-time{
  margin:0 0 7px;
  color:rgba(255,255,255,.52);
  font-size:9px;
  font-variant-numeric:tabular-nums;
}

.activity-feed{
  min-height:28px;
  display:flex;
  align-items:flex-end;
  margin:0 0 4px 40px;
  overflow:hidden;
}

.activity-item{
  position:absolute;
  opacity:0;
  transform:translateY(8px);
  padding:5px 9px;
  border-radius:999px;
  background:rgba(0,0,0,.3);
  color:rgba(255,255,255,.76);
  font-size:10px;
  backdrop-filter:blur(6px);
  transition:opacity .22s ease,transform .22s ease;
}

.activity-item.show{
  opacity:1;
  transform:translateY(0);
}

.activity-item.typing::before{
  content:"•••";
  margin-right:5px;
  color:#ff7bac;
  letter-spacing:1px;
}

.activity-item.join::before{
  content:"＋";
  margin-right:5px;
  color:#87d59e;
  font-weight:900;
}

.archive-video-note{
  margin:7px 8px 0;
  color:rgba(255,255,255,.72);
  font-size:9px;
  line-height:1.45;
  text-align:center;
  text-shadow:0 1px 4px rgba(0,0,0,.75);
}

.store-close{display:none!important}

.launch-overlay{
  background:
    radial-gradient(circle at 50% 43%,rgba(255,33,107,.08),transparent 30%),
    rgba(4,4,7,.95)!important;
}

.launch-card{
  width:min(88vw,360px);
}

.launch-title{
  letter-spacing:.14em;
}

.launch-sub{
  min-height:18px;
  transition:opacity .2s ease;
}

.launch-progress-track{
  height:7px;
  background:rgba(255,255,255,.12);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.35);
}

.launch-progress-bar{
  background:linear-gradient(90deg,#ff2d7a,#ff4d8f,#ff2d7a);
  background-size:180% 100%;
  animation:launchShimmer 1.2s linear infinite;
}

@keyframes launchShimmer{
  from{background-position:0 0}
  to{background-position:180% 0}
}


/* v19: slower archive comments and clearer app-video notice */
.archive-video-note {
  margin: 8px 6px 2px !important;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 10px;
  background: rgba(0,0,0,.32);
  color: rgba(255,255,255,.9) !important;
  font-size: 10px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  text-align: center;
  backdrop-filter: blur(7px);
  text-shadow: 0 1px 4px rgba(0,0,0,.72);
}

.activity-feed {
  position: relative;
  min-height: 30px !important;
}

.activity-item.typing {
  padding-left: 10px;
  background: rgba(19,19,24,.48);
  color: rgba(255,255,255,.88);
}

.activity-item.typing::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 5px;
  margin-right: 7px;
  vertical-align: middle;
  background:
    radial-gradient(circle, #ff75aa 2px, transparent 2.5px) 0 50%/6px 6px repeat-x;
  animation: archiveTypingDots .9s ease-in-out infinite alternate;
}

@keyframes archiveTypingDots {
  from { opacity: .35; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-1px); }
}


/* v21: calmer viewer fluctuation */
.viewer-count {
  display: inline-block;
  min-width: 22px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: opacity .18s ease, transform .18s ease;
}

.viewer-count.is-changing {
  opacity: .42;
  transform: translateY(-2px);
}


/* v22: subtle viewer movement and thinking state */
.viewer-count {
  transition: opacity .22s ease, transform .22s ease !important;
}

.viewer-count.is-changing {
  opacity: .82 !important;
  transform: translateY(-1px) !important;
}

.activity-item.thinking {
  background: rgba(17,17,22,.46);
  color: rgba(255,255,255,.84);
}

.activity-item.thinking::before {
  content: "…";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #ffd072;
  font-size: 13px;
  font-weight: 800;
  vertical-align: middle;
  animation: thinkingPulse 1.15s ease-in-out infinite;
}

@keyframes thinkingPulse {
  0%,100% { opacity: .45; transform: scale(.92); }
  50% { opacity: 1; transform: scale(1); }
}


/* v23: moderate viewer movement and organic comment timing */
.viewer-count.is-changing {
  opacity: .74 !important;
  transform: translateY(-1px) scale(.98) !important;
}

.activity-item {
  max-width: calc(100vw - 92px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}







.archive-subnote{
display:block;
margin-top:6px;
font-size:11px;
font-weight:400;
opacity:.68;
}



/* v30: OS-neutral loading and login-error flow */
.connect-overlay,
.login-error-modal{
  position:fixed;
  inset:0;
  z-index:100000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease,visibility .22s ease;
}

.connect-overlay{
  background:rgba(7,7,10,.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

.connect-overlay.is-open,
.login-error-modal.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.connect-panel{
  width:min(82vw,320px);
  display:flex;
  flex-direction:column;
  align-items:center;
  color:#fff;
  text-align:center;
}

.connect-spinner{
  width:46px;
  height:46px;
  margin-bottom:19px;
  border:4px solid rgba(255,255,255,.22);
  border-top-color:#fff;
  border-radius:50%;
  animation:connectSpin .82s linear infinite;
}

.connect-panel strong{
  font-size:21px;
  line-height:1.3;
  letter-spacing:.01em;
}

.connect-panel span{
  min-height:44px;
  margin-top:9px;
  color:rgba(255,255,255,.74);
  font-size:14px;
  line-height:1.55;
}

@keyframes connectSpin{
  to{transform:rotate(360deg)}
}

.login-error-modal{
  background:rgba(5,5,8,.68);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.login-error-card{
  width:min(91vw,380px);
  max-height:calc(100svh - 34px);
  overflow:auto;
  padding:23px 21px 19px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:23px;
  background:rgba(255,255,255,.98);
  color:#151515;
  box-shadow:0 24px 72px rgba(0,0,0,.38);
  transform:translateY(14px) scale(.975);
  transition:transform .28s cubic-bezier(.2,.8,.2,1);
  -webkit-overflow-scrolling:touch;
}

.login-error-modal.is-open .login-error-card{
  transform:translateY(0) scale(1);
}

.login-error-icon{
  width:54px;
  height:54px;
  display:grid;
  place-items:center;
  margin:0 auto 14px;
  border-radius:17px;
  background:#171717;
  color:#fff;
  font-size:29px;
  font-weight:900;
  box-shadow:0 8px 22px rgba(0,0,0,.18);
}

.login-error-copy{
  text-align:center;
}

.login-error-label{
  display:inline-block;
  margin-bottom:7px;
  color:#777;
  font-size:10px;
  font-weight:800;
  letter-spacing:.16em;
}

.login-error-copy h2{
  margin:0 0 12px;
  font-size:25px;
  line-height:1.3;
  letter-spacing:-.03em;
}

.login-error-copy p{
  margin:0 auto 8px;
  max-width:320px;
  color:#646464;
  font-size:14px;
  line-height:1.62;
}

.login-error-benefits{
  margin:18px 0 17px;
  padding:3px 14px;
  border:1px solid #e8e8e8;
  border-radius:16px;
  background:#fafafa;
}

.login-error-benefits > div{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:43px;
  border-bottom:1px solid #e8e8e8;
  font-size:14px;
  font-weight:700;
}

.login-error-benefits > div:last-child{
  border-bottom:0;
}

.benefit-mark{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:50%;
  background:#181818;
  color:#fff;
  font-size:13px;
  font-weight:900;
}

.install-app-button{
  width:100%;
  min-height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:16px;
  background:#111;
  color:#fff !important;
  font-size:17px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:transform .12s ease,opacity .12s ease;
  -webkit-tap-highlight-color:transparent;
}

.install-app-button:active{
  transform:scale(.985);
  opacity:.88;
}

.login-error-note{
  margin:12px 4px 0;
  color:#909090;
  font-size:11px;
  line-height:1.5;
  text-align:center;
}

body.modal-open{
  overflow:hidden;
  touch-action:none;
}

@media (max-height:700px){
  .login-error-card{padding:17px 17px 15px}
  .login-error-icon{width:46px;height:46px;margin-bottom:9px}
  .login-error-copy h2{font-size:22px;margin-bottom:8px}
  .login-error-copy p{font-size:13px;line-height:1.48}
  .login-error-benefits{margin:12px 0}
  .login-error-benefits > div{min-height:38px}
  .install-app-button{min-height:50px}
}


/* v31: smoother comments and lower placement */
.activity-area{
  bottom:calc(101px + var(--safe-bottom)) !important;
  height:268px !important;
  padding-top:12px !important;
}

.comment-list{
  min-height:232px !important;
  max-height:252px !important;
  gap:6px !important;
  padding-top:12px !important;
  overflow:hidden !important;
  mask-image:linear-gradient(to bottom,transparent 0,#000 8%,#000 100%) !important;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 8%,#000 100%) !important;
}

.archive-comment{
  transform:translate3d(0,16px,0);
  transition:
    opacity .30s ease,
    transform .42s cubic-bezier(.18,.82,.24,1),
    margin .34s cubic-bezier(.18,.82,.24,1) !important;
  will-change:transform,opacity;
}

.archive-comment.is-visible,
.archive-comment.is-initial{
  transform:translate3d(0,0,0);
}

.archive-comment.is-removing{
  opacity:0;
  transform:translate3d(0,-24px,0) scale(.985);
  margin-top:-46px;
}

.archive-comment.comment-shifting{
  transition:none !important;
}

.activity-feed{
  margin-bottom:2px !important;
}

@media (max-height:700px){
  .activity-area{
    bottom:calc(94px + var(--safe-bottom)) !important;
    height:232px !important;
  }

  .comment-list{
    min-height:202px !important;
    max-height:218px !important;
    gap:5px !important;
  }
}


/* v32: randomized loading, dismissible modal, fine positioning */
.connect-panel{
  width:min(84vw,330px);
}

.connect-avatar{
  width:74px;
  height:74px;
  margin-bottom:14px;
  border:3px solid rgba(255,255,255,.92);
  border-radius:50%;
  object-fit:cover;
  box-shadow:0 8px 30px rgba(0,0,0,.32);
}

.connect-progress{
  width:min(78vw,278px);
  height:6px;
  margin:15px 0 12px;
  overflow:hidden;
  border-radius:999px;
  background:rgba(255,255,255,.18);
}

.connect-progress > span{
  display:block;
  width:8%;
  height:100%;
  min-height:0;
  margin:0;
  border-radius:inherit;
  background:#fff;
  transition:width .5s cubic-bezier(.2,.8,.2,1);
}

.connect-panel small{
  min-height:38px;
  margin-top:7px;
  color:rgba(255,255,255,.55);
  font-size:11px;
  line-height:1.55;
}

.login-error-modal{
  cursor:pointer;
}

.login-error-card{
  cursor:default;
}

.activity-area{
  bottom:calc(107px + var(--safe-bottom)) !important;
}

@media (max-height:700px){
  .activity-area{
    bottom:calc(100px + var(--safe-bottom)) !important;
  }

  .connect-avatar{
    width:64px;
    height:64px;
    margin-bottom:11px;
  }
}


/* v33: faster comments and varied timestamps */
.comment-list{
  gap:4px !important;
}

.archive-log-time{
  min-width:42px;
  text-align:right;
  white-space:nowrap;
}

.archive-comment{
  transition:
    opacity .26s ease,
    transform .36s cubic-bezier(.18,.82,.24,1),
    margin .30s cubic-bezier(.18,.82,.24,1) !important;
}
