* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Roboto", Arial, sans-serif;
  background: #000;
  color: #fff;
  overflow: hidden;
}

#myVideo {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0,0,0,.05), rgba(0,0,0,.68)),
    linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.15) 42%, rgba(0,0,0,.8));
}

.topbar {
  position: fixed;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}

#logo {
  width: 74px;
  height: auto;
}

.brand span {
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -.2px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 24, 83, .92);
  box-shadow: 0 8px 24px rgba(255,24,83,.34);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  50% { opacity: .35; transform: scale(.8); }
}

.live-stage {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.viewer-card {
  position: absolute;
  top: 86px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
}

.viewer-card .eye {
  font-size: 18px;
}

.viewer-card strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.viewer-card span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255,255,255,.78);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.tap-unmute {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 17px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 40px rgba(0,0,0,.28);
  font-weight: 800;
  pointer-events: auto;
  cursor: pointer;
  animation: softFloat 2.2s ease-in-out infinite;
}

@keyframes softFloat {
  50% { transform: translate(-50%, -64%); }
}

.tap-unmute.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -58%) scale(.95);
  transition: all .25s ease;
}

.chat-stack {
  position: absolute;
  left: 17px;
  bottom: 205px;
  width: min(86vw, 360px);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chat-bubble {
  width: fit-content;
  max-width: 100%;
  padding: 10px 13px;
  border-radius: 17px 17px 17px 4px;
  background: rgba(0,0,0,.46);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
  font-size: 14px;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px);
}

.chat-bubble b {
  color: #44d62c;
  margin-right: 5px;
}

.chat-bubble.show,
.chat-bubble.delay1 {
  opacity: 1;
  transform: translateY(0);
}

.chat-bubble.delay1 {
  animation: bubbleIn .45s ease .7s both;
}

.chat-bubble.delay2 {
  animation: bubbleIn .45s ease 2.5s both;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-panel {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  width: min(91vw, 430px);
  pointer-events: auto;
  text-align: center;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.44);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 700;
}

.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #44d62c;
  box-shadow: 0 0 0 5px rgba(68,214,44,.16);
}

.btn {
  display: block;
  width: 100%;
  padding: 18px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #44d62c, #20b80f);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.42), 0 0 0 0 rgba(68,214,44,.55);
  animation: ctaPulse 1.8s infinite;
}

@keyframes ctaPulse {
  60% { box-shadow: 0 14px 34px rgba(0,0,0,.42), 0 0 0 14px rgba(68,214,44,0); }
}

.mini-note {
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.78);
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

footer {
  position: fixed;
  z-index: 4;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(92vw, 620px);
  text-align: center;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

footer h1 {
  margin: 0 0 5px;
  font-size: 22px;
  font-weight: 900;
}

footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.32;
  color: rgba(255,255,255,.88);
}

.heart {
  position: fixed;
  z-index: 3;
  bottom: 150px;
  right: 32px;
  font-size: 18px;
  opacity: 0;
  animation: heartRise 2.8s ease-out forwards;
  pointer-events: none;
}

@keyframes heartRise {
  0% { transform: translateY(0) scale(.65) rotate(-8deg); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-190px) scale(1.35) rotate(12deg); opacity: 0; }
}

@media (max-width: 600px) {
  .topbar {
    top: 15px;
    left: 14px;
    right: 14px;
  }

  #logo {
    width: 66px;
  }

  .brand span {
    font-size: 19px;
  }

  .viewer-card {
    top: 72px;
    right: 14px;
  }

  .tap-unmute {
    top: 43%;
    font-size: 14px;
  }

  .chat-stack {
    left: 13px;
    bottom: 194px;
  }

  .chat-bubble {
    font-size: 13px;
  }

  .cta-panel {
    bottom: 83px;
  }

  .btn {
    font-size: 20px;
    padding: 16px 20px;
  }

  footer {
    bottom: 17px;
  }

  footer h1 {
    font-size: 20px;
  }

  footer p {
    font-size: 12px;
  }
}

.live-chat-new {
  transition: opacity .35s ease, transform .35s ease;
}

.chat-out {
  opacity: 0 !important;
  transform: translateY(-8px) scale(.98) !important;
  transition: opacity .25s ease, transform .25s ease;
}
