/*
 * 리딩게이트 그래픽 노블 설문 이벤트
 * 기준: Figma "코믹북 설문 이벤트 · 모바일 379" (Z77XZfzI3KI9g8s46qwEf0, node 150:959)
 * 수치는 Figma 값 그대로 사용 (반올림·임의 변경 없음)
 */

@font-face { font-family: 'NEXON Lv1 Gothic OTF'; font-weight: 700; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_20-04@2.1/NEXON%20Lv1%20Gothic%20OTF%20Bold.woff') format('woff'); }
@font-face { font-family: 'Gmarket Sans TTF'; font-weight: 700; font-display: swap;
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff'); }

:root {
  --ink: #171717; --ink-purple: #2a1b3d; --ink-soft: #5e5170; --gray-text: #595959;
  --green: #16b47c; --mint: #73ffce; --mint-pale: #d4fff0; --chip: #efefef;
  --f-head: 'NEXON Lv1 Gothic OTF', 'Pretendard', sans-serif;
  --f-body: 'Pretendard', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --f-num: 'Gmarket Sans TTF', 'Pretendard', sans-serif;
  --f-en: 'Outfit', 'Pretendard', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #f7f1f1; color: var(--ink); font-family: var(--f-body); word-break: keep-all; }
img { display: block; max-width: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Figma에는 모바일(375) 프레임만 있음 → 최대 430px 가운데 정렬 (PC·태블릿 동일 구성) */
.page { max-width: 430px; margin: 0 auto; overflow: hidden; background: var(--ink); }
.page > header, .page section { position: relative; }
.center { display: flex; flex-direction: column; align-items: center; }
.h-sec { font-family: var(--f-head); font-weight: 700; line-height: normal; letter-spacing: -0.02em; text-align: center; margin: 0; }
.sub { font: 500 16px/1.3 var(--f-body); letter-spacing: -0.03em; text-align: center; margin: 0; }

/* 버튼 공통 — Figma에 hover 상태 없음: 크기·위치가 변하지 않는 밝기 변화만 적용 */
.event-btn { display: flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; cursor: pointer;
  font: 700 18px var(--f-body); letter-spacing: -0.03em; line-height: normal; transition: filter .12s; }
.event-btn:hover { filter: brightness(1.07); }
.event-btn:active { filter: brightness(.95); }
.event-btn[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }

/* 01 첫 화면 */
.hero { background: linear-gradient(180deg, #ebfff7 22%, #36dea4 132%); padding: 55px 16px 56px; gap: 16px; }
.badge { background: #bfffe9; border-radius: 5px; padding: 8px 22px; font: 600 14px var(--f-body); letter-spacing: -0.03em; color: #267257; line-height: normal; }
.hero-copy { width: 100%; padding-top: 9px; display: flex; flex-direction: column; gap: 8px; text-align: center; }
.hero h1 { font-family: var(--f-head); font-weight: 700; font-size: 30px; line-height: normal; margin: 0; color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .lead { font: 500 16px/1.3 var(--f-body); letter-spacing: -0.03em; margin: 0; }
.period { margin: 0; display: flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #fff; border-radius: 999px; padding: 7px 18px; box-shadow: 0 0 4px #96f5d2; }
.period .lbl { font: 600 14px var(--f-body); letter-spacing: -0.03em; line-height: normal; }
.period .date { font: 700 12px var(--f-num); color: var(--green); line-height: normal; }
.hero-art { position: relative; width: calc(100% + 32px); margin: 0 -16px; aspect-ratio: 375 / 312; }
.hero-art img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.event-btn-dark { position: relative; z-index: 1; width: 100%; height: 54px; border-radius: 999px; background: var(--ink); color: var(--mint); padding: 16px 28px; }

/* 02 출간 예정 그래픽 노블 5종 */
.lineup { background: linear-gradient(180deg, #51937b -5.9%, #192d26 3.3%); padding: 52px 20px 35px; gap: 10px; color: #fff; }
.lineup .h-sec { font-size: 25px; }
/* 부제 + 제목 묶음 (Figma 간격 6) · 권수 배지 (#394843, 위아래 5 · 좌우 20) */
.lineup-head { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.count-chip { background: #394843; border-radius: 999px; padding: 5px 20px; }
.series { width: 100%; display: flex; flex-direction: column; gap: 16px; padding-top: 14px; }
.card { background: #fff; border-radius: 22px; overflow: hidden; color: var(--ink-purple); }
.card .cover img { width: 100%; height: auto; object-fit: cover; }
.card:nth-child(1) .cover img { aspect-ratio: 335 / 416; }
.card:nth-child(2) .cover img { aspect-ratio: 335 / 380; }
.card:nth-child(3) .cover img { aspect-ratio: 335 / 320; }
.card:nth-child(4) .cover img { aspect-ratio: 335 / 317; }
.card:nth-child(5) .cover img { aspect-ratio: 335 / 325; }
.card .body { padding: 24px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.card .text { display: flex; flex-direction: column; gap: 7px; }
.card h3 { font: 600 23px var(--f-en); line-height: normal; margin: 0; }
.card p { font: 500 15px/1.37 var(--f-body); letter-spacing: -0.03em; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 12px; list-style: none; margin: 0; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--chip); font: 500 12px var(--f-body); letter-spacing: -0.03em; color: var(--ink); line-height: normal; }
/* 권수 태그 색 (시리즈별 Figma 값) */
.tags .vol-ella { background: #c7eaf0; }
.tags .vol-clumsy { background: #fcdfc9; }
.tags .vol-sealord { background: #d0daff; }
.tags .vol-stars { background: #edd5f3; }
.tags .vol-rescue { background: #ddf8cf; }

/* 03 참여 방법 — Figma: 위 여백 36 · 섹션 높이 고정 346 → 아래 여백 49 */
.how { background: #d1ede3; padding: 36px 20px 49px; gap: 10px; }
.event-headline { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.how .h-sec, .gift .h-sec, .who .h-sec { font-size: 27px; }
.steps { width: 100%; list-style: none; margin: 0; padding: 6px 0 0; display: flex; flex-direction: column; gap: 7px; }
.steps li { background: #fff; border-radius: 18px; padding: 20px 18px 20px 27px; display: flex; align-items: center; gap: 21px; }
.num { flex: none; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; border: 1px solid transparent;
  background: linear-gradient(var(--green), var(--green)) padding-box, linear-gradient(180deg, #16b47c, #0c9d6a) border-box;
  font: 700 19px var(--f-num); color: #fff; line-height: normal; }
.step-text { display: flex; flex-direction: column; gap: 7px; }
.step-title { font: 600 18px var(--f-body); letter-spacing: -0.03em; color: var(--ink-purple); line-height: normal; margin: 0; }
.step-title b { font-weight: 700; border-radius: 3px;
  background: linear-gradient(transparent 31.8%, #e2ec92 31.8%, #e2ec92 90.9%, transparent 90.9%); }
.step-desc { font: 500 15px/1.37 var(--f-body); letter-spacing: -0.03em; color: var(--ink-soft); margin: 0; }

/* 06 이벤트 일정 + 하단 CTA (Figma 순서: 참여 방법 다음) */
/* 아래 여백 95(Figma) + 캐릭터 이미지(375:125 비율)가 375보다 넓은 화면에서 커지는 만큼 → 상자와 캐릭터의 겹침 위치를 모든 폭에서 동일하게 유지 */
.schedule { background: linear-gradient(180deg, #20d5c6 -12.5%, #29534e 26.5%); padding: 52px 20px calc(95px + (min(100vw, 430px) - 375px) / 3); gap: 12px; overflow: hidden; }
.schedule .h-sec { font-size: 27px; color: #fff; text-shadow: 0 0 3.9px #147153; position: relative; z-index: 1; }
.confetti { position: absolute; top: 52px; left: calc(50% - 152.5px); width: 326px; height: auto; pointer-events: none; }
.timeline { position: relative; z-index: 1; width: 100%; margin: 0; padding: 26px 0 24px 18px; display: flex; flex-direction: column; gap: 6px;
  background: rgba(15, 166, 148, .66); border: 1px solid #24c0ae; border-radius: 28px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.timeline div { display: flex; gap: 2px; font: 500 14px var(--f-body); letter-spacing: -0.03em; line-height: normal; }
.timeline dt { width: 98px; flex: none; color: var(--mint-pale); }
.timeline dd { margin: 0; color: #fff; }
.timeline dd.strong { font-weight: 600; }
/* 두 줄 항목의 둘째 줄: Figma 단락 간격 6 */
.timeline .dd-line { display: block; margin-top: 6px; }
.cta-box { width: 100%; border-radius: 28px; padding: 36px 20px 30px; gap: 12px; position: relative; z-index: 1;
  background: linear-gradient(180deg, #ebfff7 67.5%, #36dea4 152%); box-shadow: inset 0 0 4.3px #f7fffc; }
.cta-art { position: relative; width: 273px; height: 103px; flex: none; }
/* 표지 묶음 + 낙서 + 별 레이어가 겹쳐 있어 영역 전체를 1장으로 내보냄 (Figma 상자 기준 x28 y31 278×112) */
.cta-art img { position: absolute; left: -3px; top: -5px; width: 278px; height: 112px; }
.cta-copy { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.cta-copy h3 { font-family: var(--f-head); font-weight: 700; font-size: 25px; letter-spacing: -0.02em; line-height: normal; margin: 0; color: #0c6765; }
.cta-copy h3 em { font-style: normal; color: var(--ink); }
.cta-copy p { font: 500 16px/1.3 var(--f-body); letter-spacing: -0.03em; color: #194233; margin: 0; }
.cta-action { width: 100%; padding-top: 11px; display: flex; flex-direction: column; gap: 12px; }
.event-btn-mint { width: 100%; height: 56px; border-radius: 999px; color: var(--ink); padding: 16px 28px; border: 1px solid transparent;
  background: linear-gradient(180deg, #1af2a6 50.5%, #fff 85.9%) padding-box, linear-gradient(180deg, #a9fbdc, #3ddca4) border-box; }
.cta-note { display: flex; align-items: center; justify-content: center; gap: 2px; font: 500 12px var(--f-body); letter-spacing: -0.03em; color: #01393a; margin: 0; line-height: normal; }
/* 캐릭터 이미지: 배경이 투명한 PNG(375×125 @2x) → Figma처럼 CTA 상자 하단 위에 겹침, 클릭 통과 */
.chars { position: absolute; left: 0; bottom: 0; z-index: 2; width: 100%; height: auto; pointer-events: none; }

/* 04 참여 선물 */
.gift { background: #f4fffb; padding: 52px 20px 51px; gap: 10px; }
.gift .h-sec { color: var(--ink-purple); }
.gift-list { width: 100%; padding-top: 6px; }
.gift-card { background: #fff; border: 1px solid #a7d2c3; border-radius: 20px; padding: 17px 18px 17px 44px; display: flex; align-items: center; gap: 39px; }
.gift-card img { width: 63.2px; height: 81px; }
.gift-info { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.gift-name { font: 600 18px var(--f-body); letter-spacing: -0.03em; line-height: normal; margin: 0; }
.chip { background: var(--chip); border-radius: 999px; padding: 8px 11px; font: 500 13px var(--f-body); letter-spacing: -0.03em; color: var(--gray-text); line-height: normal; }

/* 05 참여 대상 */
.who { background: #f4fffb; border-top: 1px solid #c0e5d8; border-bottom: 1px solid #c0e5d8; padding: 39px 20px 47px; gap: 10px; }
.who .h-sec { color: var(--ink-purple); }
.who .sub b { font-weight: 700; }
.members { width: 100%; padding-top: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; }
.members li { border-radius: 16px; padding: 16px 14px; background: linear-gradient(180deg, #baeddb, #a3e6ce); display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.members strong { font: 700 16px var(--f-body); letter-spacing: -0.03em; line-height: normal; }
.members span { font: 500 13px var(--f-body); letter-spacing: -0.03em; color: var(--gray-text); line-height: normal; }

/* 07 QR로 즐기는 멀티미디어 학습 */
.multi { background: linear-gradient(180deg, #374746 22%, #263232 100%); border-top: 1px solid #afcc73; padding: 52px 20px 51px; gap: 10px; color: #fff; }
.multi .event-headline { gap: 12px; }
/* 부제 + 제목 묶음 (Figma 간격 6) · 부제 민트 68% */
.multi-title { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.multi-title .sub { color: rgba(115, 255, 206, .68); }
.multi .h-sec { font-size: 24px; color: var(--mint); }
.multi .desc { font: 500 15px/1.37 var(--f-body); letter-spacing: -0.03em; text-align: center; margin: 0; }
.multi-art { position: relative; width: 322px; height: 224px; flex: none; }
.multi-art img { position: absolute; left: 0; top: -2.2px; width: 325px; height: auto; }
.features { width: 100%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.features li { background: #415251; box-shadow: inset 0 0 0 1px #6aada9; border-radius: 20px; padding: 19px 10px 19px 27px; display: flex; align-items: center; gap: 15px; min-height: 99px; }
.features .ico { width: 108px; flex: none; display: grid; place-items: center; }
.features .ico img { width: 108px; height: auto; }
.feat-text { display: flex; flex-direction: column; gap: 5px; }
.feat-title { display: flex; align-items: center; gap: 9px; font: 700 18px var(--f-body); letter-spacing: -0.03em; color: var(--mint-pale); text-shadow: 0 0 1.6px #265d81; margin: 0; line-height: normal; }
.feat-desc { font: 600 14px var(--f-body); letter-spacing: -0.03em; margin: 0; line-height: normal; }

/* 08 유의사항 */
.notice { background: #252525; padding: 32px 20px; display: flex; flex-direction: column; gap: 10px; }
.notice h2 { font: 600 18px var(--f-body); letter-spacing: -0.03em; color: #adadad; margin: 0; line-height: normal; }
.notice ul { background: #303030; border-radius: 18px; padding: 20px 8px 20px 20px; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.notice li { display: flex; font: 300 13px/1.4 var(--f-body); letter-spacing: -0.03em; color: #efefef; }
.notice li::before { content: '・'; width: 13px; flex: none; }
/* 이벤트 문의 메일: Figma 밑줄 + mailto 링크 */
.notice .mail { color: inherit; text-decoration: underline; cursor: pointer; }

/* 09 하단 문구 */
.foot { background: var(--ink); padding: 24px 16px 40px; text-align: center; font: 600 14px var(--f-body); letter-spacing: -0.03em; color: var(--gray-text); }
.foot p { margin: 0; }

/* 고정 하단 버튼 (Figma "고정 하단 버튼" 150:1418, 375×82) */
.sticky { position: fixed; z-index: 20; bottom: var(--sticky-bottom, 0px); left: 50%; width: min(100%, 430px); padding-top: 12px; background: #fff8f1;
  transform: translate(-50%, 110%); transition: transform .25s; }
.sticky.show { transform: translate(-50%, 0); }
.event-btn-sticky { width: 100%; height: 70px; color: var(--ink); background: linear-gradient(180deg, #fff, #dafcef); padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (prefers-reduced-motion: reduce) { .sticky, .event-btn { transition: none; } }

/* 행간: Figma '자동' 행간을 측정 높이(px)로 고정 */
.badge, .period .lbl, .timeline div, .foot { line-height: 17px; }
.period .date, .tags li, .cta-note { line-height: 14px; }
.hero h1 { line-height: 35px; }
.event-btn, .step-title, .num, .gift-name, .feat-title, .notice h2 { line-height: 22px; }
.lineup .h-sec, .card h3, .cta-copy h3 { line-height: 29px; }
.how .h-sec, .gift .h-sec, .who .h-sec, .schedule .h-sec { line-height: 31px; }
.multi .h-sec { line-height: 28px; }
.chip, .members span { line-height: 16px; }
.members strong { line-height: 19px; }
.feat-desc { line-height: 17px; }
/* 여러 줄 문단: Figma가 줄마다 정수 px로 그리는 높이 (130%·137% → 21px, 140% → 18px) */
.sub, .hero .lead, .card p, .step-desc, .cta-copy p, .multi .desc { line-height: 21px; }
.notice li { line-height: 18px; }
/* 테두리: Figma는 선을 안쪽에 그림 → 크기에 포함되지 않게 안쪽 선으로 처리 */
.card { position: relative; }
.card::after { content: ''; position: absolute; inset: 0; border: 1px solid #d8efe7; border-radius: 22px; pointer-events: none; }
