@charset "utf-8";

/* ==========================================================================
   단감 부적 키링 증정 이벤트 — 반응형 퍼블리싱
   기준 시안 : 1440px (콘텐츠 1000px) / 모든 요소 크기 rem
   ========================================================================== */

/* ---------- Webfont : Pretendard ---------- */
@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardLight.otf") format("opentype"),
    url("../asset/font/PretendardLight.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardRegular.otf") format("opentype"),
    url("../asset/font/PretendardRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardMedium.otf") format("opentype"),
    url("../asset/font/PretendardMedium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardSemiBold.otf") format("opentype"),
    url("../asset/font/PretendardSemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardBold.otf") format("opentype"),
    url("../asset/font/PretendardBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Pretendard";
  src: url("../asset/font/PretendardExtraBold.otf") format("opentype"),
    url("../asset/font/PretendardExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --content: 62.5rem;
  /* 1000px */
  --wrap: 65rem;
  /* 1000px + 좌우 여백 20px */
  --gutter: 1.25rem;
  /* 20px  */
  --sec-pad: 8rem;
  /* 128px */

  --bg-dark: #353535;
  --bg-dark-2: #444;
  --bg-cream: #fbf6ef;
  --card-hero: #272727;

  --orange: #fe950a;
  --orange-btn: #ff7f00;
  --orange-deep: #fe570a;
  --success: #0f9d6e;

  --white: #fff;
  --ink: #202020;
  --muted: #999;
  --line-light: rgba(255, 255, 255, .28);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-pop: cubic-bezier(.34, 1.4, .64, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%
}

body {
  margin: 0;
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-weight: 400;
  color: var(--white);
  background: var(--bg-dark);
  line-height: 1.5;
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
dl,
dd,
dt,
ol,
ul,
figure {
  margin: 0
}

ol,
ul {
  padding: 0;
  list-style: none
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0
}

a {
  color: inherit;
  text-decoration: none
}

em,
i {
  font-style: normal
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

input {
  font: inherit
}

hr {
  border: 0;
  margin: 0
}

body,
td,
input,
textarea,
div,
th,
p,
a,
address ul,
h1,
h2,
h3,
h4,
h5,
h6,
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* 등록 성공 폭죽 : js/main.js 가 캔버스를 생성한다 (커서 잔상보다 위) */
.burst {
  position: fixed;
  inset: 0;
  /* canvas 는 교체 요소라서 폭·높이를 명시해야 화면을 덮는다 */
  width: 100%;
  height: 100%;
  z-index: 95;
  pointer-events: none;
}

/* 연필 커서 잔상 : js/main.js 가 캔버스를 생성한다
   모달(z-index 100) 보다 아래, 페이지 내용보다는 위 */
.pen-trail {
  position: fixed;
  inset: 0;
  /* canvas 는 교체 요소라서 inset:0 만으로는 늘어나지 않고
     고유 크기(300x150)를 유지한다. 폭·높이를 명시해야 화면을 덮는다. */
  width: 100%;
  height: 100%;
  z-index: 90;
  pointer-events: none;
}

/* ---------- 커서 ----------
   연필 커서 : 32x44 (@2x 64x88), 핫스팟은 연필 끝 (1 43)
   · 첫 줄은 image-set 미지원 브라우저용 폴백
   · 클릭 가능한 요소(button / .opt / .agree / a)는 기존 pointer 를 유지한다 */
body {
  cursor: url("../asset/img/cursor-pen-32.png") 1 43, auto;
  cursor: image-set(url("../asset/img/cursor-pen-32.png") 1x,
      url("../asset/img/cursor-pen-64.png") 2x) 1 43, auto;
}

/* 입력란은 캐럿을 유지한다 */
input[type="text"] {
  cursor: text
}

a:visited {
    color: #fff;
}

/* 터치 기기에서는 커서가 없으므로 다운로드하지 않도록 되돌린다 */
@media (hover: none) {
  body {
    cursor: auto
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout ---------- */
.page {
  overflow: hidden
}

.sec {
  padding: var(--sec-pad) 0
}

.inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec--hero {
  background: var(--bg-dark)
}

.sec--target {
  background: var(--bg-dark-2)
}

.sec--how {
  background: var(--bg-dark)
}

.sec--extra {
  background: var(--orange);
  color: var(--ink)
}

.sec--wish {
  background: var(--bg-dark)
}

.sec--apply {
  background: var(--white);
  color: var(--ink);
  padding: 0
}

.sec--notice {
  background: var(--bg-cream);
  color: #000
}

.grid {
  display: grid;
  gap: 1.5rem
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

/* ---------- 공통 타이틀 ---------- */
.eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--orange);
  text-align: center;
  margin-bottom: .6875rem;
}

.eyebrow--dark {
  color: var(--ink)
}

.eyebrow--brand {
  color: var(--orange)
}

.sec-title {
  text-align: center;
  line-height: 0
}

/* 타이틀 SVG : 외곽선 레이어 → 면 레이어 → 반짝임, 음절 그룹(.st__c) */
.st {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  /* 팝인 오버슈트가 잘리지 않도록 */
  overflow: visible;
  transform-origin: 50% 100%;
  transition: scale .35s var(--ease);
}

/* 모바일 전용 2줄 타이틀 이미지 (asset/img/mobile) : 기본은 SVG 를 쓰므로 숨긴다 */
.st-m-wrap {
  display: none
}

.st-m {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  transform-origin: 50% 100%;
}

/* 타이틀 좌·우 반짝임 : 데스크톱 SVG 의 .st__spark 를 모바일 이미지 옆에 재현한다
   (이미지에는 별이 들어 있지 않아 CSS 마스크로 같은 4각 별을 그린다) */
.st-m-spark {
  position: absolute;
  top: 50%;
  width: .8rem;
  height: .8rem;
  translate: 0 -50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 -12C1.7 -5 5 -1.7 12 0C5 1.7 1.7 5 0 12C-1.7 5 -5 1.7 -12 0C-5 -1.7 -1.7 -5 0 -12Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0 -12C1.7 -5 5 -1.7 12 0C5 1.7 1.7 5 0 12C-1.7 5 -5 1.7 -12 0C-5 -1.7 -1.7 -5 0 -12Z' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
}

.st-m-spark--l {
  --i: 0;
  right: 100%;
  margin-right: .2rem;
  background: var(--spark-l, var(--white));
}

.st-m-spark--r {
  --i: 1;
  left: 100%;
  margin-left: .2rem;
  background: var(--spark-r, var(--white));
}

/* 섹션별 별 색 : 데스크톱 SVG 의 fill 을 그대로 옮겼다 */
.sec--target .sec-title {
  --spark-l: var(--white);
  --spark-r: var(--orange)
}

.sec--how .sec-title {
  --spark-l: var(--orange);
  --spark-r: var(--white)
}

.sec--extra .sec-title {
  --spark-l: var(--white);
  --spark-r: var(--white)
}

.sec--wish .sec-title {
  --spark-l: var(--orange);
  --spark-r: var(--white)
}

.sec--apply .sec-title,
.sec--notice .sec-title {
  --spark-l: var(--orange);
  --spark-r: var(--orange)
}

/* ---------- 섹션 타이틀 : 히어로 타이틀과 같은 젤리 팝인 ----------
   히어로는 SVG 라 음절 단위로 나뉘지만, 나머지 타이틀은 이미지라
   통째로 같은 방식(아래에서 튀어오르며 squash&stretch)으로 처리한다 */
.js .sec-title.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

/* 음절 그룹 : 히어로 타이틀과 동일하게 한 글자씩 젤리처럼 튀어오른다
   외곽선 레이어와 면 레이어가 같은 --i 를 쓰므로 항상 함께 움직인다 */
.st__c {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.js .st__c {
  opacity: 0
}

.js .sec-title.is-in .st__c {
  animation: secTitlePop .58s var(--ease) calc(var(--d, 0s) + var(--i) * .03s) both
}

/* 반짝임 : 타이틀 주변 여백에서 각기 다른 타이밍으로 반복 */
.st__spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
}

.js .sec-title.is-in .st__spark,
.js .sec-title.is-in .st-m-spark {
  animation: htSpark 5.6s var(--ease) calc(1.1s + var(--i) * .42s) infinite both
}

.js .st-m-spark {
  opacity: 0
}

.js .sec-title.is-in .st {
  animation: htBob 4.6s ease-in-out 1.6s infinite
}

/* 이미지는 음절로 나눌 수 없으므로 통째로 한 번 튀어오른다 */
.js .st-m {
  opacity: 0
}

.full-img .st-m,
img.full-img {
  display: none;
}

/* 시안 실측 폭(원본 @2x 이미지의 1/2) */
.sec--target .sec-title .st {
  width: 46.5625rem
}

.sec--how .sec-title .st {
  width: 49.75rem
}

.sec--extra .sec-title .st {
  width: 60.5625rem
}

.sec--wish .sec-title .st {
  width: 62.5rem
}

.sec--apply .sec-title .st {
  width: 38.5625rem
}

.sec--notice .sec-title .st {
  width: 23.6875rem
}

.sec-title+.grid,
.sec-title+.wish,
.sec-title+.wish-write {
  margin-top: 3.25rem
}

.sec-title+.notice {
  margin-top: 6.25rem
}

.sec-sub {
  margin-top: 1.75rem;
  text-align: center;
  color: #202020;
  font-family: Pretendard;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.06rem;
}

.sec-sub--light {
  color: var(--white)
}

/* 모바일에서만 먹는 줄바꿈 (데스크톱에서는 그대로 흘린다) */
.br-m {
  display: none
}

.sec-sub+.grid,
.sec-sub+.wish,
.sec-sub+.wish-write {
  margin-top: 3rem
}

.footnote {
  margin-top: 2.25rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
  text-align: center;
}

.footnote--light {
  color: var(--muted)
}

.footnote--dark {
  color: #202020;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* ==========================================================================
   SECTION 1 · HERO
   ========================================================================== */
.hero__title {
  padding-top: .125rem;
  line-height: 0;
  text-align: center
}

/* ---------- 타이틀 SVG (.ht) ----------
   구조 : 외곽선 레이어(stroke) → 면 레이어(fill) → 반짝임
   음절 11개는 <defs> 의 path 를 두 레이어가 <use> 로 공유하고,
   같은 --i 값을 쓰므로 외곽선과 면이 항상 같이 움직인다 */
.ht {
  width: 56rem;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  /* 팝인 오버슈트 / 반짝임이 잘리지 않도록 */
  overflow: visible;
  transform-origin: 50% 100%;
  transition: scale .35s var(--ease);
}

/* 등장 연출을 음절 단위로 하므로 컨테이너 페이드는 끈다 (.reveal 은 트리거로만 사용) */
.js .hero__title.reveal {
  opacity: 1;
  transition: none;
  will-change: auto;
}

/* 음절 : 아래에서 젤리처럼 튀어오른다 */
.ht__c {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.js .ht__c {
  opacity: 0
}

.js .hero__title.is-in .ht__c {
  animation: htPop .62s var(--ease) both;
  animation-delay: calc(var(--i) * .05s);
}

/* 반짝임 : 각기 다른 타이밍으로 반복 */
.ht__spark {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  opacity: 0;
}

.js .hero__title.is-in .ht__spark {
  animation: htSpark 5.6s var(--ease) infinite both;
  animation-delay: calc(1.3s + var(--i) * .42s);
}

/* 상시 : 아주 미세한 보빙 (키링 floaty / 캐릭터 bob 과 같은 언어) */
.js .hero__title.is-in .ht {
  animation: htBob 4.6s ease-in-out 1.6s infinite
}

/* ---------- 히어로 등장 연출 ----------
   첫 화면 : 타이틀(0s) → 부적(.28s) → 캐릭터(.58/.7s)
   카드·정보표는 PC 에서 첫 화면 아래에 있어 스크롤로 등장하므로,
   시퀀스에 맞춘 긴 지연 대신 짧은 지연으로 바로 반응하게 둔다.
   각 요소는 등장 애니메이션이 끝나는 시점에 기존 상시 애니메이션
   (sway / bob / floaty)으로 넘어간다 : 두 번째 애니메이션의 지연시간을
   첫 번째가 끝나는 시각에 맞추고, 키프레임 0% 를 등장 종료 상태와 같게 둔다 */

/* 컨테이너는 트리거로만 쓰고, 실제 등장은 자식이 각각 처리한다 */
.js .hero__illust.reveal {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

/* 정보 표 : 빈 테두리만 먼저 보이면 어색하므로 틀 → 행 순으로 이어 붙인다 */
.js .spec.reveal {
  transform: none;
  transition: none;
  will-change: auto;
}

.js .spec.is-in {
  animation: specFrame .45s var(--ease) .04s both
}

.js .hero__illust .hero__amulet,
.js .hero__illust .hero__char,
.js .hero__card .keyring,
.js .hero__card .hero__copy p,
.js .spec .spec__row {
  opacity: 0
}

/* 부적 : 끈에 매달린 듯 위에서 내려와 흔들림으로 이어진다 */
.js .hero__illust.is-in .hero__amulet {
  animation: amuletDrop .95s var(--ease) .28s both,
    sway 5.2s ease-in-out 1.23s infinite;
}

/* 캐릭터 : 아래에서 통 튀어오른 뒤 보빙으로 이어진다 */
.js .hero__illust.is-in .hero__char--1 {
  animation: charHop .64s var(--ease) .58s both,
    bob 3.4s ease-in-out 1.22s infinite;
}

.js .hero__illust.is-in .hero__char--2 {
  animation: charHop .64s var(--ease) .7s both,
    bob 3.9s ease-in-out 1.34s infinite;
}

/* 키링 : 위에서 떨어져 좌우로 한 번 흔들린 뒤 floaty 로 이어진다
   (기울기는 transform 에 있으므로 rotate / translate 프로퍼티로 애니메이션한다) */
.js .hero__card.is-in .keyring--yellow {
  animation: keyDrop .72s var(--ease) .16s both,
    floaty 5s ease-in-out .88s infinite;
}

.js .hero__card.is-in .keyring--purple {
  animation: keyDrop .72s var(--ease) .26s both,
    floaty 5s ease-in-out .98s infinite;
}

/* 카드 문구 : 두 문단이 살짝 시차를 두고 올라온다 */
.js .hero__card.is-in .hero__copy p {
  animation: heroCopy .52s var(--ease) both
}

.js .hero__card.is-in .hero__copy p:first-child {
  animation-delay: .1s
}

.js .hero__card.is-in .hero__copy p+p {
  animation-delay: .2s
}

/* 이벤트 정보 : 행 단위로 순차 등장 */
.js .spec.is-in .spec__row {
  animation: specRow .55s var(--ease) both
}

.js .spec.is-in .spec__row:nth-child(1) {
  animation-delay: .1s
}

.js .spec.is-in .spec__row:nth-child(2) {
  animation-delay: .18s
}

.js .spec.is-in .spec__row:nth-child(3) {
  animation-delay: .26s
}

.js .spec.is-in .spec__row:nth-child(4) {
  animation-delay: .34s
}

/* 부적 + 캐릭터 그룹 : 시안 좌표 기준 절대배치 (비율 유지) */
.hero__illust {
  position: relative;
  width: 51.97rem;
  /* 831.5px */
  max-width: 100%;
  aspect-ratio: 831.5/700;
  margin: 1.6875rem auto 0;
}

.hero__illust>img {
  position: absolute;
  max-width: none
}

.hero__amulet {
  position: absolute;
  left: -7.7%;
  top: 0;
  width: 98.98%;
  transform-origin: 52% 4%;
  animation: sway 5.2s ease-in-out infinite;
}

.hero__amulet-img {
  width: 100%
}

/* ---------- 부적 문구 SVG (.amt) ----------
   위치는 원본 부적 이미지에서 실측한 문구 영역 (1646x1400 기준
   x778~1272 / y602~953) 을 비율로 옮긴 값 */
.amt {
  position: absolute;
  left: 47.266%;
  top: 43%;
  width: 30.073%;
  height: auto;
  overflow: visible;
}

/* 줄 단위로 도장처럼 찍히며 등장
   부적이 페이드인하는 구간(.28~.8s)에 맞춰 같이 나타나야 빈 부적이 보이지 않는다 */
.amt__line {
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.js .amt__line {
  opacity: 0
}

.js .hero__illust.is-in .amt__line {
  animation: amtLine .42s var(--ease) both;
  animation-delay: calc(.4s + var(--i) * .07s);
}

/* 직감 / 단감 / 이감 : 한 번에 하나씩 오렌지로 물들며 살짝 커진다 */
.amt__key {
  /* 확대 폭은 화면 크기에 따라 조정한다 (모바일은 글자가 작아 더 크게) */
  --amt-pop: 1.08;
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

.js .hero__illust.is-in .amt__key {
  animation: amtKey 6s var(--ease) infinite;
  animation-delay: calc(1.5s + var(--i) * .6s);
}

.hero__char {
  position: absolute;
  z-index: 2;
  transform-origin: 50% 100%;
}

/* 기본 / hover 이미지를 같은 칸에 겹쳐 둔다 (교차 페이드) */
.hero__char--1,
.hero__char--2 {
  display: grid;
  place-items: center;
}

.hero__char-img {
  grid-area: 1 / 1;
  width: 100%;
  transition: opacity .35s var(--ease);
}

/* hover 이미지는 기본적으로 항상 숨김 (미디어쿼리와 무관하게 보장) */
.hero__char-img--hover {
  opacity: 0
}

/* 응원 말풍선 : 말풍선 이미지를 배경으로 쓰고 텍스트만 얹는다
   꼬리가 아래쪽에 있는 그림이므로 캐릭터의 위쪽 옆에 놓아 꼬리가 캐릭터를 향한다
   폭은 2줄 텍스트가 타원 안에 들어가는 최소치(약 143px)에 여유를 둔 값 */
.hero__cheer {
  position: absolute;
  bottom: 72%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 10.75rem;
  aspect-ratio: 1024 / 822;
  /* 상하 패딩을 같게 둬야 글자가 타원 중앙에 온다
     (padding 의 % 는 상하도 '폭' 기준으로 계산되고,
      말풍선 몸통의 세로 중심은 이미지 높이의 49.3% 로 거의 정중앙이다) */
  padding: 9%;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  background: url("../asset/img/bubble-left.png") no-repeat center / 100% 100%;
  opacity: 0;
  scale: .9;
  pointer-events: none;
  transition: opacity .32s var(--ease), translate .32s var(--ease-pop),
    scale .32s var(--ease-pop);
}

/* 캐릭터1 : 왼쪽 위 · 꼬리가 오른쪽 아래를 향한다
   꼬리 끝(말풍선 박스의 84% / 100% 지점)이 머리 왼쪽 위에 살짝 걸치도록 잡은 값.
   · right 를 더 키우면(왼쪽으로) 꼬리가 머리에서 떨어져 허공을 가리킨다
   · bottom 을 더 키우면(위로) 꼬리가 머리 위로 벗어난다
   캐릭터2(.hero__cheer--right, bottom:72%) 보다는 머리가 높아 조금 더 올려 둔다 */
.hero__char--1 .hero__cheer {
  right: 63%;
  bottom: 77%;
  transform-origin: 100% 100%;
  translate: .625rem .375rem;
}

/* 캐릭터2 : 오른쪽 위 · 꼬리가 왼쪽 아래를 향한다 */
.hero__cheer--right {
  left: 80%;
  background-image: url("../asset/img/bubble-right.png");
  transform-origin: 0 100%;
  translate: -.625rem .375rem;
}

/* hover 효과는 PC 에서만 (터치 기기 · 태블릿 제외)
   1080px 미만에서는 말풍선이 화면 좌·우로 잘린다 */
@media (hover: hover) and (min-width: 1080px) {

  /* .is-auto : 부적 강조 순환의 빈 구간에 js 가 번갈아 붙여 주는 클래스
     (hover 와 완전히 같은 상태를 공유한다) */
  .hero__char:hover .hero__char-img--base,
  .hero__char.is-auto .hero__char-img--base {
    opacity: 0
  }

  .hero__char:hover .hero__char-img--hover,
  .hero__char.is-auto .hero__char-img--hover {
    opacity: 1
  }

  .hero__char:hover .hero__cheer,
  .hero__char.is-auto .hero__cheer {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* 그 외 화면에서는 렌더링 자체를 막아 이미지 다운로드까지 아낀다
   (이 쿼리를 못 읽는 브라우저에서도 위의 opacity:0 으로 이미 감춰져 있다) */
@media not all and (hover: hover) and (min-width: 1080px) {

  .hero__char-img--hover,
  .hero__cheer {
    display: none
  }
}

.hero__char--1 {
  left: 3.61%;
  top: 56.79%;
  width: 29.88%;
  animation: bob 3.4s ease-in-out infinite;
}

.hero__char--2 {
  left: 72.7%;
  top: 58.36%;
  width: 27.3%;
  animation: bob 3.9s ease-in-out .4s infinite;
}

/* 안내 카드 */
.hero__card {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 17.5rem;
  margin-top: 2.25rem;
  padding: 1.5rem 3.75rem 1.5rem 7rem;
  background: var(--card-hero);
  border-radius: 1.875rem;
}

.hero__keyrings {
  position: relative;
  flex: 0 0 auto;
  width: 14.5rem;
  height: 13.125rem;
}

.keyring {
  position: absolute;
  top: -0.2125rem;
  width: 9rem;
  filter: drop-shadow(0 .5rem 1rem rgba(0, 0, 0, .45));
  /* 기울기는 transform 에 고정하고, 흔들림은 translate 로 따로 준다 */
  animation: floaty 5s ease-in-out infinite;
}

/* 시안 : 노랑이 뒤 / 보라가 앞, 서로 반대 방향으로 기울어진다 */
.keyring--yellow {
  left: 0;
  z-index: 2;
  transform: rotate(3deg);
}

.keyring--purple {
  left: 5.625rem;
  z-index: 1;
  transform: rotate(2deg);
  animation-delay: .6s;
}

.hero__copy p {
  color: #fff;
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.08rem;
}

.hero__copy p+p {
  margin-top: 1.6875rem
}

.hero__copy em {
  font-weight: 700;
  color: var(--orange)
}

/* 이벤트 정보 테이블 */
.spec {
  margin-top: 3rem;
  border-top: .125rem solid var(--white);
  border-bottom: .125rem solid var(--white)
}

.spec__row {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  align-items: baseline;
  padding: 1.5rem 0 1.5rem;
}

.spec__row+.spec__row {
  border-top: 1px solid var(--line-light)
}

.spec__row dt {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5
}

.spec__val {
  color: white;
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.08rem;
}

.spec__note {
  margin-top: 0.5rem;
  color: #999;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

/* ---------- 카드 등장 ----------
   hover 의 transform 을 막지 않도록 translate / scale 프로퍼티로 애니메이션한다
   (transform 을 both 로 채우면 :hover 의 transform 이 무시된다) */
.js .tcard.reveal,
.js .hcard.reveal,
.js .pcard.reveal,
.js .wish-write.reveal,
.js .wish.reveal {
  opacity: 0;
  /* reveal--up 의 슬라이드는 끄고(아래 cardIn 이 대신한다),
     hover 용 트랜지션은 살려 둔다 */
  transform: none;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  transition-delay: 0s;
  will-change: auto;
}

.js .tcard.is-in,
.js .hcard.is-in,
.js .pcard.is-in,
.js .wish-write.is-in,
.js .wish.is-in {
  animation: cardIn .62s var(--ease) var(--d, 0s) both
}

/* ==========================================================================
   SECTION 2 · 대상 안내
   ========================================================================== */
.grid--target {
  align-items: stretch
}

.tcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.375rem 1.75rem 1.75rem;
  background: var(--bg-dark);
  border-radius: 1.5rem;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.tcard:hover {
  transform: translateY(-.5rem);
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .35)
}

.pill {
  display: inline-block;
  padding: .3125rem 1rem;
  color: white;
  font-size: 1rem;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
  border: 1px solid var(--white);
  border-radius: 6.25rem;
}

.tcard__thumb {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 17.5rem;
  margin: 1.0625rem 0 2.5rem;
}

.tcard__thumb img {
  transition: transform .5s var(--ease)
}

/* 배지와 상품 이미지는 카드가 자리를 잡은 뒤 한 박자 늦게 강조된다 */
.js .tcard .pill,
.js .tcard__thumb img {
  opacity: 0
}

.js .tcard.is-in .pill {
  animation: pillPop .5s var(--ease) calc(var(--d, 0s) + .18s) both
}

.js .tcard.is-in .tcard__thumb img {
  animation: thumbPop .6s var(--ease) calc(var(--d, 0s) + .26s) both,
    drift 5.4s ease-in-out calc(var(--d, 0s) + .9s) infinite;
}

.tcard:nth-child(1) .tcard__thumb img {
  width: 26.8125rem
}

.tcard:nth-child(2) .tcard__thumb img {
  width: 20.125rem
}

.tcard:hover .tcard__thumb img {
  transform: scale(1.04)
}

.tcard__lead {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.08rem;
  text-align: center;
}

.tcard__lead em {
  color: var(--orange)
}

.tcard__note {
  width: 100%;
  margin-top: 1rem;
  padding-top: 1.25rem;
  color: #FFF;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
  text-align: center;
  border-top: 1px solid #999;
}

/* ==========================================================================
   SECTION 3 · 참여 방법
   ========================================================================== */
.hcard {
  padding: 2.25rem 1.75rem 2rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 2.5rem;
}

.hcard__title {
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.08rem;
  text-align: center;
}

.hcard__title em {
  padding: 0 .0625rem;
  background: linear-gradient(to top, var(--orange) 40%, transparent 40%);
}

.steps {
  margin-top: 1.9375rem;
  text-align: center
}

.step+.step {
  margin-top: .75rem
}

.step__badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  align-items: center;
  border-radius: 62.5rem;
  color: var(--white);
  background: var(--orange);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.03rem;
}

.step__name {
  margin-top: .5rem;
  color: #353535;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: -0.06rem;
}

.step__sub {
  margin-top: .125rem;
  color: #999;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.step__list {
  margin-top: .375rem;
  color: #999;
  text-align: center;
  font-size: 1rem;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.step__list li::before {
  content: "•";
  margin-right: .25rem;
  font-size: 1.25rem;
  color: #aaa
}

/* steps 순차 등장 */
.js .reveal .step {
  opacity: 0;
  transform: translateY(.625rem)
}

.js .reveal.is-in .step {
  animation: stepIn .5s var(--ease) forwards;
  animation-delay: calc(.2s + var(--i) * .09s);
}

/* ==========================================================================
   SECTION 4 · 추가 이벤트
   ========================================================================== */
.pcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.75rem 2.375rem;
  background: var(--white);
  border-radius: 2.5rem;
  /* 등장(cardIn)은 translate/scale 을 쓰므로 hover 는 transform 을 그대로 쓸 수 있다 */
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.pcard:hover,
.pcard.is-preview {
  transform: translateY(-.625rem);
  /* 오렌지 배경 위이므로 그림자도 따뜻한 톤으로 */
  box-shadow: 0 1.5rem 2.75rem rgba(120, 60, 0, .25);
}

/* 기본 / hover 이미지를 같은 그리드 칸에 겹쳐 두고 교차 페이드한다
   .is-preview : 카드가 처음 등장할 때 js 가 1회성으로 붙여 주는 클래스
   (hover 와 완전히 같은 스타일을 공유한다) */
.pcard__thumb {
  display: grid;
  place-items: end center;
  min-height: 21.5rem;
}

.pcard__img {
  grid-area: 1 / 1;
  width: 23rem;
  animation: bob 4.2s ease-in-out infinite;
  transition: opacity .4s var(--ease), scale .45s var(--ease);
}

.pcard:nth-child(2) .pcard__img {
  width: 19.3125rem;
  animation-delay: .5s
}

.pcard__img--hover {
  opacity: 0
}

.pcard:hover .pcard__img--base,
.pcard.is-preview .pcard__img--base {
  opacity: 0
}

.pcard:hover .pcard__img--hover,
.pcard.is-preview .pcard__img--hover {
  opacity: 1
}

.pcard:hover .pcard__img,
.pcard.is-preview .pcard__img {
  scale: 1.05
}

.pcard__title {
  margin-top: .5rem;
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.4;
  transition: scale .4s var(--ease);
}

/* 밑줄 형태의 형광펜 → 강조 시 글자 위아래로 넘치게 채워 스티커처럼 보이게 한다
   · 글자색은 진하게 유지 (흰 글씨는 오렌지 위에서 대비 2.2:1 로 오히려 안 보인다)
   · 그림자 대신 살짝 키워서 강조한다 (scale 을 쓰려면 inline-block 필요) */
.pcard__title em {
  color: #202020;
  display: inline-block;
  padding: .0625rem .375rem;
  font-size: 2rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.08rem;
  border-radius: .25rem;
  background: linear-gradient(var(--orange), var(--orange)) no-repeat bottom / 100% 38%;
  transition: background-size .42s var(--ease), scale .42s var(--ease-pop);
}

.pcard:hover .pcard__title,
.pcard.is-preview .pcard__title {
  scale: 1.05
}

.pcard:hover .pcard__title em,
.pcard.is-preview .pcard__title em {
  background-size: 100% 118%;
  scale: 1.05;
}

.pcard__desc {
  color: #202020;
  margin-top: .5rem;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.06rem;
  font-weight: 500;
  transition: color .3s var(--ease);
}

.pcard:hover .pcard__desc,
.pcard.is-preview .pcard__desc {
  color: var(--orange-deep)
}

/* ==========================================================================
   SECTION 5 · 다짐 남기기
   상태 분기
     · 로그인 여부 : section[data-logged-in="true|false"]
   ========================================================================== */
.sec--wish[data-logged-in="true"] .login {
  display: none
}

.sec--wish[data-logged-in="false"] .wish-write,
.sec--wish[data-logged-in="false"] .wish {
  display: none
}

/* ---------- 작성 카드 ---------- */
.wish-write {
  /* .reveal 의 will-change 로 카드마다 스태킹 컨텍스트가 생기므로,
     프로필 팝오버가 아래 리스트 카드에 가리지 않도록 순서를 고정한다 */
  position: relative;
  z-index: 2;
  padding: 1.1875rem 1.125rem 1.1875rem 1.375rem;
  background: var(--white);
  color: var(--ink);
  border-radius: 0.5rem;
  transition: box-shadow .3s var(--ease);
}

.wish-write:focus-within {
  box-shadow: 0 0 0 .125rem rgba(254, 149, 10, 1);
}

.wish__form {
  display: flex;
  align-items: center;
  gap: .6875rem;
}

/* ---------- 로그인 회원 프로필 · 클릭하면 이미지 선택 ---------- */
.wish__profile {
  position: relative;
  flex: 0 0 auto;
}

/* 변경 가능함을 알리는 배지 */
.wish__profile::before,
.wish__profile::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

/* 배지는 아바타(:hover 시 확대) 위에 그려져야 한다 */
.wish__profile::before {
  z-index: 1
}

.wish__profile::after {
  z-index: 2
}

/* 원형 배지
   ※ 배지와 화살표는 rem 대신 px 을 쓴다. 소수점 rem 값은 루트 폰트 크기(15px/13.5px)와
     기기 배율에 따라 각 변이 따로 반올림되어 삼각형이 찌그러진다. */
.wish__profile::before {
  right: -2px;
  bottom: -2px;
  width: 20px;
  height: 20px;
  background: var(--orange);
  border: 2px solid var(--white);
  border-radius: 50%;
}

/* 화살표 : 폰트 글리프 대신 삼각형으로 그려 작은 크기에서도 또렷하다
   목록이 열리면 위를 향하도록 뒤집힌다 (.is-open 은 main.js 가 토글) */
.wish__profile::after {
  right: 4px;
  bottom: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--white);
  transition: transform .25s var(--ease);
}

.wish__profile.is-open::after {
  transform: rotate(180deg)
}

.wish__me {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  padding: 0;
  background: #f1f1f1;
  border-radius: 50%;
  overflow: hidden;
  transition: transform .15s var(--ease-pop), box-shadow .15s var(--ease);
}

.wish__me img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.wish__me:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .55);
}

.wish__me:focus-visible,
.wish__me[aria-expanded="true"] {
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .55)
}

/* 프로필 선택 팝오버 */
.picker {
  position: absolute;
  top: calc(100% + .75rem);
  left: -.5rem;
  z-index: 20;
  width: max-content;
  padding: .875rem;
  background: var(--white);
  border-radius: .875rem;
  box-shadow: 0 .75rem 1.75rem rgba(0, 0, 0, .26);
  transform-origin: 15% 0;
  animation: pickerIn .22s var(--ease-pop) both;
}

.picker[hidden] {
  display: none
}

/* 말꼬리 */
.picker::before {
  content: "";
  position: absolute;
  top: -.28125rem;
  left: 1.5rem;
  width: .625rem;
  height: .625rem;
  background: var(--white);
  border-radius: .0625rem;
  transform: rotate(45deg);
}

.picker__title {
  margin-bottom: .625rem;
  font-size: .8125rem;
  font-weight: 700;
  color: #6b6b6b;
}

.picker__list {
  display: grid;
  grid-template-columns: repeat(6, 2.75rem);
  gap: .5rem;
}

.picker__item {
  display: block;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: #f1f1f1;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 .125rem transparent;
  transition: transform .2s var(--ease-pop), box-shadow .2s var(--ease);
}

.picker__item img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.picker__item:hover {
  transform: scale(1.08)
}

.picker__item:focus-visible {
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .55)
}

.picker__item.is-on {
  box-shadow: 0 0 0 .1875rem var(--orange)
}

.wish__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.875rem;
  padding: 0 .25rem;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.06rem;
  color: #353535;
  background: none;
  border: 0;
  outline: 0;
}

.wish__input::placeholder {
  color: #B7B7B7;
}

.wish__submit {
  flex: 0 0 auto;
  display: flex;
  padding: 1rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  background: #FE950A;
  color: #353535;
  font-family: Pretendard;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.05rem;
  transition: transform .25s var(--ease-pop), background .25s var(--ease);
}

.wish__submit:hover {
  transform: translateY(-.125rem);
  background: var(--orange-btn)
}

.wish__submit:active {
  transform: scale(.98)
}

/* ---------- 다짐 리스트 카드 ---------- */
.wish {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 1.5rem 0;
  background: var(--white);
  color: var(--ink);
  border-radius: 0.5rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .22);
}

.wish__list {
  max-height: 25rem;
  padding: 0 1.75rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: #d5d5d5 transparent;
}

.wish__list::-webkit-scrollbar {
  width: .375rem
}

.wish__list::-webkit-scrollbar-thumb {
  background: #d8d8d8;
  border-radius: 6.25rem
}

.wish__list::-webkit-scrollbar-track {
  background: transparent
}

.wish__item {
  display: flex;
  gap: .5rem;
  padding: 0 0 1.5rem 0;
}

.wish__item:last-child {
  padding: 0;
}

.wish__avatar {
  flex: 0 0 auto;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #f1f1f1;
  overflow: hidden;
}

.wish__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.wish__name {
  color: #353535;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.04rem;
}

.wish__text {
  color: #353535;
  margin-top: .125rem;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.06rem;
  word-break: break-all;
  overflow-wrap: break-word;
}

.wish__item--new {
  animation: wishIn .55s var(--ease) both
}

.wish__item--new .wish__text {
  animation: flash 1.6s ease-out .2s both
}

/* ---------- 다짐이 없을 때 기본 문구 ---------- */
.wish__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 3.5rem 1rem;
  text-align: center;
}

.wish__empty-title {
  color: var(--ink);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.06rem;
}

.wish__empty-sub {
  color: #8a8a8a;
  font-size: 1.125rem;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.045rem;
}

/* ---------- 안내 메시지 ---------- */
/* 메시지가 없을 때는 높이를 차지하지 않고, 뜰 때만 폼 아래 여백이 생긴다 */
.wish__msg {
  --msg-color: var(--orange-deep);
  /* 기본(경고) */
  display: flex;
  align-items: center;
  gap: .4375rem;
  max-height: 0;
  overflow: hidden;
  line-height: 1.5;
  font-size: 1rem;
  font-weight: 500;
  color: var(--msg-color);
  opacity: 0;
  transform: translateY(-.25rem);
  transition: opacity .3s var(--ease), transform .3s var(--ease),
    max-height .3s var(--ease), margin-top .3s var(--ease);
}

/* 앞머리 뱃지 : 경고는 !, 성공은 체크 */
.wish__msg::before {
  content: "!";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 1.125rem;
  height: 1.125rem;
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: var(--msg-color);
  border-radius: 50%;
}

.wish__msg.is-show {
  max-height: 6rem;
  margin-top: .75rem;
  padding-left: .25rem;
  opacity: 1;
  transform: none
}

/* 등록 완료 메시지 */
.wish__msg--success {
  --msg-color: var(--success);
  font-weight: 600;
}

.wish__msg--success::before {
  content: "\2713"
}

.wish__msg--success.is-show::before {
  animation: badgePop .45s var(--ease-pop) both
}

/* ---------- 이벤트 종료 : section[data-closed="true"] ----------
   · 로그인 여부와 관계없이 작성 카드 + 리스트를 블러로 깔고 종료 안내를 띄운다
   · 블러 영역은 inert / aria-hidden 으로 클릭 · 포커스 · 낭독을 모두 막는다
   · .event-end 는 SECTION 6 신청 폼에서도 함께 쓴다 (.event-end--apply) */
.sec--wish[data-closed="true"] .login {
  display: none
}

.sec--wish[data-closed="true"] .wish-write,
.sec--wish[data-closed="true"] .wish {
  display: block
}

.event-end {
  position: relative;
  min-height: 22rem;
  margin-top: 3rem
}

.event-end__blur {
  filter: blur(.375rem);
  opacity: .55;
  pointer-events: none;
  user-select: none
}

.event-end__notice {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem
}

.event-end__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 26rem;
  padding: 2rem 2rem 2.25rem;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, .3)
}

.event-end__char {
  width: 7.5rem;
  height: auto
}

.event-end__badge {
  margin-top: 1rem;
  padding: .3125rem .875rem;
  background: #fce1c2;
  color: var(--orange-deep);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06rem;
  border-radius: 6.25rem
}

.event-end__title {
  margin-top: .875rem;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.06rem
}

.event-end__desc {
  margin-top: .5rem;
  color: #666;
  font-size: 1.125rem;
  line-height: 140%;
  letter-spacing: -0.04rem
}

/* ---------- 비로그인 ---------- */
.sec--wish .login {
  margin-top: 3rem
}

.sec--wish .login__char {
  margin-top: 1.25rem
}

.sec--wish .login__char img {
  width: 20.125rem;
}

/* ==========================================================================
   SECTION 6 · 신청하기
   ========================================================================== */
.sec--apply .inner {
  padding-top: var(--sec-pad);
  padding-bottom: var(--sec-pad)
}

/* ---------- 상태 분기 ---------- */
/* 로그인 여부 */
.sec--apply[data-logged-in="true"] .login {
  display: none
}

.sec--apply[data-logged-in="false"] .apply {
  display: none
}

/* 이벤트 종료 : 로그인 / 다짐 작성 여부와 관계없이 블러 처리된 폼 + 종료 안내 (.event-end 는 SECTION 5 참고) */
.sec--apply[data-closed="true"] .login {
  display: none
}

.sec--apply[data-closed="true"] .apply {
  display: block
}

/* 폼이 길어서 가운데 정렬하면 안내가 화면 밖에 걸리므로 위쪽에 둔다 */
.event-end--apply {
  margin-top: 0
}

.event-end--apply .event-end__notice {
  align-items: flex-start;
  padding-top: 7rem
}

.event-end--apply .event-end__card {
  border: 1px solid #f1e3d2
}

/* 구매 상품(온라인용 / 학원용) */
.apply[data-product="online"] [data-when="academy"],
.apply[data-product="academy"] [data-when="online"] {
  display: none
}

.apply {
  margin-top: 4.25rem
}

.field+.field {
  margin-top: 4.5rem
}

.field__label {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #444;
  font-size: 2rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.08rem;
}

.step-no {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  /* .field__label 의 line-height:130%(=2.6rem)가 상속되면 숫자가 아래로 밀린다 */
  line-height: 1;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
}

.field__desc {
  margin-top: .5rem;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
  color: #444;
}

/* 상품 선택 */
.opts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem;
  margin-top: 1.875rem;
}

.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 10.3125rem;
  padding: 1.5rem 1rem;
  border: 1px solid #e5e5e5;
  border-radius: .875rem;
  cursor: pointer;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}

.opt:hover {
  transform: translateY(-.1875rem)
}

.opt:focus-within {
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .35)
}

.opt input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.opt__head {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.06rem;
  color: #c8c8c8;
  transition: color .3s var(--ease);
}

.opt__radio {
  position: relative;
  width: 1.5rem;
  height: 1.5rem;
  border: .125rem solid #d4d4d4;
  border-radius: 50%;
  transition: border-color .3s var(--ease);
}

.opt__radio::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.8375rem;
  height: 0.8375rem;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .28s var(--ease-pop);
}

.opt__body {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.opt__body img {
  width: 7.34375rem;
  opacity: .35;
  transition: opacity .3s var(--ease);
}

.opt:nth-child(2) .opt__body img {
  width: 5.375rem
}

.opt__name {
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: -0.06rem;
  color: #c8c8c8;
  transition: color .3s var(--ease);
}

.opt.is-on {
  border-color: var(--ink)
}

.opt.is-on .opt__head,
.opt.is-on .opt__name {
  color: var(--ink)
}

.opt.is-on .opt__radio {
  border-color: var(--ink)
}

.opt.is-on .opt__radio::after {
  transform: translate(-50%, -50%) scale(1)
}

.opt.is-on .opt__body img {
  opacity: 1
}

/* ---------- 품절 : .opt 에 is-soldout 만 추가하면 된다 ----------
   · 클릭 차단은 pointer-events + js 의 input.disabled 로 이중 처리
   · 기본 선택 상품이 품절이면 js 가 다른 상품으로 기본값을 옮긴다 */
.opt.is-soldout {
  /* 내부 컨텐츠는 계속 이벤트에서 제외하고, 커서만 딤(::after)에서 받는다 */
  cursor: no-drop;
  pointer-events: none;
}

/* pointer-events:none 이면 커서 모양도 무시되므로, 카드 전체를 덮는 딤에서만
   이벤트를 되살려 커서를 보여준다. (라디오가 disabled 라 클릭해도 선택되지 않는다) */
.opt.is-soldout::after {
  pointer-events: auto;
  cursor: no-drop;
}

/* 딤이 이벤트를 받으면서 hover 가 걸리므로 리프트 효과는 끈다 */
.opt.is-soldout:hover {
  transform: none
}

/* 품절 상품은 선택될 수 없으므로 이미지를 원래 밝기로 두고 딤으로만 가린다 */
.opt.is-soldout .opt__body img {
  opacity: 1
}

.opt.is-soldout::after {
  content: "SOLD OUT";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1;
  color: var(--white);
  /* 흰 글자 + 어두운 외곽선 (paint-order 미지원 시 획이 안쪽으로 들어간다) */
  -webkit-text-stroke: .125rem #202020;
  paint-order: stroke fill;
  background: rgba(53, 53, 53, .5);
  border-radius: inherit;
}

/* 구매 정보 */
.rows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.1875rem 0;
  margin-top: 2.625rem;
}

.row {
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem
}

.row__key {
  flex: 0 0 auto;
  width: 12.5rem;
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.row__val {
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.row--input {
  grid-column: 1/-1;
  margin-top: 1.25rem
}

/* 학원명 / 재원생 이름 입력 안내 (입력칸 바로 아래, 입력칸 시작 위치에 맞춤) */
.row__note {
  grid-column: 1/-1;
  margin: calc(-3.1875rem + .5rem) 0 0;   /* .rows 의 row-gap 상쇄 후 .5rem 간격 */
  padding-left: 13.25rem;                 /* .row__key 너비 12.5rem + gap .75rem */
  color: var(--orange-deep);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.05rem;
}

/* 필수 입력 표시 */
.row__req {
  margin-left: .125rem;
  font-style: normal;
  color: var(--orange-deep);
}

.input {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0.25rem;
  border: 1px solid #444;
  height: 3.125rem;
  padding: 0 1rem;
  color: var(--ink);
  background: var(--white);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
  outline: 0;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.input::placeholder {
  color: #bbb
}

.input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 .125rem rgba(254, 149, 10, .2)
}

/* 미입력 항목 강조 */
.row--input.is-invalid .input {
  border-color: var(--orange-deep);
  background: rgba(254, 87, 10, .06);
  animation: nudge .4s var(--ease);
}

/* 학원용 배송비 안내 : 3번 항목 상단 */
.apply-note {
  display: flex;
  align-items: flex-start;
  gap: .625rem;
  margin-top: 1.625rem;
  padding: 0.625rem 1rem;
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
  border-radius: 0.25rem;
  border: 1px solid #FFE1B9;
  background: #FBF6EF;
}

.apply-note span {
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.apply-note__ic {
  flex: 0 0 auto;
  width: 1.375rem;
  height: 1.375rem;
  margin-top: .1875rem;
}

/* 동의 */
.agrees {
  margin-top: 1.5rem
}

.agrees li+li {
  margin-top: 1.625rem
}

.agree {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  cursor: pointer
}

.agree input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0
}

.agree__box {
  position: relative;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border: .09375rem solid #4a4a4a;
  border-radius: .25rem;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}

/* 체크 아이콘 : 박스보다 살짝 큰 체크가 위로 겹쳐 나온다 */
.agree__box::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1875rem;
  /* 19px */
  height: .9375rem;
  /* 15px */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='15' viewBox='0 0 19 15' fill='none'%3E%3Cpath d='M6.30645 8.9L0.5 4.76087L6.30645 14.5L18.5 0.5L6.30645 8.9Z' fill='%23444444'/%3E%3Cpath d='M0.5 4.76087L0.790232 4.35373C0.597614 4.21642 0.335131 4.23288 0.161176 4.39318C-0.012778 4.55347 -0.0505996 4.81374 0.0705349 5.01692L0.5 4.76087ZM6.30645 8.9L6.01622 9.30714L6.30155 9.51054L6.5901 9.31175L6.30645 8.9ZM18.5 0.5L18.877 0.82839C19.0425 0.638406 19.0408 0.354985 18.873 0.167034C18.7052 -0.0209172 18.4238 -0.0546814 18.2163 0.0882462L18.5 0.5ZM6.30645 14.5L5.87699 14.756C5.95906 14.8937 6.10215 14.9837 6.26178 14.998C6.42141 15.0123 6.57823 14.9492 6.68349 14.8284L6.30645 14.5ZM0.5 4.76087L0.209768 5.16801L6.01622 9.30714L6.30645 8.9L6.59668 8.49286L0.790232 4.35373L0.5 4.76087ZM6.30645 8.9L6.5901 9.31175L18.7837 0.911754L18.5 0.5L18.2163 0.0882462L6.0228 8.48825L6.30645 8.9ZM18.5 0.5L18.123 0.17161L5.92941 14.1716L6.30645 14.5L6.68349 14.8284L18.877 0.82839L18.5 0.5ZM6.30645 14.5L6.73592 14.244L0.929465 4.50482L0.5 4.76087L0.0705349 5.01692L5.87699 14.756L6.30645 14.5Z' fill='%23444444'/%3E%3C/svg%3E") no-repeat center/contain;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .25s var(--ease-pop);
}

.agree input:checked+.agree__box {
  border-color: var(--ink)
}

.agree input:checked+.agree__box::after {
  transform: translate(-50%, -50%) scale(1)
}

.agree input:focus-visible+.agree__box {
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .4)
}

.agree__txt {
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.06rem;
}

.agree__txt i {
  color: var(--orange-deep);
}

.agree__txt a {
  color: #444;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.06rem;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}

/* 미동의 항목 강조 */
.agree.is-invalid .agree__box {
  border-color: var(--orange-deep);
  background: rgba(254, 87, 10, .08)
}

.agree.is-invalid {
  animation: nudge .4s var(--ease)
}

/* 버튼 */
.btn,
.btn:link {
  margin: 4.1875rem auto 0;
  display: flex;
  width: 20rem;
  max-width: 100%;
  height: 3.9rem;
  padding: 1rem 1.5rem;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  font-size: 1.5rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 130% !important;
  letter-spacing: -0.06rem;
  border-radius: 6.25rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.btn--primary {
  background: var(--orange-btn)
}

.btn--primary:hover {
  transform: translateY(-.1875rem);
  background: #ff8f1f;
  box-shadow: 0 .75rem 1.5rem rgba(255, 127, 0, .35);
}

.btn--primary:active {
  transform: translateY(0) scale(.98)
}

/* 비로그인 */
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5.9375rem
}

.login__tip {
  position: relative;
  padding: .5625rem 1.25rem;
  font-weight: 700;
  color: #444;
  text-align: center;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.06rem;
  background: #fce1c2;
  border-radius: 0.625rem;
  animation: tip 2.8s ease-in-out infinite;
}

.login__tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.4375rem;
  width: .875rem;
  height: .875rem;
  background: #fce1c2;
  border-radius: .125rem;
  transform: translateX(-50%) rotate(45deg);
}

.login__char {
  margin-top: 2.375rem
}

.login__char img {
  width: 20.125rem;
  animation: bob 3.6s ease-in-out infinite
}

.login .btn {
  margin-top: 1.4375rem
}

/* ==========================================================================
   SECTION 7 · 안내사항
   ========================================================================== */
.notice {
  color: #000;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.notice__group+.notice__group {
  margin-top: 1.25rem
}

.notice__group h3 {
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

/* ■ 글리프는 폰트에 따라 모서리가 둥글게 보이므로 각진 사각형을 직접 그린다 */
.notice__group h3::before {
  content: "";
  display: inline-block;
  width: .75rem;
  height: .75rem;
  margin-right: .25rem;
  background: currentColor;
  border-radius: 0;
  vertical-align: .0625rem;
}

.notice__group p {
  color: #000;
  font-family: Pretendard;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.04rem;
}

.notice__group p em {
  color: var(--orange-deep);
  font-weight: 700
}

.notice__ol {
  counter-reset: n
}

.notice__ol li {
  counter-increment: n
}

.notice__ol li::before {
  content: counter(n);
  display: inline-grid;
  place-items: center;
  width: .9375rem;
  height: .9375rem;
  margin-right: .3125rem;
  font-size: .6rem;
  font-weight: 400;
  /* .notice 의 line-height:130% 는 1.3rem 이라는 "길이"로 상속되므로,
     0.9375rem 짜리 원 안에서 숫자가 아래로 밀린다 */
  line-height: 1;
  color: var(--bg-cream);
  background: #000;
  border-radius: 50%;
  /* inline-grid 의 합성 베이스라인은 브라우저마다 다르므로 middle 로 고정한다 */
  vertical-align: middle;
}

/* ==========================================================================
   개인정보 안내 모달
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  /* 모바일 주소창 높이까지 반영 (미지원 브라우저는 inset:0 사용) */
  height: 100dvh;
  z-index: 100;
  /* grid + auto 트랙은 패널 폭(40rem)에 맞춰 트랙이 늘어나
     max-width:100% 가 화면이 아닌 트랙 기준이 되어 좁은 화면에서 잘린다 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem var(--gutter);
}

.modal[hidden] {
  display: none
}

body.is-modal-open {
  overflow: hidden
}

.modal__dim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .62);
  animation: fadeIn .25s var(--ease) both;
}

.modal__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  /* 컨테이너(=화면 - padding) 안에 반드시 들어오도록 */
  flex: 0 1 40rem;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 2rem 2rem 1.75rem;
  color: var(--ink);
  background: var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .35);
  animation: modalIn .32s var(--ease-pop) both;
}

.modal__title {
  flex: 0 0 auto;
  padding-bottom: 1.125rem;
  border-bottom: .125rem solid var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.4;
}

.modal__body {
  flex: 1 1 auto;
  /* 패널이 화면 높이에 걸릴 때 본문이 줄어들며 스크롤되도록 */
  min-height: 0;
  margin-top: 1.25rem;
  padding-right: .625rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #444;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
  letter-spacing: -0.02rem;
  outline: 0;
}

.modal__body p,
.modal__group p {
  color: #444;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 130%;
}

.modal__group {
  margin-top: 1.375rem
}

.modal__group h3 {
  margin-bottom: .25rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.modal__list li {
  position: relative;
  padding-left: .6875rem;
}

.modal__list li::before {
  content: "-";
  position: absolute;
  left: 0;
}

.modal__group .modal__note {
  margin-top: .5rem;
  color: var(--orange-deep);
}

/* ---------- 얼럿형 모달 ---------- */
.modal--alert .modal__panel {
  flex: 0 1 26rem;
  padding: 1.5rem;
  text-align: center;
}

.alert__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  background: var(--orange-deep);
  border-radius: 50%;
  animation: badgePop .45s var(--ease-pop) both;
}

.alert__icon::before {
  content: "!"
}

.modal--success .alert__icon {
  background: var(--success)
}

.modal--success .alert__icon::before {
  content: "\2713"
}

.alert__title {
  flex: 0 0 auto;
  margin-top: 1.125rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--ink);
}

.modal--alert .modal__body {
  margin-top: .625rem;
  padding-right: 0;
  font-size: .9375rem;
  line-height: 1.65;
}

/* showAlert({text}) 의 개행(\n)을 그대로 줄바꿈으로 보여준다 */
.alert__text {
  white-space: pre-line
}

.alert__text[hidden],
.alert__list[hidden] {
  display: none
}

.alert__list {
  margin-top: .875rem;
  text-align: left;
}

.alert__list li {
  position: relative;
  padding: .625rem .875rem .625rem 1.75rem;
  font-weight: 500;
  color: var(--ink);
  background: #f5f5f5;
  border-radius: .5rem;
}

.alert__list li+li {
  margin-top: .375rem
}

.alert__list li::before {
  content: "\2022";
  position: absolute;
  left: .8125rem;
  font-weight: 700;
  color: var(--orange-deep);
}

/* 얼럿 버튼 영역
   · 기본  : [확인] 1개 (기존과 동일하게 가운데 정렬)
   · .modal--pair : [닫기] + [구매하러 가기] 2개를 반반으로 나눠 놓는다 */
.modal__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
  gap: .625rem;
}

.modal__ok {
  flex: 0 0 auto;
  width: 14rem;
  max-width: 100%;
  height: 3.25rem;
  margin: 1.5rem auto 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--white);
  background: var(--orange-btn);
  border-radius: .625rem;
  transition: transform .25s var(--ease-pop), background .25s var(--ease);
}

.modal__ok:hover {
  transform: translateY(-.125rem);
  background: var(--orange-deep);
}

.modal__ok:active {
  transform: translateY(0) scale(.98)
}

.modal__ok:focus-visible {
  box-shadow: 0 0 0 .1875rem rgba(254, 149, 10, .45)
}

/* 보조 버튼(닫기) : [확인] 과 같은 형태 / 톤만 낮춘다 */
.modal__cancel {
  flex: 0 0 auto;
  width: 14rem;
  max-width: 100%;
  height: 3.25rem;
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #666;
  background: #f1f1f1;
  border-radius: .625rem;
  transition: transform .25s var(--ease-pop), background .25s var(--ease);
}

.modal__cancel:hover {
  transform: translateY(-.125rem);
  background: #e6e6e6;
}

.modal__cancel:active {
  transform: translateY(0) scale(.98)
}

.modal__cancel:focus-visible {
  box-shadow: 0 0 0 .1875rem rgba(120, 120, 120, .35)
}

/* 버튼 2개일 때는 좌우 auto 마진을 풀고 폭을 나눈다 */
.modal--pair .modal__cancel,
.modal--pair .modal__ok {
  flex: 1 1 0;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem) scale(.97)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes sway {

  0%,
  100% {
    transform: rotate(-1.3deg)
  }

  50% {
    transform: rotate(1.3deg)
  }
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-.5rem)
  }
}

@keyframes floaty {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -.4375rem
  }
}

@keyframes tip {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-.3125rem)
  }
}

@keyframes secTitlePop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.9, 1.1)
  }

  50% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05, .94)
  }

  74% {
    transform: translateY(2px) scale(.99, 1.02)
  }

  100% {
    opacity: 1;
    transform: none
  }
}

@keyframes cardIn {
  0% {
    opacity: 0;
    translate: 0 1.75rem;
    scale: .96
  }

  62% {
    opacity: 1;
    translate: 0 -.25rem;
    scale: 1.012
  }

  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1
  }
}

@keyframes pillPop {
  0% {
    opacity: 0;
    scale: .8
  }

  60% {
    opacity: 1;
    scale: 1.06
  }

  100% {
    opacity: 1;
    scale: 1
  }
}

@keyframes thumbPop {
  0% {
    opacity: 0;
    translate: 0 .75rem;
    scale: .94
  }

  60% {
    opacity: 1;
    translate: 0 -.1875rem;
    scale: 1.02
  }

  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1
  }
}

/* 아주 느린 부유 : 상품 이미지가 정지된 느낌을 없앤다 */
@keyframes drift {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -.5rem
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(.625rem)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes amtLine {
  from {
    opacity: 0;
    transform: scale(1.09)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes amtKey {

  0%,
  100% {
    fill: #2E2E2E;
    scale: 1
  }

  3% {
    fill: var(--orange);
    scale: var(--amt-pop)
  }

  8% {
    fill: var(--orange);
    scale: 1.02
  }

  14% {
    fill: #2E2E2E;
    scale: 1
  }
}

@keyframes amuletDrop {
  0% {
    opacity: 0;
    transform: translateY(-3.5rem) rotate(-5deg)
  }

  55% {
    opacity: 1;
    transform: translateY(.375rem) rotate(2.6deg)
  }

  80% {
    transform: translateY(-.125rem) rotate(-2deg)
  }

  100% {
    opacity: 1;
    /* sway 의 0% 와 같은 값으로 끝내 자연스럽게 이어진다 */
    transform: translateY(0) rotate(-1.3deg)
  }
}

@keyframes charHop {
  0% {
    opacity: 0;
    transform: translateY(1.875rem) scale(.86, 1.12)
  }

  55% {
    opacity: 1;
    transform: translateY(-.5rem) scale(1.06, .94)
  }

  78% {
    transform: translateY(.1875rem) scale(.98, 1.02)
  }

  100% {
    opacity: 1;
    transform: none
  }
}

@keyframes keyDrop {
  0% {
    opacity: 0;
    translate: 0 -2rem;
    rotate: -12deg
  }

  55% {
    opacity: 1;
    translate: 0 .1875rem;
    rotate: 7deg
  }

  80% {
    rotate: -3.5deg
  }

  100% {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg
  }
}

@keyframes heroCopy {
  from {
    opacity: 0;
    transform: translateY(.625rem)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes specFrame {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes specRow {
  from {
    opacity: 0;
    transform: translateY(.875rem)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes htPop {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(.84, 1.14)
  }

  50% {
    opacity: 1;
    transform: translateY(-7px) scale(1.07, .91)
  }

  72% {
    transform: translateY(3px) scale(.97, 1.04)
  }

  88% {
    transform: translateY(-1px) scale(1.01, .99)
  }

  100% {
    opacity: 1;
    transform: none
  }
}

@keyframes htSpark {

  0%,
  100% {
    opacity: 0;
    scale: .2;
    rotate: -20deg
  }

  5% {
    opacity: 1;
    scale: 1.1;
    rotate: 0deg
  }

  12% {
    opacity: .95;
    scale: .88;
    rotate: 8deg
  }

  20% {
    opacity: 0;
    scale: .35;
    rotate: 18deg
  }
}

@keyframes htBob {

  0%,
  100% {
    translate: 0 0
  }

  50% {
    translate: 0 -.1875rem
  }
}

@keyframes pickerIn {
  from {
    opacity: 0;
    transform: translateY(-.375rem) scale(.96)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes wishIn {
  from {
    opacity: 0;
    transform: translateY(-1rem)
  }

  to {
    opacity: 1;
    transform: none
  }
}

@keyframes flash {
  0% {
    background: rgba(254, 149, 10, .35)
  }

  100% {
    background: transparent
  }
}

@keyframes nudge {

  0%,
  100% {
    transform: translateX(0)
  }

  25% {
    transform: translateX(-.25rem)
  }

  75% {
    transform: translateX(.25rem)
  }
}

@keyframes badgePop {
  from {
    transform: scale(.4)
  }

  to {
    transform: none
  }
}

@keyframes swapIn {
  from {
    opacity: 0;
    transform: translateY(.5rem)
  }

  to {
    opacity: 1;
    transform: none
  }
}

/* 상품 전환 시 변경 영역만 부드럽게 */
.apply.is-swapping [data-when] {
  animation: swapIn .38s var(--ease) both
}

/* 스크롤 등장 (JS 사용 가능할 때만 숨김 처리) */
.js .reveal {
  opacity: 0;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.js .reveal--up {
  transform: translateY(2.25rem)
}

.js .reveal--pop {
  transform: translateY(1.25rem) scale(.94)
}

.js .reveal.is-in {
  opacity: 1;
  transform: none
}

/* reveal--pop : 등장이 끝난 뒤 hover 하면 살짝 떠오른다
   등장 애니메이션이 transform 을 쓰므로, 충돌하지 않도록
   리프트는 translate 프로퍼티로 따로 처리한다 */
.reveal--pop {
  transition: translate .28s var(--ease)
}

.js .reveal--pop {
  transition: opacity .8s var(--ease), transform .8s var(--ease),
    translate .28s var(--ease);
  transition-delay: var(--d, 0s), var(--d, 0s), 0s;
}

.reveal--pop:hover,
.js .reveal--pop.is-in:hover {
  translate: 0 -.25rem
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width:1080px) {
  html {
    font-size: 15px
  }
}

@media (max-width:920px) {
  html {
    font-size: 14px
  }

  :root {
    --sec-pad: 6rem
  }

  .hero__card {
    gap: 1.5rem;
    padding: 1.5rem 2rem
  }

  .spec__row {
    grid-template-columns: 9.5rem minmax(0, 1fr)
  }
}

/* ==========================================================================
   모바일 (360px 시안 기준)
   · 타이포 / 카드 내부 이미지는 시안 실측값(데스크톱의 1/2)을 따른다
   · 단, font-size 하한은 .75rem(= 11.25px). 시안이 그보다 작더라도
     이 값 아래로는 쓰지 않는다 (가독성)
   ========================================================================== */
@media (max-width:767px) {
  html {
    font-size: 15px
  }

  :root {
    /* 360px 시안 기준 : 상하 여백 56px, 좌우 여백 16px */
    --sec-pad: 3.75rem;
    --gutter: 1.0625rem
  }

  .grid--2 {
    grid-template-columns: minmax(0, 1fr)
  }

  /* ---------- 타이틀 : 모바일 전용 2줄 이미지로 교체 (asset/img/mobile) ----------
     데스크톱 SVG 는 1줄 조판이라 좁은 화면에서 글자가 과하게 작아진다 */
  .eyebrow {
    font-size: .75rem;
    margin-bottom: .5625rem
  }

  .sec-title .st {
    display: none
  }

  /* 별(.st-m-spark)의 기준이 되도록 이미지와 같은 폭의 래퍼를 쓴다 */
  .st-m-wrap {
    position: relative;
    display: inline-block;
    vertical-align: top;
  }

  .st-m {
    display: block;
    width: 100%
  }

  /* 시안 실측 폭 : 360px 시안의 콘텐츠 폭(328px) 대비 % */
  .sec--target .st-m-wrap {
    width: 91%
  }

  .sec--how .st-m-wrap {
    width: 97.5%
  }

  .sec--extra .st-m-wrap {
    width: 65%
  }

  .sec--wish .st-m-wrap {
    width: 97.5%
  }

  .sec--apply .st-m-wrap {
    width: 75.5%
  }

  .sec--notice .st-m-wrap {
    width: 46.5%
  }

  .grid {
    gap: .75rem
  }

  .sec-title+.grid,
  .sec-title+.wish,
  .sec-title+.wish-write {
    margin-top: 1.5rem
  }

  .sec-title+.notice {
    margin-top: 2.875rem
  }

  .sec-sub+.grid,
  .sec-sub+.wish,
  .sec-sub+.wish-write {
    margin-top: 1.25rem
  }

  .footnote {
    margin-top: 1.375rem;
    font-size: .75rem
  }


  .steps {
    margin-top: .75rem;
  }

  /* HERO */
  /* 모바일도 같은 SVG 를 쓴다 (폭만 모바일 시안 크기로) */
  .ht {
    width: 74%
  }

  /* SVG 가 데스크톱의 27% 로 줄면서 반짝임까지 같이 작아진다. 별만 다시 키운다.
     · 배율은 별을 감싼 <g>(translate 를 가진 쪽)가 아니라 <use> 에 준다.
       개별 scale 프로퍼티는 transform 속성보다 나중에 곱해져서,
       <g> 에 걸면 translate 좌표까지 1.85배가 되어 별이 밖으로 밀려난다.
     · .ht__spark 는 이미 transform-box:fill-box / origin 50% 50% 라
       transform 과 애니메이션의 scale 이 같은 중심에서 곱해진다 */
  .ht__spark {
    transform: scale(1.85)
  }

  .hero__illust {
    width: 82.5%;
    margin-top: .5rem
  }

  /* 부적 문구가 80px 폭으로 작아지므로 확대 폭을 키운다
     (색 변화는 크기와 무관하게 보이므로 순환 자체는 유지) */
  .amt__key {
    --amt-pop: 1.16
  }

  /* 안내 카드 : 시안처럼 키링 좌측 / 텍스트 우측 가로 배치 */
  .hero__card {
    gap: .875rem;
    min-height: 6.25rem;
    margin-top: 1.5rem;
    padding: .875rem 1rem .875rem .25rem;
    border-radius: 1.25rem;
  }

  .hero__keyrings {
    width: 3.8333rem;
    height: 3.5rem
  }

  .keyring {
    top: .1875rem;
    width: 2rem;
    filter: drop-shadow(0 .1875rem .375rem rgba(0, 0, 0, .45))
  }

  .keyring--yellow {
    left: 1rem
  }

  .keyring--purple {
    left: 2.0625rem
  }

  .hero__copy p {
    font-size: .9333rem
  }

  .hero__copy p+p {
    margin-top: .5rem
  }

  .spec {
    margin-top: 1.25rem
  }

  /* 라벨 / 내용 2단 유지 */
  .spec__row {
    grid-template-columns: 5.875rem minmax(0, 1fr);
    gap: 0;
    padding: .8125rem 0
  }

  .spec__row dt {
    font-size: .75rem
  }

  .spec__val {
    font-size: 1.0667rem;
  }

  .spec__note {
    margin-top: 0.25rem;
    font-size: .75rem
  }

  /* 대상 안내 */
  .tcard {
    padding: 1.5rem 1.125rem
  }

  .tcard__thumb {
    min-height: 0;
    margin: .875rem 0 1rem
  }

  /* 데스크톱 규칙(.tcard:nth-child(n) …)이 더 구체적이므로 같은 형태로 덮는다 */
  .tcard:nth-child(1) .tcard__thumb img {
    width: 72.5%
  }

  .tcard:nth-child(2) .tcard__thumb img {
    width: 54.5%
  }

  .pill {
    padding: .2344rem .75rem;
    font-size: .75rem
  }

  .tcard__lead {
    font-size: 1.0667rem
  }

  .tcard__note {
    margin-top: .5333rem;
    padding-top: .6667rem;
    font-size: .75rem
  }

  /* 참여 방법 */
  .hcard {
    padding: 1.5rem 1.125rem 1.75rem;
    border-radius: 1.25rem
  }

  .hcard__title {
    font-size: 1.0667rem;
  }

  .step__badge {
    padding: .25rem .5rem;
    font-size: .625rem;
  }

  .step__name {
    margin-top: .2667rem;
    font-size: .875rem
  }

  .step__sub {
    font-size: .75rem
  }

  .step__list,
  .step__list li {
    font-size: .75rem
  }

  .step__list li {
    display: block
  }

  /* 추가 이벤트 */
  .pcard {
    padding: 1.25rem 1.125rem 1.5rem;
    border-radius: 1.25rem
  }

  .pcard__thumb {
    min-height: 0
  }

  .pcard__img {
    width: 62.5%
  }

  .pcard:nth-child(2) .pcard__img {
    width: 52.5%
  }

  .pcard__title {
    font-size: .75rem
  }

  .pcard__title em {
    font-size: 1.25rem
  }

  .pcard__desc {
    font-size: .875rem
  }

  .br-m {
    display: inline
  }

  .sec-sub {
    font-size: .875rem;
    margin-top: .75rem
  }

  /* 다짐 : PC 레이아웃(작성 카드 + 리스트 카드) 유지 */
  .wish-write {
    padding: .75rem .75rem .75rem .875rem;
    border-radius: .5rem
  }

  .wish__form {
    gap: .625rem
  }

  .wish__me {
    width: 2rem;
    height: 2rem
  }

  .wish__profile::before {
    width: 16px;
    height: 16px
  }

  .wish__profile::after {
    right: 3px;
    bottom: 4px;
    border-left-width: 3px;
    border-right-width: 3px;
    border-top-width: 3px
  }

  .picker {
    padding: .75rem
  }

  .picker__list {
    grid-template-columns: repeat(5, 2.5rem);
    gap: .4375rem
  }

  .picker__item {
    width: 2.5rem;
    height: 2.5rem
  }

  .wish__input {
    height: 1.6667rem;
    font-size: .875rem;
    padding: 0 .125rem
  }

  .wish__submit {
    width: 6.3333rem;
    height: 1.6667rem;
    padding: 0 .5rem;
    font-size: .875rem;
    border-radius: .2667rem
  }

  .wish {
    margin-top: .625rem;
    padding: 1.125rem 0;
    border-radius: .5rem
  }

  .wish__list {
    max-height: 20rem;
    padding: 0 1rem
  }

  .wish__item {
    gap: .75rem;
    padding: 0 0 1.25rem 0
  }

  .wish__avatar {
    width: 2rem;
    height: 2rem
  }

  .wish__name {
    font-size: .875rem
  }

  .wish__text {
    font-size: .875rem
  }

  .wish__empty {
    gap: .375rem;
    padding: 2.25rem 1rem
  }

  .wish__empty-title {
    font-size: 1rem
  }

  .wish__empty-sub {
    font-size: .8125rem
  }

  .wish__msg {
    font-size: .75rem
  }

  .wish__msg::before {
    width: 1.125rem;
    height: 1.125rem;
    font-size: .75rem
  }

  .picker__title {
    font-size: .75rem
  }

  /* 신청 */
  .apply {
    margin-top: 2.25rem
  }

  .field+.field {
    margin-top: 2rem
  }

  .field__label {
    font-size: 1.0667rem
  }

  .step-no {
    width: 1.125rem;
    height: 1.125rem;
    font-size: .75rem
  }

  .field__desc {
    font-size: .875rem
  }

  /* 상품 선택 : 시안처럼 2단 유지 */
  .opts {
    gap: .5rem;
    margin-top: 1rem
  }

  .opt {
    min-height: 5.25rem;
    gap: .375rem;
    padding: .75rem .5rem;
    border-radius: .625rem
  }

  .opt__head {
    gap: .2667rem;
    font-size: .8rem
  }

  .opt__radio {
    width: .8rem;
    height: .8rem;
    border-width: .0667rem
  }

  .opt__radio::after {
    width: .4467rem;
    height: .4467rem
  }

  .opt__body {
    gap: .5333rem
  }

  .opt__body img {
    width: 3.9167rem
  }

  .opt:nth-child(2) .opt__body img {
    width: 2.8667rem
  }

  .opt__name {
    font-size: .875rem;
    line-height: 1.2
  }

  .opt.is-soldout::after {
    font-size: 1rem;
    -webkit-text-stroke-width: .0667rem
  }

  /* 구매 정보 : 라벨 / 내용 2단 유지 */
  .rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7333rem 0;
    margin-top: 1.3333rem
  }

  .row__key {
    width: 5.6rem;
    font-size: .875rem
  }

  .row__val {
    font-size: .875rem
  }

  .row--input {
    align-items: center
  }

  .row__note {
    margin-top: calc(-1.7333rem + .375rem);   /* 모바일 .rows row-gap 상쇄 */
    padding-left: 6.35rem;                    /* .row__key 5.6rem + gap .75rem */
    font-size: .75rem;
    letter-spacing: -0.03rem;
  }

  .input {
    width: 100%;
    height: 2.5rem;
    padding: 0.375rem 0.5rem;
    font-size: .875rem;
  }

  .apply-note {
    gap: .3333rem;
    margin-top: 1rem;
    padding: .5333rem .6667rem;
    font-size: .8rem;
    letter-spacing: -0.0267rem;
    border-radius: .3333rem;
  }

  .apply-note__ic {
    width: .7333rem;
    height: .7333rem;
    margin-top: .0667rem;
  }

  .agrees {
    margin-top: 1rem
  }

  .agrees li+li {
    margin-top: .5rem
  }

  .agree {
    gap: 0.25rem;
    align-items: flex-start
  }

  .agree__box {
    width: .8rem;
    height: .8rem;
    margin-top: .1333rem;
    border-width: .05rem;
    border-radius: .1333rem
  }

  /* 체크 아이콘은 rem 고정값(19x15px)이라 박스만 줄이면 넘친다.
     데스크톱 비율(박스 대비 가로 79% / 세로 62.5%)을 그대로 유지 */
  .agree__box::after {
    width: .6333rem;
    height: .5rem
  }

  .agree__txt {
    font-size: .875rem
  }

  /* 시안 : 화면 폭을 꽉 채우지 않는 가운데 정렬 캡슐 버튼 */
  .btn,
  .btn:link {
    width: 10.6667rem;
    height: 2.0833rem;
    margin-top: 2rem;
    padding: 0.5rem 0.75rem;
    font-size: .875rem !important;
  }

  .login {
    margin-top: 2rem
  }

  .login__tip {
    padding: .3rem .5333rem;
    font-size: .8rem
  }

  .login__char {
    margin-top: 1.25rem
  }

  .login__char img {
    width: 12.3333rem
  }

  .sec--wish .login {
    margin-top: 1.75rem
  }

  .event-end {
    min-height: 18rem;
    margin-top: 1.25rem
  }

  .event-end__notice {
    padding: 1rem
  }

  .event-end__card {
    max-width: 20rem;
    padding: 1.5rem 1.25rem 1.75rem
  }

  .event-end__char {
    width: 5.5rem
  }

  .event-end__badge {
    margin-top: .75rem;
    font-size: .75rem
  }

  .event-end__title {
    margin-top: .625rem;
    font-size: 1.375rem
  }

  .event-end__desc {
    font-size: 1rem
  }

  .event-end--apply {
    margin-top: 0
  }

  .event-end--apply .event-end__notice {
    padding-top: 3.5rem
  }

  .sec--wish .login__char {
    margin-top: .875rem
  }

  .sec--wish .login__char img {
    width: 12rem
  }

  .notice__group h3::before {
    width: .5rem;
    height: .5rem;
    margin-right: .28125rem;
    vertical-align: .04688rem
  }

  .notice__ol li::before {
    width: .75rem;
    height: .75rem;
    margin-right: .25rem;
    font-size: .563rem;
  }

  /* 안내 : 본문은 데스크톱(16px)의 1/2 인 8px */
  .notice {
    font-size: .75rem
  }

  /* 개인정보 안내 모달 */
  .modal {
    padding: 1.25rem
  }

  .modal__panel {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 1rem;
  }

  .modal--alert .modal__panel {
    padding: 1.75rem 1.25rem 1.25rem
  }

  .alert__icon {
    width: 2.875rem;
    height: 2.875rem;
    font-size: 1.375rem
  }

  .alert__title {
    margin-top: .875rem;
    font-size: 1.0625rem
  }

  .modal--alert .modal__body {
    font-size: .875rem
  }

  .modal__title {
    padding-bottom: .875rem;
    font-size: 1.125rem
  }

  .modal__body {
    margin-top: 1rem;
    padding-right: .375rem;
    font-size: .875rem
  }

  .modal__group h3 {
    font-size: .9375rem
  }

  .modal__actions {
    gap: .5rem
  }

  .modal__cancel {
    width: 100%;
    height: 3rem;
    margin-top: 1.25rem;
    font-size: 1rem
  }

  .modal__ok {
    width: 100%;
    height: 3rem;
    margin-top: 1.25rem;
    font-size: 1rem
  }

  .notice__group h3 {
    font-size: .75rem;
  }

  .agree__txt a {
    font-size: .875rem;
  }


  .notice__group p {
    font-size: .75rem;
  }

  .modal__panel {
    max-height: 70%;
  }

  .js .sec-title.is-in .st-m {
    animation: secTitlePop .58s var(--ease) var(--d, 0s) both,
      htBob 4.6s ease-in-out 1.6s infinite;
  }

  .full-img .st-m,
  img.full-img {
    display: block;
  }

  .row--input {
    margin-top: 0;
  }

  .apply-note span {
    font-size: .875rem;
  }
}

/* 좁은 화면 : 작성 버튼을 다음 줄로 내려 입력 영역을 확보한다 */
@media (max-width:480px) {
  .wish__form {
    flex-wrap: nowrap;
    row-gap: .625rem
  }

  /* .wish__submit {
    flex: 0 0 100%;
    width: 100%
  } */
}

@media (max-width:400px) {
  html {
    font-size: 13.5px
  }
}

/* 모션 최소화 */
@media (prefers-reduced-motion:reduce) {

  /* html.force-motion : ?motion=1 로 강제 확인할 때는 이 블록을 건너뛴다 */
  html:not(.force-motion) *,
  html:not(.force-motion) *::before,
  html:not(.force-motion) *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }

  html.js:not(.force-motion) .reveal,
  html.js:not(.force-motion) .reveal .step {
    opacity: 1;
    transform: none
  }

  html:not(.force-motion) .reveal--pop:hover,
  html.js:not(.force-motion) .reveal--pop.is-in:hover {
    translate: none
  }
}