* { box-sizing: border-box; margin: 0; padding: 0; }
:root { --kakao: #FEE500; --kakao-ink: #3c1e1e; }

body {
  font-family: -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background: #000;
  color: #fff;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

/* 한 화면 고정 + 영상/오버레이 기준 */
.wrap {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

/* 영상: 자르지 않고 전체 표시(contain), 화면을 가득 채움 */
.wrap > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.sound-hint {
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  z-index: 3;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(4px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  animation: bob 1.4s ease-in-out infinite;
  cursor: pointer;
}

/* CTA: 영상 위에 덮는 하단 오버레이 */
.cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 20px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(0, 0, 0, .92) 50%, rgba(0, 0, 0, .45) 82%, transparent);
}

.badge {
  display: block;
  width: fit-content;
  margin: 0 auto 14px;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(4px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
}

.bubble {
  position: relative;
  width: fit-content;
  margin: 0 auto 14px;
  background: #fff;
  color: #111;
  font-weight: 800;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  animation: bob 1.4s ease-in-out infinite;
}
.bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

.kakao-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: var(--kakao);
  color: var(--kakao-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  border-radius: 12px;
}
.kakao-btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.kakao-btn:active { filter: brightness(.95); }
.k-logo { width: 20px; height: 20px; fill: var(--kakao-ink); }

.sub {
  text-align: center;
  color: #ddd;
  font-size: 13px;
  margin-top: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
}

/* ---------- 완료 페이지 ---------- */
.wrap.done { display: flex; justify-content: center; align-items: center; padding: 24px; }
.done-box { text-align: center; max-width: 360px; }
.done-box .check { font-size: 56px; margin-bottom: 12px; }
.done-box h1 { font-size: 24px; margin-bottom: 14px; }
.done-box p { color: #bbb; font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.done-box b { color: var(--kakao); }
.done-box .kakao-btn { width: auto; padding: 14px 28px; display: inline-flex; }
