@import url("https://fonts.googleapis.com/css2?family=Black+Han+Sans&display=swap");

/* ──────────────────────────────────────────────
   베이스
   갸루 = 흰색/크림 베이스 + 핫핑크 포인트.
   다크모드 아님.
────────────────────────────────────────────── */
html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  background: #fce8f0; /* 연핑크 베이스 */
  color: #1a1a1a;
}

/* ──────────────────────────────────────────────
   좌측 패널
────────────────────────────────────────────── */
aside {
  background: #fff;
  border-right: 2px solid #ffb3d1;
}

.panel-scroll::-webkit-scrollbar {
  width: 3px;
}
.panel-scroll::-webkit-scrollbar-track {
  background: #fff0f6;
}
.panel-scroll::-webkit-scrollbar-thumb {
  background: #ffb3d1;
  border-radius: 2px;
}

/* 타이틀 */
aside h1 {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1.25rem;
  color: #ff007f;
  text-shadow: 2px 2px 0 #ffb3d1;
  line-height: 1.2;
}

/* 구분선 */
aside hr {
  border-color: #ffe0ed;
}

/* STEP 라벨 */
.step-label {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ff007f;
  margin-bottom: 8px;
}

/* ──────────────────────────────────────────────
   배경 선택 버튼
────────────────────────────────────────────── */
.bg-btn {
  border: 2px solid #ffe0ed;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}

.bg-btn:hover {
  border-color: #ff007f;
}

.bg-btn.active {
  border-color: #ff007f !important;
  box-shadow: 0 0 0 3px #ff007f33;
}

/* ──────────────────────────────────────────────
   자막 선택 버튼
────────────────────────────────────────────── */
.cap-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #ffe0ed;
  background: #fff8fb;
  color: #1a1a1a;
  transition:
    border-color 0.15s,
    background 0.15s;
  cursor: pointer;
}

.cap-btn:hover {
  border-color: #ff007f;
  background: #fff0f6;
}

.cap-btn.active {
  border-color: #ff007f;
  background: #fff0f6;
  box-shadow: 0 0 0 3px #ff007f22;
}

/* ──────────────────────────────────────────────
   광고 영역
────────────────────────────────────────────── */
aside .ad-area {
  border: 1.5px dashed #ffb3d1;
  border-radius: 10px;
  background: #fff8fb;
  color: #ffb3d1;
}

/* ──────────────────────────────────────────────
   우측 캔버스 패널
────────────────────────────────────────────── */
main {
  background: #f9d5e6; /* 약간 더 진한 핑크 — 캔버스 뒤 공간 */
}

/* 캔버스 래퍼 테두리 — 데코 프레임 에셋이 들어올 자리 */
#canvas-wrap {
  border: 3px solid #ff007f;
  border-radius: 16px;
  box-shadow: 4px 4px 0 #ff007f66; /* 평면 드롭섀도 — 스티커 느낌 */
  overflow: hidden;
}

/* ──────────────────────────────────────────────
   플레이스홀더
────────────────────────────────────────────── */
#placeholder {
  position: absolute;
  inset: 0;
  z-index: 10;
  border-radius: 13px;
  background: #fff0f6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
}

.sample-caption {
  font:
    900 26px/1 "Arial Black",
    Arial,
    sans-serif;
  color: #fff;
  -webkit-text-stroke: 4px #000;
  text-shadow: 0 0 16px #ff007f;
  letter-spacing: -0.5px;
}

/* ──────────────────────────────────────────────
   카운트다운 오버레이
────────────────────────────────────────────── */
#countdown-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font:
    900 200px/1 "Arial Black",
    Arial,
    sans-serif;
  color: #fff;
  text-shadow:
    0 0 40px #ff007f,
    6px 6px 0 #000;
  background: rgba(255, 200, 220, 0.4);
  border-radius: 13px;
  pointer-events: none;
  z-index: 20;
}

/* ──────────────────────────────────────────────
   액션 버튼
────────────────────────────────────────────── */
#btn-start {
  background: #ff007f;
  color: #fff;
  box-shadow: 3px 3px 0 #cc0066; /* 평면 스티커 섀도 */
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

#btn-start:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #cc0066;
}

#btn-start:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #cc0066;
}

#btn-shoot {
  background: #ccff00;
  color: #000;
  box-shadow: 3px 3px 0 #88aa00;
  animation: bounce-yellow 1.8s ease-in-out infinite;
}

@keyframes bounce-yellow {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 3px 3px 0 #88aa00;
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 3px 6px 0 #88aa00;
  }
}

/* ──────────────────────────────────────────────
   하단 광고 배너
────────────────────────────────────────────── */
main > .ad-banner {
  border: 1.5px dashed #ff007f55;
  border-radius: 8px;
  background: #fff8fb;
  color: #ffb3d1;
}

/* ──────────────────────────────────────────────
   동의 오버레이 — 동의 전까지 서비스 전체를 덮음
────────────────────────────────────────────── */
#consent-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(252, 232, 240, 0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

#consent-box {
  background: #fff;
  border: 2px solid #ff007f;
  border-radius: 20px;
  padding: 40px 48px;
  max-width: 480px;
  width: 90%;
  box-shadow: 4px 4px 0 #ff007f66;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#consent-logo {
  font-family: "Black Han Sans", sans-serif;
  font-size: 1.1rem;
  color: #ff007f;
}

#consent-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.4;
}

#consent-desc {
  font-size: 0.87rem;
  color: #444;
  line-height: 1.8;
}

#consent-links {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
}

#consent-links a {
  color: #ff007f;
  text-decoration: underline;
}
#consent-links span {
  color: #ffb3d1;
}

#consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

#btn-agree {
  padding: 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  background: #ff007f;
  box-shadow: 3px 3px 0 #cc0066;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
  border: none;
}

#btn-agree:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #cc0066;
}

#btn-essential {
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.88rem;
  color: #999;
  background: #fff;
  border: 1.5px solid #ddd;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}

#btn-essential:hover {
  border-color: #aaa;
  color: #555;
}

#consent-notice {
  font-size: 0.75rem;
  color: #bbb;
  text-align: center;
}

/* ──────────────────────────────────────────────
   저장 확인 모달
────────────────────────────────────────────── */
#preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(252, 200, 220, 0.7);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

#preview-modal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#preview-label {
  font:
    900 1.4rem/1 "Black Han Sans",
    sans-serif;
  color: #ff007f;
  letter-spacing: 0.05em;
}

#preview-img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
  border: 3px solid #ff007f;
  box-shadow: 4px 4px 0 #cc0066;
}

#preview-actions {
  display: flex;
  gap: 12px;
  width: 420px;
}

#btn-save {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  color: #000;
  background: #ccff00;
  box-shadow: 3px 3px 0 #88aa00;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

#btn-save:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #88aa00;
}

#btn-retake {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  font-weight: 900;
  font-size: 1rem;
  color: #ff007f;
  background: #fff;
  border: 2px solid #ff007f;
  box-shadow: 3px 3px 0 #ffb3d1;
  cursor: pointer;
  transition:
    transform 0.1s,
    box-shadow 0.1s;
}

#btn-retake:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #ffb3d1;
}
