body {
  background-color: #fff;
  margin: unset;
}
.prize-container,.prize-lose-container,.prize-duplicate-container {
  width: calc(100vw - 32px);
  max-width: 370px;
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.login-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px;
}
.event-box {
  display: flex;
  width: 100%;
  margin: 0 auto;
  height: 100%;
  justify-content: center;
}
.event-fade-mask {
  transition: 0.5s ease-out;
  width: 100%;
  z-index: 100000;
  position: fixed;
  left: 0;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
}
.prize-box {
  width: 100%;
  display: flex;
  justify-content: center;
}
.event-bg {
  position: relative;
  display: inline-block;
  max-width: 1024px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.roulette-component {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 2;
}
.event-container {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  z-index: 3;
}
.event-image {
  width: 58%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.roulette-arrow {
  position: absolute;
  transform: translateY(-170%);
  width: 100%;
  height: 20%;
  background-image: url("https://img.headless.co.kr/roulette/choice_image.svg");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.event-btn {
  position: absolute;
  width: 17%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}
.on {
  animation-name: ani;
  animation-duration: 0.1s;
  animation-fill-mode: forwards;
  animation-iteration-count: infinite;
}
.fixed {
  position: fixed;
}
.flex {
  display: flex;
}
.background {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  opacity: 0.8;
  z-index: 9999;
}
button {
  background: none;
  border: none;
}

.roulette-mask {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: #000;
  opacity: 0.8;
  z-index: 5;
}

.roulette-result {
  width: calc(80% - 40px);
  position: relative;
  transform: translate(13%, 10%);
  padding: 20px;
  background-color: #8c8c8c;
  border-radius: 6px;
  z-index: 10;
}

.prize-result {
  width: 100%;
  background-color: #FFFFFF;
  border-radius: 12px;
  z-index: 10;
}
.prize-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px;
}
.coupon-image-wrap {
  position: relative;
  width: 100%;
  color: red;
  text-align: center;
}
.coupon-image {
  width: 100%;
  border-radius: 8px;
}

.add-friends {
  display: flex;
  flex-direction: column;
}
.add-friends-result-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background-repeat: no-repeat;
  height: calc(100vw);
  background-size: cover;
  background-position: center;
  width: 100%;
}
.add-firends-image-wrap {
  width: 70%;
  margin-bottom: 0;
  margin-top: 80px;
}
.add-friends-text-wrap {
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.add-friends-text-wrap.disabled {
  display: none;
}
.add-friends-button {
  background: #FFE800;
  border-radius: 8px;
  width: 100%;
  color: #000000;
  font-size: 18px;
  font-weight: 500;
  padding: 12px 0;
  line-height: 26px;
}
.add-friends-text-wrap p {
  font-size: 20px;
  font-weight: 600;
  line-height: 32px;
  margin-top: 0;
  margin-bottom: 20px;
}
.add-friends-retry {
  font-size: 16px;
  z-index: 5;
  text-decoration: underline;
  margin-top: 16px;
}
body {
  font-family: "Pretendard"
}
.login {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 540px;
  margin: 0 auto;
}
.kakao-login-button:disabled {
  opacity: 0.6;
}
.kakao-login-button {
  background-color: rgb(252, 233, 54);
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  width: 100%;
  color: rgb(31, 24, 21);
}
.w-100 {
  width: 100%;
}
/*
 * 로그인 CTA 바.
 *
 * 🔴 종전에는 `position: fixed; bottom: 0` + `transform: translate(-50%, 0)` 이었다.
 * 안드로이드 크롬에서 **주소창이 접히거나 펼쳐지는 동안 fixed 하단 요소의 탭 영역이
 * 그려진 위치와 어긋나는** 문제가 있고(2026-08-25 실기기 제보: 버튼을 여러 번 눌러도 무반응,
 * 스크롤 후에야 눌렸다), `transform` 은 요소를 별도 레이어로 올려 그 어긋남을 키운다.
 * 게다가 `z-index` 가 없어 앞으로 포지션 요소가 하나만 추가돼도 즉시 가려진다.
 *
 * `sticky` 는 문서 흐름 안에 있으므로 그 문제가 구조적으로 없다.
 * 조상에 `overflow: hidden` 이 있으면 sticky 가 동작하지 않는데(그래서 `.login.login-sticky` 로
 * 그 페이지에서만 해제한다), **동작하지 않아도 평범한 인라인 버튼이 되어 탭은 정상**이다 —
 * 즉 실패 방향이 안전하다.
 */
.button-login-div {
  background-color: rgb(255 255 255 / 100%);
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 8px;
  border-top-left-radius: 8px;
  width: 100%;
  height: 74px;
  box-shadow: 0px -2px 9px 10px #09080908;
}
/* sticky 는 스크롤 조상이 `overflow: hidden` 이면 붙지 않는다. 로그인 화면에서만 해제한다
   (`.login` 은 kakaomap.html 도 쓰므로 공통 규칙을 건드리지 않는다). */
.login.login-sticky {
  overflow: visible;
}
.prize-precaution {
  display: flex;
  justify-content: center;
  white-space: pre-line;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.login-precaution {
  padding: 12px 16px;
  background-color: rgba(231, 241, 255, 1);
  border-radius: 12px;
  font-size: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 20px;
}
.login-button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.text-title {
  font-size: 20px;
  margin-bottom: 8px;
  font-weight: 600;
}
.text-description {
  font-size: 14px;
  line-height: 20px;
}

.callback {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  font-size: 20px;
}
.mt-10 {
  margin-top: 10px;
}

.additional-wrap,
.direct-text-wrap {
  max-width: 600px;
  margin: 40px auto auto auto;
  padding: 0 20px;
  color: rgba(125, 126, 130, 1);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.benefit-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
}
.direct-text-wrap {
  display: none;
}
.benefit-title-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding-top: 76px;
  padding-bottom: 16px;
}
.benefit-item-text {
  width: 100%;
  text-align: center;
  margin-bottom: 0;
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-top: 10px;
}
.benefit-price-text {
  width: 100%;
  color: white;
  text-align: center;
  font-size: 14px;
}
.benefit-subtitle {
  width: 100%;
  text-align: center;
  font-size: 14px;
  margin: 0;
  line-height: 20px;
  font-weight: 300;
}
.block-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
}
.block-wrap > div {
  width: 100%;
}
.headless-banner {
  top: 0;
  position: absolute;
  height: 38px;
  width: 100%;
  max-width: inherit;
  background-color: #4046e3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.headless-banner > img {
  height: 24px;
}

.roulette-spin {
  animation: spin 8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(4320deg);
  }
}

.kakao-coupon-image {
  margin-top: -20px;
}

.bounce {
  position: relative;
  -moz-animation: bounce 1.5s infinite ease-in-out;
  -webkit-animation: bounce 1.5s infinite ease-in-out;
  -o-animation: bounce 1.5s infinite ease-in-out;
  animation: bounce 1.5s infinite ease-in-out;
}

@keyframes bounce {
  50% {
    transform: translateY(0%);
  }
  70% {
    transform: translateY(-20%);
  }
  80% {
    transform: translateY(0%);
  }
  90% {
    transform: translateY(-12%);
  }
  100% {
    transform: translateY(0);
  }
}

.benefit-background-wrap {
  background-image: url("../assets/benefit_background.svg");
  background-position: center;
  background-size: cover;
  position: absolute;
  height: 254px;
  background-repeat: no-repeat;
  width: 100%;
  max-width: inherit;
  z-index: -1;
  top: 0;
}
.benefit-card {
  border-radius: 8px;
  background: #fff;
  box-shadow: 0px 4px 12.3px 0px rgba(0, 0, 0, 0.13);
  margin: 0 auto;
}

.description-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: rgba(125, 126, 130, 1);
  background-color: rgba(247, 247, 249, 1);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}

.barcode-image-wrap {
  text-align: center;
  display: none;
}
.barcode-image-wrap > img {
  height: 200px;
  margin: 0 auto;
  width: auto;
}
.employee-check-button {
  display: none;
}
.employee-disabled-button {
  display: none;
  background-color: #999;
  color: white;
  border-radius: 8px;
  height: 52px;
  width: 100%;
  font-weight: 500;
  font-size: 16px;
}
.active-button {
  background-color: rgba(18, 113, 255, 1);
  color: white;
  border-radius: 8px;
  height: 52px;
  width: 100%;
  font-weight: 500;
  font-size: 14px;
}

.employee-check-popup-wrap {
  width: 100%;
  inset: 0;
  height: 100vh;
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
}
.employee-password-popup-wrap {
  width: 100%;
  inset: 0;
  height: 100vh;
  display: none;
  position: fixed;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.2);
}
.employee-check-popup {
  width: 330px;
  border-radius: 16px;
  background-color: #EAECEF;
  box-shadow: 0px 4px 12.3px 0px rgba(0, 0, 0, 0.13);
  text-align: center;
}
.popup-title {
  font-weight: 600;
  line-height: 20px;
}
.popup-subtitle {
  color: #4046e3;
  font-size: 14px;
  line-height: 20px;
  margin-top: 0;
}
.popup-cancel {
  width: 35px;
  height: 35px;
}
.popup-code-box {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid #D8DDE3;
  background-color: #FFF;
  border-radius: 7px;
}
.popup-code-circle {
  width: 10px;
  height: 10px;
  border-radius: 180px;
  color: #474A4E;
  background-color: #000000;
}
.popup-number {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}
.popup-number > div {
  flex: 33%;
}
.popup-cancel-button {
  height: 46px;
  color: #939393;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.result-button-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}
.result-button-wrap .coupon-result-button {
  width: 100%;
  padding: 12px;
  background-color: #d3d3d3;
  font-size: 16px;
  border-radius: 6px;
}
.introduce-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 12px;
}
.event-introduce-wrap {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  left: 50%;
  bottom: 13%;
  width: 100%;
  transform: translate(-50%, 0);
  z-index: 4;
}
.introduce-button {
  text-decoration: underline;
  color: #999;
  font-size: 16px;
}
.introduce-content-wrap {
  width: 100%;
  margin-top: 12px;
  background-color: rgba(247, 247, 249, 1);
  margin-bottom: 120px;
  border-radius: 16px;
}

.introduce-title {
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
}
.introduce-content {
  padding: 0 16px;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 24px;
}
.num-code-box {
  color: black;
  display: none;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.prize-button {
  background-color: #ffea00;
  border-radius: 5px;
  height: 46px;
  width: 100%;
  font-weight: 600;
  font-size: 16px;
}
.delivery-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
input[type=text] {
  width: 100%;
  border: 1px solid #BCC2C9;
  border-radius: 4px;
  padding: 10px;
}
input[type=text]::placeholder {
  color: rgba(180, 182, 186, 1);
  font-size: 14px;
}
input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;

  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #fff;
  cursor: pointer;

  border: 2px solid #a1a7b1;

  display: grid;
  place-content: center;
  margin-right: 8px;

  /* 테두리 색상이 부드럽게 바뀌도록 애니메이션 추가 */
  transition: border-color 0.2s ease-in-out;
}

input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #1271FF;

  transform: scale(0); /* 기본은 숨김 */
  transition: 0.2s transform ease-in-out;
}

input[type="radio"]:checked {
  border-color: #1271FF;
}

input[type="radio"]:checked::before {
  transform: scale(1); /* 내부 점 표시 */
}

.spot-uid {
  padding: 16px;
  color: #ced4de;
  font-size: 12px;
  text-align: right;
}
.omoplay-header {
  display: none;
  justify-content: start;
  height: 20px;
  padding: 16px 18px;
}
.footer {
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  background-color: rgba(0, 0, 0, 0.04);
}
.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.fade-text {
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

:root{
  --size: 10px;         /* 동그라미 지름 */
  --gap: 8px;           /* 점 사이 간격 */
  --active: #2793FF;    /* 활성 색상 */
  --idle: #e5e7eb;      /* 기본 색상 */
  --interval: 0.3s;     /* 점마다 시작 간격 */
  --count: 3;           /* 점 개수(HTML <i> 개수와 동일) */
  --duration: calc(var(--count) * var(--interval)); /* 전체 주기 */
}

.dots{
  display:inline-flex;
  align-items:center;
  gap:var(--gap);
}

.dots i{
  width:var(--size);
  aspect-ratio:1 / 1;
  border-radius:50%;
  background:var(--idle);
  /* 각 점은 동일한 애니메이션을 돌리되 시작 시간만 다르게 */
  animation: shift var(--duration) infinite ease-in-out;
}

/* n번째 점은 (n-1)*interval 만큼 늦게 시작 */
.dots i:nth-child(1){ animation-delay: calc(0 * var(--interval)); }
.dots i:nth-child(2){ animation-delay: calc(1 * var(--interval)); }
.dots i:nth-child(3){ animation-delay: calc(2 * var(--interval)); }

/* 색이 앞에서 뒤로 '흘러가는' 느낌: 자기 차례일 때만 active 색 */
@keyframes shift{
  /* 기본은 idle */
  0%, 100% { background: var(--idle); }
  /* 자신의 '순번' 구간에서만 active 색 (약간의 머무름 주기) */
  10%, 40% { background: var(--active); }
}

/* 모션 최소화 환경 배려 */
@media (prefers-reduced-motion: reduce){
  .dots i{ animation: none; }
}

.ad-container {
  align-items: center;
  justify-content: space-around;
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.survey-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  overflow: hidden;
  width: 640px;
  max-width: 90vw;
  margin: 0 auto;
}
.survey-form {
  width: 100%;
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 24px 0;
  margin-top: 24px;
}
.survey-title {
  font-size: 20px;
  font-weight: 500;
  padding-left: 24px;
  margin-bottom: 12px;
}
.survey-description {
  padding-left: 24px;
  font-size: 16px;
  color: #a1a7b1
}
.survey-answer {
  padding: 0 24px;
  margin-right: 24px;
}
.survey-submit {
  width: 100%;
  margin-top: 24px;
}
.point-container {
  flex: 1;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  max-width: 540px;
  margin: 0 auto;
  gap: 64px;
}
.point-confirm-button {
  background-color: black;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: wheat;
}
.point-title {
  font-size: 30px;
  font-weight: 500;
  color: #1271FF;
}

.overlay-blur {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem; /* p-6 */
  background-color: rgba(0, 0, 0, 0.8);
  transition: all 300ms ease;
}
.overlay-title {
  font-size: 1.25rem;      /* text-xl */
  font-weight: 700;        /* font-bold */
  color: #ffffff;          /* text-white */
  margin-bottom: 0.5rem;   /* mb-2 */
  line-height: 1.25;       /* leading-tight */
}
.overlay-subtitle {
  font-size: 0.875rem;     /* text-sm */
  font-weight: 500;        /* font-medium */
  color: #e5e7eb;          /* text-gray-200 */
}