/* ==========================================================================
   세피루스 키우기 사전예약 랜딩
   - 디자인 기준 폭 620px(시안 1240px의 1/2)을 62rem 으로 환산해 사용한다.
   - 620px 미만 화면에서는 1rem = 100vw/62 로 비율이 유지된다.
   ========================================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: calc(100vw / 62); }
@media (min-width: 620px) { html { font-size: 10px; } }
/* PC(1024px 이상): 디자인 캔버스 3344px 기준 → 1rem = 디자인 px ÷ 10 */
@media (min-width: 1024px) { html { font-size: calc(100vw / 334.4); } }

body {
    font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    background: #c7dbf3;
    color: #1b2d5e;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

button { border: 0; background: none; cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

.wrap {
    width: 62rem;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    background: #e9f1fc;
    box-shadow: 0 0 3rem rgba(38, 76, 152, 0.25);
}

/* ==========================================================================
   메인 (사전예약)
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* 하단 여백은 시안 총높이(=배경 1084x2393 = 136.9rem)에 맞춘 값 */
    padding: 2rem 0 4.3rem;
    background: url('/sephiruthidle/images/hero-bg-b200b652f413b5a886d7a01a1aee5c2b.webp') top center / 100% auto no-repeat #e9f1fc;
}

/* 260730 시안(1084x2393) 실측을 62rem 기준으로 환산 — 1084px = 62rem (17.484px/rem) */
.hero__title {
    width: 42.6rem;
    margin-top: 6.6rem;
}

.hero__form {
    display: flex;
    flex-direction: column;
    width: 51.1rem;
    margin-top: 2.6rem;
}

/* --- 휴대폰 번호 입력 --- */
.phone-row {
    display: flex;
    gap: 2.1rem;
    height: 5.9rem;
}

.select-wrap { position: relative; width: 13.4rem; flex: none; }

.select-wrap select {
    width: 100%;
    height: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #a7b4ee;
    border-radius: 0.9rem;
    background: #fbfcff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%232447b2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 1.3rem center / 1.3rem auto no-repeat;
    padding: 0 2.8rem 0 1.6rem;
    font-size: 1.8rem;
    font-weight: 500;
    color: #2447b2;
    text-align: center;
}

.phone-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid #a7b4ee;
    border-radius: 0.9rem;
    background: #fbfcff;
    padding: 0 1.8rem;
    font-size: 1.7rem;
    font-weight: 400;
    color: #1b2d5e;
    outline: none;
}

.phone-row input::placeholder { color: #97a4c4; }
.phone-row input:focus, .select-wrap select:focus { border-color: #4a6ae0; }

/* 본인인증 전용 번호칸: 탭하면 PASS 팝업 → readonly 라 커서만 포인터로. 인증되면 강조 */
.phone-auth { cursor: pointer; caret-color: transparent; }
.phone-auth.is-verified { font-weight: 700; letter-spacing: 0.02em; }

/* --- 동의 체크 --- */
/* 동의 블록은 입력행보다 좁게 안쪽으로 들어간다(시안 x220~949 = 41.7rem) */
.consent {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 41.7rem;
    margin: 3.3rem auto 0;
}

.consent__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consent__label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
}

.consent__label input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.consent__box {
    width: 2.9rem;
    height: 2.3rem;
    flex: none;
    background: url('/sephiruthidle/images/checkbox-off-0f4420c732b80d6f43bf0066b542abf0.webp') center / contain no-repeat;
}

.consent__label input:checked + .consent__box {
    background-image: url('/sephiruthidle/images/checkbox-on-2545fd60a0b92c60e0f7c450dec48859.webp');
}

.consent__text { height: 2.1rem; width: auto; }

/* 시안의 자세히보기 버튼은 185x52 로 기존 리소스(184x58)와 비율이 다르다.
   폭을 맞추면 동의행이 6px 씩 높아져 아래 요소가 전부 밀리므로 높이를 기준으로 맞춘다. */
.consent__detail img { height: 3rem; width: auto; }
.consent__detail:active { transform: scale(0.96); }
/* 동의 미체크 시 자세히 보기 버튼 비활성(흐림) — 클릭은 계속 가능 */
.consent__detail { transition: opacity 0.15s ease, filter 0.15s ease; }
.consent__detail--off { opacity: 0.4; filter: grayscale(1); }

/* --- CTA --- */
.cta {
    width: 43.9rem;
    margin: 2.8rem auto 0;
    transition: transform 0.12s ease, filter 0.12s ease;
}
.cta:active { transform: scale(0.98); filter: brightness(1.06); }
.cta img { width: 100%; }
.cta[disabled] { filter: grayscale(0.5) brightness(0.9); cursor: default; }

/* --- 보상 박스 (사전예약 특별 보상 / 네이버 공식 카페) ---
   리소스 943x419 는 PC 와 같은 파일을 공유한다(모바일 export 가 고해상도라 양쪽에 쓴다).
   CTA 는 박스에 베이크된 바가 아니라 별도 골드 버튼(650x71)으로 분리돼, 박스 하단 안쪽에 얹는다.
   클릭 영역은 버튼이 아니라 박스 전체다 — 버튼만 잡으면 모바일에서 높이가 24px 남짓이라
   터치 타깃이 너무 작다. 호버 하이라이트는 골드 버튼 이미지에만 걸어 모양이 어긋나지 않게 한다. */
.reward-box {
    position: relative;
    display: block;
    transition: transform 0.12s ease;
}

.reward-box__bg { width: 100%; }

/* 버튼 위치는 리소스 실측: 박스 폭의 68.9%, top 78.2% (좌우 중앙) */
.reward-box__cta {
    position: absolute;
    left: 50%;
    top: 78.2%;
    transform: translateX(-50%);
    width: 68.9%;
    transition: filter 0.15s ease;
}

.reward-box:hover .reward-box__cta { filter: brightness(1.07); }
.reward-box:active { transform: scale(0.99); }

.hero__rewards {
    width: 53.8rem;
    margin-top: 3.8rem;
}

.hero__cafe {
    width: 53.8rem;
    margin-top: 1.5rem;
}

/* ==========================================================================
   직업 소개
   ========================================================================== */
.classes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.6rem;
    padding: 3.2rem 0 3.4rem;
    background: url('/sephiruthidle/images/class-bg-4044e48de5bdb747f761998624fbfce5.webp') top center / 100% auto repeat-y #dce9fa;
}

.classes__card {
    width: 51.2rem;
    transition: transform 0.15s ease;
}
.classes__card:active { transform: scale(0.985); }
.classes__card img { width: 100%; }

/* ==========================================================================
   직업 자세히보기 (클래스 캐러셀)
   ========================================================================== */
.detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.4rem 0 4rem;
    background: url('/sephiruthidle/images/class-bg-4044e48de5bdb747f761998624fbfce5.webp') bottom center / 100% auto repeat-y #dce9fa;
}

.detail__title { width: 34rem; }

.detail__stage {
    position: relative;
    width: 58rem;
    margin-top: 2.4rem;
}

.detail__cardbg { width: 100%; }

/* 시안처럼 캐릭터가 카드 라운드 경계에서 잘리도록 클리핑 (카드 코너 반경 원본 40px ≈ 2.3rem) */
.detail__layer {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 2.3rem;
}

/* 캐릭터 PNG(1011x1387)는 카드(1020x1394)와 같은 비율의 전면 오버레이 리소스 — 카드에 꽉 채운다 */
.detail__char {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    transition: opacity 0.25s ease;
}

.detail__info {
    position: absolute;
    left: 4.5%;
    top: 2%;
    width: 44%;
    transition: opacity 0.25s ease;
}

.is-fading .detail__char,
.is-fading .detail__info { opacity: 0; }

/* --- 좌우 화살표 (마름모) --- */
.detail__nav {
    position: absolute;
    top: 46%;
    width: 4.8rem;
    height: 4.8rem;
    z-index: 3;
}
.detail__nav--prev { left: 3%; }
.detail__nav--next { right: 3%; }

.detail__nav::before {
    content: '';
    position: absolute;
    inset: 12%;
    transform: rotate(45deg);
    background: rgba(250, 252, 255, 0.92);
    border: 1px solid #8fa9dd;
    box-shadow: 0 0.2rem 0.8rem rgba(38, 76, 152, 0.28);
}

.detail__nav i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.25rem;
    height: 1.25rem;
    border-left: 0.3rem solid #2b4fc0;
    border-bottom: 0.3rem solid #2b4fc0;
    border-radius: 0.1rem;
}
.detail__nav--prev i { transform: translate(-32%, -50%) rotate(45deg); }
.detail__nav--next i { transform: translate(-68%, -50%) rotate(225deg); }
.detail__nav:active::before { background: #e6eeff; }

/* --- 하단 마름모 썸네일 --- */
.detail__thumbs {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    display: flex;
    gap: 5.2rem;
    z-index: 3;
}

.thumb {
    position: relative;
    width: 5.6rem;
    height: 5.6rem;
    transform: rotate(45deg);
    overflow: hidden;
    border: 0.2rem solid rgba(255, 255, 255, 0.9);
    border-radius: 0.6rem;
    background: linear-gradient(160deg, #16264d 0%, #0c1730 100%);
    box-shadow: 0 0.3rem 1rem rgba(20, 45, 96, 0.4);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.thumb.is-active {
    border-color: #4a7dff;
    box-shadow: 0 0 1.2rem rgba(74, 125, 255, 0.85);
}

.thumb__inner {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 148%;
    height: 148%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

.thumb__inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 4%;
}

.thumb:not(.is-active) .thumb__inner img { filter: brightness(0.72) saturate(0.9); }

/* ==========================================================================
   세피루스 키우기 이야기 (영상 + 안내)
   ========================================================================== */
.story { position: relative; }

.story__bg { width: 100%; }

.story__head {
    position: absolute;
    top: 2.6%;
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Noto Serif KR', serif;
    font-weight: 900;
    line-height: 1.16;
}

.story__line1,
.story__line2 {
    display: inline-block;
    background: linear-gradient(180deg, #6ba3f5 0%, #2b58cf 46%, #16337f 78%, #4a7de0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0.2rem 0.5rem rgba(255, 255, 255, 0.85)) drop-shadow(0 0.35rem 0.6rem rgba(27, 62, 140, 0.35));
}

.story__line1 {
    position: relative;
    font-size: 4.3rem;
    letter-spacing: 0.1rem;
}

.story__line1::before,
.story__line1::after {
    content: '✦';
    -webkit-text-fill-color: #8db4f2;
    font-size: 2.4rem;
    vertical-align: 0.9rem;
}
.story__line1::before { margin-right: 1.6rem; }
.story__line1::after { margin-left: 1.6rem; }

.story__line2 {
    display: block;
    font-size: 7rem;
    letter-spacing: 0.4rem;
}

.story__divider {
    position: absolute;
    top: 20.6%;
    left: 7%;
    width: 86%;
    height: 1.4rem;
}

.story__divider i {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6f93dd 12%, #3c66c4 50%, #6f93dd 88%, transparent);
}

.story__divider::before {
    content: '✦';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #3c66c4;
    font-size: 1.5rem;
    text-shadow: 0 0 0.8rem rgba(120, 165, 245, 0.9);
    z-index: 1;
}

.story__frame {
    position: absolute;
    top: 24%;
    left: 1.6%;
    width: 96.8%;
}

.story__frame-img {
    position: relative;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

/* 프레임 PNG(1081x682) 이중선 안쪽 개구부 실측값: 좌 x33 / 우 x1046 / 상 y44 / 하 y611 (2px 씩 선 밑으로 겹침) */
.story__video {
    position: absolute;
    inset: 6.2% 3% 10% 2.9%;
    border-radius: 0.8rem;
    overflow: hidden;
    z-index: 1;
    background: #dfeafc;
}

.story__video > img,
.story__video iframe,
.story__video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    background: #000;
}

.story__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 7.6rem;
    height: 7.6rem;
    border-radius: 50%;
    background: rgba(24, 52, 118, 0.55);
    border: 0.25rem solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0.4rem 1.6rem rgba(24, 52, 118, 0.4);
    transition: transform 0.15s ease, background 0.15s ease;
}
.story__play:hover { background: rgba(35, 72, 158, 0.7); }
.story__play:active { transform: translate(-50%, -50%) scale(0.94); }

.story__play i {
    position: absolute;
    left: 56%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 2.2rem solid #fff;
    border-top: 1.4rem solid transparent;
    border-bottom: 1.4rem solid transparent;
}

/* ==========================================================================
   모달
   ========================================================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal[hidden] { display: none; }

.modal__dim {
    position: absolute;
    inset: 0;
    background: rgba(11, 25, 54, 0.55);
}

.modal__card {
    position: relative;
    width: min(46rem, 86vw);
    padding: 3.2rem 2.8rem 2.8rem;
    border-radius: 1.6rem;
    border: 1px solid #9db8f8;
    background: linear-gradient(180deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 1rem 4rem rgba(10, 30, 80, 0.35);
    text-align: center;
}

.modal__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1c3fae;
}

.modal__msg {
    margin-top: 1.4rem;
    font-size: 1.6rem;
    line-height: 1.6;
    color: #33477e;
    white-space: pre-line;
}

.modal__terms {
    margin-top: 1.6rem;
    max-height: 34vh;
    overflow-y: auto;
    text-align: left;
    font-size: 1.45rem;
    line-height: 1.7;
    color: #33477e;
    background: #f7faff;
    border: 1px solid #d3e0f8;
    border-radius: 0.9rem;
    padding: 1.4rem 1.6rem;
}

.modal__terms p + p { margin-top: 0.8rem; }

.modal__ok {
    margin-top: 2.2rem;
    width: 60%;
    height: 4.4rem;
    border-radius: 2.4rem;
    font-size: 1.8rem;
    font-weight: 700;
    color: #5b3a00;
    background: linear-gradient(180deg, #ffe98c 0%, #ffc93e 55%, #f5a91a 100%);
    border: 1px solid #e0a723;
    box-shadow: 0 0.3rem 1rem rgba(160, 110, 10, 0.35);
}
.modal__ok:active { transform: scale(0.97); }

/* ==========================================================================
   진입 이벤트 팝업
   - 롱배너라 세로가 아주 길다(모바일 740x3366, PC 1470x6686 = 1:4.55).
     팝업 높이를 뷰포트에 묶고 이미지 영역만 세로 스크롤시킨다.
   - 닫기 바는 스크롤 영역 밖에 둬서 어디까지 스크롤했든 항상 눌리게 한다.
   ========================================================================== */
.event-pop {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 57rem;
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 1.6rem;
    background: #eef4ff;
    box-shadow: 0 1rem 4rem rgba(10, 30, 80, 0.45);
    overflow: hidden;
}

/* 스크롤 영역 + 오버레이 스크롤 표시자를 함께 담는 칸 */
.event-pop__body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;            /* flex 자식이 내용 높이만큼 늘어나 스크롤이 안 생기는 것을 막는다 */
    display: flex;
}

.event-pop__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;   /* 팝업 끝에서 배경 페이지가 따라 스크롤되지 않게 */
}

/* 윈도우 크롬 등에서 네이티브 스크롤바는 레이아웃 폭(약 10px)을 차지해, 이미지가 그만큼
   좁아지면서 우측 모서리에 빈 띠가 보인다. 네이티브는 감추고 아래 표시자를 이미지 위에 얹는다. */
.event-pop__scroll { scrollbar-width: none; -ms-overflow-style: none; }
.event-pop__scroll::-webkit-scrollbar { width: 0; height: 0; display: none; }

.event-pop__track {
    position: absolute;
    right: 0.5rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 0.6rem;
    border-radius: 0.3rem;
    background: rgba(120, 150, 210, 0.16);
    pointer-events: none;     /* 표시 전용 — 이미지 위의 버튼 클릭을 막지 않는다 */
    opacity: 0;
    transition: opacity 0.2s ease;
}
.event-pop__track.is-on { opacity: 1; }

.event-pop__thumb {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 20%;
    border-radius: inherit;
    background: rgba(63, 103, 190, 0.55);
}

.event-pop__inner { position: relative; }
.event-pop__img { width: 100%; }

/* 두 CTA(이벤트 참여하기 / 네이버 카페 바로가기)는 배너에서 빠져 있고 별도 리소스라
   그 빈 자리에 얹는다. 좌표는 배너 원본에서 빈 슬롯의 상하 경계를 실측해 그 안에 세로 중앙 정렬한 값.
   2026-09 '픽스 최종본'부터 PC/모바일이 같은 시안의 해상도 차이일 뿐이라 비율이 같다 →
   브레이크포인트별 좌표 분기가 필요 없어졌다(구 1024px 블록의 덮어쓰기 제거).
     원본 1471x6691 기준 슬롯 — 이벤트 참여하기 : y 1639~1772 (흰 박스 안쪽 빈칸)
                                카페 바로가기   : y 5460~5642 (앨리스 코스튬 박스 아래 광원 띠 끝 ~ 흰 바 위)
   카페 쪽은 신규 시안에서 자리가 좁아져(구 213px → 182px) 중앙 정렬하면 아래 '메인 경품 획득
   방법' 흰 바에 6px 까지 붙는다. 버튼 크기는 두고 위로 올려 아래 여백을 33px 확보했다
   (위 22px / 아래 33px — 구 시안의 위 19 / 아래 67 과 같은 방향). */
.event-pop__link {
    position: absolute;
    transition: filter 0.15s ease;
}
.event-pop__link picture { display: block; }
.event-pop__link img { width: 100%; display: block; }

.event-pop__link--join { left: 20.326%; width: 59.551%; top: 24.682%; }
.event-pop__link--cafe { left: 14.140%; width: 71.720%; top: 81.990%; }

/* 버튼 자체는 얇아서(모바일 기준 약 31px) 탭 영역만 보이지 않게 넓힌다 */
.event-pop__link::after {
    content: '';
    position: absolute;
    inset: -0.9rem -0.6rem;
}

.event-pop__link:hover { filter: brightness(1.07); }
.event-pop__link:active { transform: scale(0.98); }

.event-pop__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 4.4rem;
    filter: drop-shadow(0 0.2rem 0.6rem rgba(10, 30, 80, 0.45));
}
.event-pop__close img { width: 100%; }
.event-pop__close:active { transform: scale(0.94); }

.event-pop__bar {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.4rem 1.8rem;
    border-top: 1px solid #cfdcf6;
    background: #e3ecfd;
}

.event-pop__today {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    font-size: 1.7rem;
    color: #33477e;
}
.event-pop__today input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.event-pop__check {
    position: relative;
    width: 2.2rem;
    height: 2.2rem;
    flex: none;
    border: 1px solid #8fa9dd;
    border-radius: 0.4rem;
    background: #fff;
}
.event-pop__today input:checked + .event-pop__check::after {
    content: '';
    position: absolute;
    left: 32%;
    top: 10%;
    width: 28%;
    height: 58%;
    border-right: 0.3rem solid #2447b2;
    border-bottom: 0.3rem solid #2447b2;
    transform: rotate(45deg);
}

.event-pop__ok {
    flex: none;
    padding: 0 2.6rem;
    height: 4rem;
    border-radius: 2rem;
    font-size: 1.7rem;
    font-weight: 700;
    color: #5b3a00;
    background: linear-gradient(180deg, #ffe98c 0%, #ffc93e 55%, #f5a91a 100%);
    border: 1px solid #e0a723;
}
.event-pop__ok:active { transform: scale(0.97); }

/* ==========================================================================
   카페 유도 팝업 — 사전예약 완료 팝업을 닫으면 이어서 뜬다
   이미지 자체가 짧아(모바일 740x670 / PC 1100x670) 스크롤은 필요 없다.
   ========================================================================== */
/* 폭은 세 가지 상한 중 가장 작은 값. 마지막 항이 세로 상한인데, 이미지 비율(740/670)을
   곱해 폭으로 환산한 값이라(88vh x 1.104 = 97vh) 가로가 짧은 가로모드에서도 화면을 넘지 않는다.
   컨테이너가 이미지와 정확히 같은 크기라야 아래 버튼의 % 좌표가 어긋나지 않는다. */
.cafe-pop {
    position: relative;
    width: min(58rem, 92vw, 97vh);
}

.cafe-pop__img { width: 100%; border-radius: 1.2rem; }

/* 버튼은 리소스에 포함돼 있지 않아 실측 위치에 얹는다(모바일 740x670 기준) */
.cafe-pop__link {
    position: absolute;
    left: 50%;
    top: 82.69%;
    transform: translateX(-50%);
    width: 69.05%;
    transition: filter 0.15s ease;
}
.cafe-pop__link img { width: 100%; }
.cafe-pop__link:hover { filter: brightness(1.07); }
.cafe-pop__link:active { transform: translateX(-50%) scale(0.98); }

.cafe-pop__close {
    position: absolute;
    top: -1.6rem;
    right: -1.6rem;
    z-index: 2;
    width: 5.2rem;
}
.cafe-pop__close img { width: 100%; }
.cafe-pop__close:active { transform: scale(0.94); }

/* ===================== 사전예약 결과 팝업 (완료/미완료) ===================== */
/* 시안 원본 788x674 (1240 기준) → 39.4rem, 내부 요소는 % 로 배치 */
.result {
    position: relative;
    width: 39.4rem;
}

.result__bg {
    display: block;
    width: 100%;
}

/* 시안의 빈 라운드 박스 영역(실측 x 17.5% / y 53.4~72.5%)에 사유 메시지 표시 */
.result__msg {
    position: absolute;
    left: 17.5%;
    right: 17.5%;
    top: 53.4%;
    height: 19.1%;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 1.4rem;
    overflow: hidden;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 500;
    line-height: 1.5;
    color: #24418c;
    white-space: pre-line;
}

#resultModal.is-fail .result__msg { display: flex; }

.result__close {
    position: absolute;
    top: -1.6rem;
    right: -1.6rem;
    width: 5.2rem;
}

.result__close img { display: block; width: 100%; }

.result__back {
    position: absolute;
    left: 50%;
    bottom: 7.5%;
    transform: translateX(-50%);
    width: 53.3%;
}

.result__back img { display: block; width: 100%; }
.result__back:active { transform: translateX(-50%) scale(0.97); }

/* ==========================================================================
   푸터 (모바일/PC 공통 · 페이지 최하단)
   - 시안은 흰 배경이지만 랜딩과 이질적이라, 바로 위 섹션 색을 그대로 이어받는다.
     모바일은 story 섹션 하단 띠(#dde9fc), PC 는 body 남색이 그대로 비치게 투명.
   ========================================================================== */
.site-footer { background: transparent; }

.site-footer__inner {
    width: 62rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 2.2rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.7em 2em;
    /* 620px 미만에서는 화면 비율로 축소, 그 이상에서는 시안 값(14px)으로 고정 */
    font-size: min(2rem, 14px);
    line-height: 1.5;
    letter-spacing: -0.01em;
    background: #dde9fc;
    color: #7585a5;
    text-align: center;
}

/* ==========================================================================
   PC 레이아웃 (1024px 이상)
   - 디자인 캔버스 3344x1882(16:9) 기준, 1rem = 디자인 px ÷ 10
   - 각 섹션 높이는 배경 비율에 맞춘 188.2rem (= 56.28vw)
   ========================================================================== */
.pc { display: none; }

@media (min-width: 1024px) {
    .wrap { display: none; }
    .pc { display: block; }
    body { background: #0d1b3a; }

    .pc section {
        position: relative;
        width: 100%;
        height: 188.2rem;
        overflow: hidden;
    }

    /* --- 푸터: 위 story 섹션 아트 하단색(#36485e 대)에서 body 남색으로 흘려보내 경계를 없앤다 --- */
    .site-footer { background: linear-gradient(to bottom, #36485e, #0d1b3a); }

    /* PC 캔버스(3344px) 기준으로 확대(1440px 등 좁은 PC 에서도 12px 아래로는 안 내려감) */
    .site-footer__inner {
        width: auto;
        padding: 3rem 4rem;
        gap: 0.7em 2.4em;
        font-size: max(2.4rem, 12px);
        background: none;
        color: rgba(255, 255, 255, 0.45);
    }

    /* --- 1. 사전예약 --- */
    .pc-hero { background: url('/sephiruthidle/images/pc-hero-bg-e77c2e5e84281cef0b70fc223b0a5c24.webp') center / cover no-repeat; }

    .pc-hero__logo {
        position: absolute;
        left: 5.6rem;
        top: 5.6rem;
        width: 30.4rem;
    }

    /* 260730 시안(2262x1264) 실측을 섹션 비율로 환산해 배치한다.
       타이틀 리소스(643x266)는 상단 28px 가 빈 여백이라, 시안의 글자 위치를 맞추려면
       음수 top 으로 그 여백만큼 위로 빼야 한다(잘리는 구간은 투명). */
    .pc-hero__title {
        position: absolute;
        left: 50%;
        top: -0.7rem;
        transform: translateX(-50%);
        width: 128.6rem;
    }

    /* 폼 패널(832x649)은 좌측, 보상 박스 2개는 우측 세로 2단 — 가운데 정렬이 아니다 */
    .pc-hero__panel {
        position: absolute;
        left: 14.72%;
        top: 30.14%;
        width: 123rem;
    }

    .pc-panel__bg { width: 100%; }

    .pc-panel__form { position: absolute; inset: 0; }

    .pc-panel__phone {
        position: absolute;
        left: 12%;
        top: 38.98%;
        display: flex;
        gap: 0.31%;
        width: 76.56%;
        height: 10.02%;
    }

    .pc-select {
        position: relative;
        width: 27.47%;
        height: 100%;
        background: url('/sephiruthidle/images/pc-input-telecom-3240e1fabe9eb429ae77216e618cba0a.webp') center / 100% 100% no-repeat;
    }
    .pc-select select {
        width: 100%;
        height: 100%;
        border: 0;
        background: transparent;
        appearance: none;
        -webkit-appearance: none;
        font-family: inherit;
        font-size: 3.4rem;
        color: #333;
        padding: 0 25% 0 18%;
        cursor: pointer;
    }
    .pc-select select:focus { outline: none; }
    .pc-select__arrow {
        position: absolute;
        right: 14%;
        top: 50%;
        transform: translateY(-50%);
        width: 2.6rem;
        pointer-events: none;
    }

    .pc-panel__phone input {
        flex: 1;
        height: 100%;
        border: 0;
        background: url('/sephiruthidle/images/pc-input-phone-145e2fd1cfad377b6e80cb3662b4c880.webp') center / 100% 100% no-repeat;
        font-family: inherit;
        font-size: 3.4rem;
        color: #333;
        padding: 0 3rem;
    }
    .pc-panel__phone input::placeholder { color: #b9bfd0; }
    .pc-panel__phone input:focus { outline: none; }

    .pc-consent {
        position: absolute;
        left: 13.34%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 73.32%;
    }
    .pc-consent--privacy { top: 55.78%; }
    .pc-consent--marketing { top: 62.71%; }

    .pc-consent__label {
        display: flex;
        align-items: center;
        gap: 1.6rem;
        cursor: pointer;
    }
    .pc-consent__label input { display: none; }
    .pc-consent__box {
        position: relative;
        width: 5.2rem;
        height: 5.2rem;
        background: url('/sephiruthidle/images/pc-checkbox-off-e981c3ffd0932190f94478031f15365f.webp') center / contain no-repeat;
    }
    /* 체크 이미지(70x54)는 체크가 박스 밖(우상단)으로 나가는 형태이며,
       파란 박스가 캔버스 x11/y5 부터 그려져 있어 그만큼 좌·하단으로 당겨서 빈 박스와 정렬한다 */
    .pc-consent__label input:checked + .pc-consent__box { background: none; }
    .pc-consent__label input:checked + .pc-consent__box::after {
        content: '';
        position: absolute;
        left: -1.2rem;
        bottom: -0.2rem;
        width: 7.6rem;
        height: 5.9rem;
        background: url('/sephiruthidle/images/pc-checkbox-on-9be33b3fa9f7f2f1394b3f2083f60f3d.webp') left bottom / contain no-repeat;
    }
    .pc-consent__text {
        font-size: 3.2rem;
        color: #333;
        font-weight: 500;
    }
    .pc-consent__text em { font-style: normal; color: #8a93a8; }

    .pc-consent__detail { width: 18.3rem; }
    .pc-consent__detail img { width: 100%; }

    .pc-panel__cta {
        position: absolute;
        left: 20.31%;
        top: 74.27%;
        width: 59.25%;
    }
    .pc-panel__cta img { width: 100%; }
    .pc-panel__cta:active { transform: scale(0.97); }
    .pc-panel__cta:disabled { opacity: 0.6; }

    /* 보상 박스 2개 — 모바일과 같은 874x389 리소스를 좌우로 나란히.
       수정본 시안 실측: 박스 각 875px, 좌우 간격 306px, top 817px (2262x1264 기준) */
    /* 보상 박스 2개 — 260730 시안에서 패널 오른쪽에 세로 2단(간격 6px)으로 바뀜 */
    .pc-hero__rewards {
        position: absolute;
        left: 52.61%;
        top: 30.14%;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        width: 107rem;
    }
    .pc-hero__rewards .reward-box { width: 100%; }
    .pc-hero__rewards .reward-box:hover { transform: translateY(-0.6rem); }

    /* 안내 배너: 직업 카드 화면에서 이 화면 하단으로 이동 */
    .pc-hero__footer {
        position: absolute;
        left: 50%;
        top: 85.52%;
        transform: translateX(-50%);
        width: 261.8rem;
    }

    /* --- 2. 직업 카드 ---
       시안의 배경은 픽셀 단위로 pc-class-bg 와 동일하다(실측 확인) — 같은 리소스를 그대로 쓴다.
       다만 바로 아래 클래스 섹션이 같은 이미지를 위에서부터 다시 그리는 탓에 경계에 하드한
       색 단차(하단 #8d9baf → 상단 #aed0fd)가 생긴다. 하단을 다음 섹션 상단색으로 흘려 지운다. */
    .pc-cards {
        background:
            linear-gradient(to bottom, rgba(174, 208, 253, 0) 90%, rgb(174, 208, 253) 100%),
            url('/sephiruthidle/images/pc-class-bg-af0139d49d9e3e0264e969e2fa9d46d8.webp') center / cover no-repeat;
    }

    /* 안내 배너가 사전예약 화면으로 빠져 하단이 비므로 카드를 세로 중앙에 둔다 */
    .pc-cards__row {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: space-between;
        width: 294.5rem;
    }

    .pc-card {
        position: relative;
        width: 32.16%;
        transition: transform 0.18s ease, filter 0.18s ease;
    }
    .pc-card__bg { width: 100%; }

    /* 자세히 보기 버튼은 카드 리소스에 포함돼 있지 않아 별도 이미지로 얹는다.
       카드 전체가 버튼이므로 이 이미지는 클릭 대상에서 빼 중첩 버튼을 만들지 않는다. */
    .pc-card__more {
        position: absolute;
        left: 24.3%;
        top: 88.9%;
        width: 51.4%;
        pointer-events: none;
    }

    .pc-card:hover { transform: translateY(-1.2rem); filter: brightness(1.04); }
    .pc-card:active { transform: translateY(-0.4rem); }

    /* --- 3. 클래스 --- */
    .pc-class { background: url('/sephiruthidle/images/pc-class-bg-af0139d49d9e3e0264e969e2fa9d46d8.webp') center / cover no-repeat; }

    .pc-class__title {
        position: absolute;
        left: 50%;
        top: 4.6rem;
        transform: translateX(-50%);
        width: 89rem;
    }

    /* 전체샷 기준: 캐릭터 머리가 클래스 타이틀 아래에서 시작 (높이 약 85%) */
    .pc-class__char {
        position: absolute;
        left: 50%;
        bottom: 0;
        transform: translateX(-50%);
        height: 85.5%;
        width: auto;
        max-width: none;
        transition: opacity 0.25s ease;
    }

    .pc-class__desc {
        position: absolute;
        left: 16rem;
        top: 16rem;
        width: 56rem;
        transition: opacity 0.25s ease;
    }

    .pc-class.is-fading .pc-class__char,
    .pc-class.is-fading .pc-class__desc { opacity: 0; }

    /* 기본 에셋(pc-nav)은 왼쪽(<), 호버 에셋(pc-nav-on)은 오른쪽(>)을 향하므로 상태별로 미러링을 반대로 준다 */
    .pc-class__nav {
        position: absolute;
        top: 48%;
        width: 9.2rem;
        height: 9.2rem;
        background: url('/sephiruthidle/images/pc-nav-293e7e0320b7b03a280dc43b059237a2.webp') center / contain no-repeat;
        z-index: 3;
    }
    .pc-class__nav:hover { background-image: url('/sephiruthidle/images/pc-nav-on-45440fee5b44cb67bbe6b5e6a804d207.webp'); }
    .pc-class__nav--prev { left: 15rem; }
    .pc-class__nav--prev:hover { transform: scaleX(-1); }
    .pc-class__nav--next { right: 15rem; transform: scaleX(-1); }
    .pc-class__nav--next:hover { transform: none; }

    .pc-class__thumbs {
        position: absolute;
        left: 50%;
        bottom: 9.7rem;
        transform: translateX(-50%);
        display: flex;
        gap: 8.1rem;
        z-index: 3;
    }
    .pc-thumb { width: 17.4rem; }
    .pc-thumb img { width: 100%; }
    .pc-thumb:hover { filter: brightness(1.1); }

    /* --- 4. 세피루스 키우기 이야기 --- */
    .pc-story { background: url('/sephiruthidle/images/pc-story-bg-de4835c9c4d6795396890b5adbb9713a.webp') center / cover no-repeat; }

    .pc-story__title {
        position: absolute;
        left: 50%;
        top: 11rem;
        transform: translateX(-50%);
        width: 124.5rem;
    }

    .pc-story__frame {
        position: absolute;
        left: 50%;
        top: 56rem;
        transform: translateX(-50%);
        width: 203rem;
    }

    .pc-story__frame-img {
        position: relative;
        width: 100%;
        z-index: 2;
        pointer-events: none;
    }

    /* 프레임 PNG(1356x855) 이중선 안쪽 개구부 실측: 좌 x41 / 우 x1322 / 상 y56 / 하 y776 (2px 겹침) */
    .pc-story__video {
        position: absolute;
        inset: 6.3% 2.3% 8.9% 2.9%;
        border-radius: 1rem;
        overflow: hidden;
        z-index: 1;
        background: #0a1630;
    }
    .pc-story__video > img,
    .pc-story__video video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border: 0;
        background: #000;
    }
    .pc-story__video .story__play {
        width: 14rem;
        height: 14rem;
    }
    .pc-story__video .story__play i {
        border-left-width: 4rem;
        border-top-width: 2.6rem;
        border-bottom-width: 2.6rem;
    }

    /* --- 진입 이벤트 팝업 PC 보정 ---
       PC 는 1rem 이 뷰포트/334.4 라 모바일 값(57rem)을 그대로 쓰면 팝업이 지나치게 작다. */
    .event-pop { width: 105rem; max-width: 78vw; max-height: 88vh; border-radius: 2.4rem; }
    .event-pop__close { top: 1.6rem; right: 1.6rem; width: 7.4rem; }
    .event-pop__track { right: 0.9rem; top: 1.4rem; bottom: 1.4rem; width: 1rem; border-radius: 0.5rem; }
    .event-pop__bar { padding: 2.4rem 3rem; gap: 2.6rem; }
    .event-pop__today { font-size: 2.7rem; gap: 1.4rem; }
    .event-pop__check { width: 3.6rem; height: 3.6rem; border-radius: 0.7rem; }
    .event-pop__today input:checked + .event-pop__check::after { border-width: 0 0.5rem 0.5rem 0; }
    .event-pop__ok { height: 6.4rem; padding: 0 4.4rem; border-radius: 3.2rem; font-size: 2.7rem; }
    /* --- 모달/팝업 PC 스케일 보정 --- */
    .modal__card { width: min(100rem, 86vw); padding: 6rem 5.4rem 5.4rem; border-radius: 2.6rem; }
    .modal__title { font-size: 4.2rem; }
    .modal__msg { margin-top: 2.6rem; font-size: 3.1rem; }
    .modal__terms { margin-top: 3rem; font-size: 2.8rem; border-radius: 1.6rem; padding: 2.6rem 3rem; }
    .modal__terms p + p { margin-top: 1.5rem; }
    .modal__ok { margin-top: 4rem; height: 8.4rem; border-radius: 4.4rem; font-size: 3.4rem; }

    /* 카페 유도 팝업 PC — 리소스가 1100x670 로 바뀌면서 버튼 위치도 달라진다.
       세로 상한도 PC 이미지 비율(1100/670)로 환산해 다시 잡는다(88vh x 1.642 = 144vh) */
    .cafe-pop { width: min(138rem, 78vw, 144vh); }
    .cafe-pop__img { border-radius: 2rem; }
    .cafe-pop__link { top: 84.78%; width: 46.45%; }
    .cafe-pop__close { top: -3rem; right: -3rem; width: 9.6rem; }

    /* PC 팝업 시안 1143x718 */
    .result { width: 114.3rem; }
    .result__msg {
        left: 12.1%;
        right: 12.1%;
        top: 50.2%;
        height: 17.9%;
        padding: 0 3rem;
        font-size: 3.1rem;
    }
    .result__close { top: -3rem; right: -3rem; width: 9.6rem; }
    /* 버튼을 박스 아래 여백(박스끝 68% ~ 하단 프레임 88%) 중앙에 배치. 6.5%는 프레임을 덮어 너무 내려가 보였음 */
    .result__back { bottom: 16%; width: 42%; }
}
