html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffd23f;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.stage {
  position: relative;
}

.ema {
  width: min(100%, 400px);
}

.ema__table {
  border-collapse: collapse;
}

.ema__wrap {
  padding: 0;
}

.ema__card {
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  overflow: hidden;
}

.ema__card td {
  padding: 4px 20px;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  -webkit-text-size-adjust: 100%;
  line-height: 1;
}

.ema__brand {
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
  letter-spacing: 0.02em;
  padding-top: 8px !important;
}

.ema__hero {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.ema__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(26px, 8vw, 34px);
  height: clamp(26px, 8vw, 34px);
  border-radius: 50%;
  background: #2f6df6;
  font-size: clamp(13px, 4vw, 16px);
  line-height: 1;
}

.ema__title {
  font-weight: 800;
  font-size: clamp(12px, 3.6vw, 14px);
  line-height: 1.25;
  font-family: inherit;
  color: #17141a;
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.ema__body {
  font-weight: 500;
  font-size: clamp(10px, 3vw, 11px);
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.62);
  padding-top: 0 !important;
  padding-bottom: 4px !important;
}

.ema__ctawrap {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
}

.ema__ctabtn {
  border-radius: 12px;
  background: #2f6df6;
}

.ema__cta {
  display: inline-block;
  padding: 4px 24px;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.6;
  font-family: inherit;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
}

.ema__footer {
  font-weight: 500;
  font-size: 8px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.ema__footer a {
  color: inherit;
}

.ema.is-dark .ema__card {
  background: #17141a;
}

.ema.is-dark .ema__title {
  color: #fff7e6;
}

.ema.is-dark .ema__body,
.ema.is-dark .ema__footer {
  color: rgba(255, 247, 230, 0.6);
}

.ema.is-dark .ema__brand {
  color: rgba(255, 247, 230, 0.7);
}

.ema.is-dark .ema__copybtn {
  color: rgba(255, 247, 230, 0.72);
}

@media (prefers-color-scheme: dark) {
  .ema__card {
    background: #17141a;
  }
  .ema__title {
    color: #fff7e6;
  }
  .ema__body, .ema__footer {
    color: rgba(255, 247, 230, 0.6);
  }
  .ema__brand {
    color: rgba(255, 247, 230, 0.7);
  }
  .ema__copybtn {
    color: rgba(255, 247, 230, 0.72);
  }
}
.ema-darktoggle {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #17141a;
  border: 1px solid rgba(255, 247, 230, 0.3);
  color: #fff7e6;
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 9px;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
  font-family: inherit;
}

.ema__copyrow {
  padding-top: 0 !important;
}

.ema__copybtn {
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 12px;
  padding: 4px 12px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  font-family: inherit;
  color: rgba(23, 20, 26, 0.72);
  cursor: pointer;
}

.ema.is-demo .ema__cta {
  animation: ema-stagger 2s ease-in-out infinite;
}

@keyframes ema-stagger {
  0%, 15% {
    letter-spacing: 0;
  }
  50%, 65% {
    letter-spacing: 3px;
  }
  100% {
    letter-spacing: 0;
  }
}
@media (max-width: 340px), (max-height: 220px) {
  .ema__card td {
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .ema__brand {
    padding-top: 0 !important;
    font-size: 9px !important;
  }
  .ema__hero {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .ema__badge {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .ema__title {
    font-size: 10px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .ema__body {
    font-size: 8px !important;
    padding-bottom: 0 !important;
  }
  .ema__ctawrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .ema__cta {
    padding: 0 20px !important;
  }
  .ema__footer {
    font-size: 7px !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
  .ema-darktoggle {
    font-size: 8px;
    padding: 0 8px;
    top: 4px;
    right: 4px;
  }
  .ema__detailtoggle, .ema__countdown, .ema__unreadrow, .ema__amount, .ema__copyrow, .ema__steprow {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    font-size: 9px !important;
  }
  .ema__li {
    padding: 0 12px !important;
    font-size: 9px !important;
  }
  .ema__track {
    margin-bottom: 0 !important;
  }
  .ema__copybtn {
    padding: 0 8px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ema.is-demo .ema__badge,
  .ema.is-demo .ema__fill,
  .ema.is-demo .ema__badge::after {
    animation: none !important;
  }
  .ema__detail, .ema__card, .ema__cta {
    transition: none;
  }
}
