:root {
  --bg: #000000;
  --kakao: #fee500;
  --ink: #191919;
  --gold: #f5d76e;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  background: var(--bg);
  color: #fff;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  justify-content: center;
  overscroll-behavior: none;
}

.app {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: var(--bg);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.hero {
  position: relative;
  display: block;
  width: 100%;
  line-height: 0;
  text-decoration: none;
  padding-top: var(--safe-top);
  cursor: pointer;
  touch-action: manipulation;
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.hero:active {
  opacity: 0.96;
}

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px calc(22px + var(--safe-bottom));
  background: var(--bg);
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.55;
}

.kakao-btn {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 380px;
  min-height: 74px;
  padding: 12px 18px 12px 14px;
  border-radius: 18px;
  background: var(--kakao);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(254, 229, 0, 0.18);
  transition: transform 0.16s ease, filter 0.16s ease;
  touch-action: manipulation;
}

.kakao-btn:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.kakao-bubble {
  position: relative;
  flex: 0 0 48px;
  width: 48px;
  height: 42px;
  margin-right: 12px;
  background: var(--ink);
  border-radius: 18px 18px 18px 4px;
  display: grid;
  place-items: center;
}

.kakao-bubble::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: -5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  transform: rotate(18deg);
}

.kakao-bubble em {
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--kakao);
  line-height: 1;
}

.kakao-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 38px;
  margin-right: 12px;
  background: var(--ink);
  opacity: 0.92;
}

.kakao-text {
  flex: 1 1 auto;
  min-width: 0;
}

.kakao-text strong {
  display: block;
  font-size: clamp(17px, 5vw, 20px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.kakao-text span {
  display: block;
  margin-top: 3px;
  font-size: clamp(11px, 3.2vw, 13px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.kakao-chevron {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-left: 10px;
  border-right: 3px solid var(--ink);
  border-top: 3px solid var(--ink);
  transform: rotate(45deg);
}

@media (max-width: 360px) {
  .kakao-text span {
    white-space: normal;
  }
}

@media (min-width: 431px) {
  body {
    background: #050505;
  }

  .app {
    box-shadow: 0 0 0 1px rgba(245, 215, 110, 0.12);
  }
}
