/* 기본 리셋 및 폰트 설정 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* 색상 팔레트 */
    --color-bg: #faf8f5;
    --color-primary: #f4e8e0;
    --color-secondary: #e8d8d0;
    --color-accent: #0c3287;
    --color-text: #000000;
    --color-text-light: #4a4a4a;
    --color-white: #ffffff;
    
    /* 그라데이션 */
    --gradient-warm: linear-gradient(135deg, #0c3287 0%, #1a4a9f 100%);
    --gradient-cool: linear-gradient(135deg, #0c3287 0%, #2563b8 100%);
    --gradient-soft: linear-gradient(135deg, #faf8f5 0%, #f0e8e0 100%);
    
    /* 간격 */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    background: var(--color-bg);
    color: var(--color-text);
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 진행 상황 인디케이터 */
.progress-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--color-white);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-accent);
    transition: opacity 0.3s ease;
}

.progress-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 페이지 컨테이너 */
.pages-container {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
}

.page {
    width: 100%;
    height: 100vh;
    display: none;
    opacity: 0;
    padding: 60px 24px 100px;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

.page.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

/* 랜딩 페이지 */
.landing-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.main-title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--color-text);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0px;
}

.main-title .title-my {
    color: #000000;
}

.main-title .title-underscore {
    color: #0c3287;
}

.subtitle {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text-light);
    letter-spacing: 1px;
    margin-bottom: var(--spacing-lg);
}

.decorative-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: var(--spacing-md) auto;
}

.landing-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text);
    margin: var(--spacing-lg) 0;
    font-weight: 300;
}

.start-btn {
    background: var(--gradient-warm);
    border: none;
    padding: 16px 48px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-white);
    cursor: pointer;
    margin-top: var(--spacing-lg);
    box-shadow: 0 4px 15px rgba(12, 50, 135, 0.3);
    transition: all 0.3s ease;
}

.start-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(12, 50, 135, 0.3);
}

/* 페이지 콘텐츠 */
.page-content {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0 80px 0;
}

.page-number {
    font-family: 'Pretendard', sans-serif;
    font-size: 14px;
    font-weight: 300;
    color: var(--color-accent);
    margin-bottom: var(--spacing-xs);
    letter-spacing: 2px;
}

.page-title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 100;
    margin-bottom: var(--spacing-md);
    letter-spacing: 0px;
}

.page-title .title-my {
    color: #000000;
}

.page-title .title-color {
    color: var(--color-accent);
}

/* 참고 이미지 */
.reference-image {
    width: 100%;
    margin: var(--spacing-md) 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.reference-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    text-align: center;
    font-size: 12px;
    color: var(--color-text-light);
    margin-top: var(--spacing-sm);
    font-weight: 300;
}

/* 색상 원형 컨테이너 */
.color-circles-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: var(--spacing-md) 0 var(--spacing-lg);
    padding: 10px;
}

.color-circle {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(12px);
    animation: floatCircle 4s ease-in-out infinite;
}

.color-circle:nth-child(1) { animation-delay: 0s; }
.color-circle:nth-child(2) { animation-delay: 0.5s; }
.color-circle:nth-child(3) { animation-delay: 1s; }
.color-circle:nth-child(4) { animation-delay: 1.5s; }
.color-circle:nth-child(5) { animation-delay: 2s; }
.color-circle:nth-child(6) { animation-delay: 2.5s; }
.color-circle:nth-child(7) { animation-delay: 3s; }
.color-circle:nth-child(8) { animation-delay: 3.5s; }

@keyframes floatCircle {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.05);
    }
}

/* 설명 텍스트 */
.description {
    margin: var(--spacing-md) 0;
}

.main-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: var(--spacing-md);
    font-weight: 300;
}

.sub-text {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    font-weight: 300;
}

/* 가이드 박스 */
.guide-box {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    margin-bottom: 100px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.guide-box h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--spacing-sm);
    letter-spacing: 0.5px;
}

.guide-box ul {
    list-style: none;
}

.guide-box ul li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    font-weight: 300;
}

.guide-box ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* 스티커 데모 컨테이너 */
.type-demo-container {
    margin: var(--spacing-xl) 0;
}

.scale-demo {
    position: relative;
}

/* 유형 스케일 */
.type-scales {
    margin: var(--spacing-lg) 0;
}

.scale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    gap: 12px;
}

.scale-label-left,
.scale-label-right {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text);
    min-width: 60px;
    text-align: center;
}

.scale-line {
    flex: 1;
    height: 1px;
    background: var(--color-text);
    position: relative;
}

.scale-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 8px;
    background: var(--color-text);
}

.scale-line::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 8px;
    background: var(--color-text);
}

/* 애니메이션 스티커 */
.animated-sticker {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(12, 50, 136, 0.85) 0%, rgba(12, 50, 136, 0) 70%);
    filter: blur(8px);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    animation: stickerMove 10s infinite;
}

@keyframes stickerMove {
    /* 위치 1: 72% - 보임 */
    0%, 13% {
        left: 72%;
        opacity: 1;
    }
    /* 사라지기 시작 */
    15% {
        left: 72%;
        opacity: 0.5;
    }
    /* 완전히 사라짐 */
    17% {
        left: 72%;
        opacity: 0;
    }
    /* 위치 2로 즉시 이동 (안 보이는 상태) */
    17.1% {
        left: 23%;
        opacity: 0;
    }
    /* 나타나기 시작 */
    19% {
        left: 23%;
        opacity: 0.5;
    }
    /* 위치 2: 23% - 완전히 보임 */
    21%, 33% {
        left: 23%;
        opacity: 1;
    }
    /* 사라지기 시작 */
    35% {
        left: 23%;
        opacity: 0.5;
    }
    /* 완전히 사라짐 */
    37% {
        left: 23%;
        opacity: 0;
    }
    /* 위치 3로 즉시 이동 */
    37.1% {
        left: 88%;
        opacity: 0;
    }
    /* 나타나기 시작 */
    39% {
        left: 88%;
        opacity: 0.5;
    }
    /* 위치 3: 88% - 완전히 보임 */
    41%, 53% {
        left: 88%;
        opacity: 1;
    }
    /* 사라지기 시작 */
    55% {
        left: 88%;
        opacity: 0.5;
    }
    /* 완전히 사라짐 */
    57% {
        left: 88%;
        opacity: 0;
    }
    /* 위치 4로 즉시 이동 */
    57.1% {
        left: 45%;
        opacity: 0;
    }
    /* 나타나기 시작 */
    59% {
        left: 45%;
        opacity: 0.5;
    }
    /* 위치 4: 45% - 완전히 보임 */
    61%, 73% {
        left: 45%;
        opacity: 1;
    }
    /* 사라지기 시작 */
    75% {
        left: 45%;
        opacity: 0.5;
    }
    /* 완전히 사라짐 */
    77% {
        left: 45%;
        opacity: 0;
    }
    /* 위치 5로 즉시 이동 */
    77.1% {
        left: 15%;
        opacity: 0;
    }
    /* 나타나기 시작 */
    79% {
        left: 15%;
        opacity: 0.5;
    }
    /* 위치 5: 15% - 완전히 보임 */
    81%, 93% {
        left: 15%;
        opacity: 1;
    }
    /* 사라지기 시작 */
    95% {
        left: 15%;
        opacity: 0.5;
    }
    /* 완전히 사라짐 */
    97% {
        left: 15%;
        opacity: 0;
    }
    /* 처음으로 즉시 이동 */
    97.1%, 100% {
        left: 72%;
        opacity: 0;
    }
}

/* 꿈 문장 컨테이너 */
.word-dream-container {
    position: relative;
    margin: var(--spacing-xl) 0;
    padding: 80px 20px;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dream-sentence {
    font-size: 20px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    line-height: 1.8;
    z-index: 10;
    position: relative;
}

/* 떠다니는 작은 단어들 */
.floating-word-small {
    position: absolute;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-accent);
    opacity: 0.5;
    left: 50%;
    top: 50%;
    transform: translate(var(--x), var(--y));
    animation: floatWordSmall 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatWordSmall {
    0%, 100% {
        transform: translate(var(--x), var(--y));
        opacity: 0.5;
    }
    50% {
        transform: translate(var(--x), calc(var(--y) - 15px));
        opacity: 0.8;
    }
}

/* MY THREAD 페이지 */
.thread-board {
    margin: var(--spacing-xl) 0;
    display: flex;
    justify-content: center;
}

.thread-board svg {
    width: 100%;
    max-width: 300px;
    height: auto;
}

/* MY CUT 페이지 */
.cut-demo {
    margin: var(--spacing-xl) 0;
}

.page-visual {
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    min-height: 200px;
}

.left-page,
.right-page {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.left-page {
    background: var(--color-accent);
}

.right-page {
    background: var(--color-white);
    position: relative;
}

.divider {
    width: 2px;
    background: var(--color-text);
    opacity: 0.2;
}

.page-label {
    font-size: 14px;
    font-weight: 300;
    color: var(--color-text);
    line-height: 1.8;
}

.left-page .page-label {
    color: var(--color-white);
}

/* MY SCRATCH 페이지 */
.scratch-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
}

.scratch-item {
    background: transparent;
    border-radius: 12px;
    padding: var(--spacing-lg);
    font-size: 15px;
    font-weight: 300;
    color: var(--color-text);
    text-align: center;
    line-height: 1.8;
    min-height: 120px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: revealMessage 3s ease-in-out forwards;
}

.scratch-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d4d4d4 0%, #b8b8b8 100%);
    border-radius: 12px;
    animation: fadeOutBox 3s ease-in-out forwards;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

/* MY TOUCH 페이지 */
.touch-container {
    margin: var(--spacing-xl) 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.touch-pouch {
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, rgba(12, 50, 135, 0.05) 0%, rgba(12, 50, 135, 0.1) 100%);
    border: 2px solid var(--color-accent);
    border-radius: 20px;
    padding: var(--spacing-xl);
    position: relative;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sand-visual {
    width: 100%;
    height: 200px;
    position: relative;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
}

.sand-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    opacity: 0.6;
    animation: floatSand 4s ease-in-out infinite;
}

.sand-particle:nth-child(2) {
    animation-delay: 0.5s;
    width: 10px;
    height: 10px;
}

.sand-particle:nth-child(3) {
    animation-delay: 1s;
    width: 6px;
    height: 6px;
}

.sand-particle:nth-child(4) {
    animation-delay: 1.5s;
}

.sand-particle:nth-child(5) {
    animation-delay: 2s;
    width: 7px;
    height: 7px;
}

.sand-particle:nth-child(6) {
    animation-delay: 2.5s;
}

.sand-particle:nth-child(7) {
    animation-delay: 3s;
    width: 9px;
    height: 9px;
}

.sand-particle:nth-child(8) {
    animation-delay: 3.5s;
}

.pouch-label {
    margin-top: var(--spacing-md);
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 400;
    opacity: 0.8;
}

@keyframes floatSand {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-8px) translateX(3px);
    }
}

/* MY DAY 페이지 - 캘린더 */
.calendar-container {
    margin: var(--spacing-lg) 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    background: transparent;
    padding: var(--spacing-md);
    border-radius: 12px;
}

.calendar-header {
    font-size: 11px;
    font-weight: 500;
    color: var(--color-accent);
    text-align: center;
    padding: 8px 4px;
    border-bottom: 1px solid var(--color-primary);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: var(--color-bg);
}

.calendar-day:empty {
    background: transparent;
    border: none;
}

/* MY QUESTION 페이지 */
.question-example {
    margin: var(--spacing-xl) 0;
}

.question-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: var(--spacing-lg);
}

.question-mark {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-accent);
    flex-shrink: 0;
}

.question-text {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.6;
}

.answer-space {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: var(--spacing-md);
}

.answer-label {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-accent);
    flex-shrink: 0;
}

.answer-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-line {
    height: 1px;
    background: var(--color-text);
    opacity: 0.3;
}

/* MY FACE 페이지 */
.face-circles {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg) 0;
}

.face-circle {
    width: 180px;
    height: 180px;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    background: transparent;
}

.message-bubble {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.message-bubble p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--spacing-xs);
    font-weight: 300;
}

.hearts {
    font-size: 14px;
    color: #ff6b6b;
}

/* 흔적 옵션 */
.mark-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.mark-option {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
}

.mark-option:active {
    transform: scale(0.95);
}

.mark-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-xs);
}

.mark-option p {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 400;
}

/* 마지막 페이지 */
.ending-content {
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding-bottom: 80px;
}

.ending-title {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 32px;
    font-weight: 300;
    color: var(--color-accent);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0px;
}

.ending-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text);
    margin: var(--spacing-lg) 0;
    font-weight: 300;
}

.ending-subtext {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
}

.ending-quote {
    background: var(--gradient-soft);
    padding: var(--spacing-md);
    border-radius: 16px;
    margin: var(--spacing-lg) 0;
}

.ending-quote p {
    font-size: 15px;
    font-style: italic;
    color: var(--color-text);
    font-weight: 300;
    line-height: 1.7;
}

.ending-message {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-light);
    margin: var(--spacing-lg) 0;
    font-weight: 300;
}

/* 엔딩 버튼 컨테이너 */
.ending-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xl);
    width: 100%;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* 전시 현황 버튼 */
.exhibition-btn {
    background: var(--gradient-cool);
    border: none;
    padding: 16px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-white);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(12, 50, 135, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.exhibition-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px rgba(12, 50, 135, 0.3);
}

/* 처음으로 버튼 */
.restart-btn {
    background: var(--color-white);
    border: 2px solid var(--color-accent);
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.restart-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* 네비게이션 */
.navigation {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 1000;
    padding: 0 24px;
    pointer-events: none;
}

.nav-btn {
    pointer-events: auto;
}

.nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.nav-btn:active {
    transform: scale(0.9);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 애니메이션 완료 후 스타일 고정 */
[data-animated="true"] .fade-in,
[data-animated="true"] .fade-in-delay,
[data-animated="true"] .fade-in-delay-2,
[data-animated="true"] .fade-in-delay-3,
[data-animated="true"] .fade-in-delay-4,
[data-animated="true"] .fade-in-delay-5 {
    animation: none !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatWord {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
    animation-fill-mode: forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease 0.2s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease 0.4s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease 0.6s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-delay-4 {
    animation: fadeIn 0.8s ease 0.8s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

.fade-in-delay-5 {
    animation: fadeIn 0.8s ease 1s forwards;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* 애니메이션 완료 후 고정 */
.fade-in,
.fade-in-delay,
.fade-in-delay-2,
.fade-in-delay-3,
.fade-in-delay-4,
.fade-in-delay-5 {
    will-change: auto;
}

/* 페이지 전환 애니메이션 */
.page.slide-out-left {
    animation: slideOutLeft 0.4s ease forwards;
}

.page.slide-in-right {
    animation: slideInRight 0.4s ease forwards;
}

.page.slide-out-right {
    animation: slideOutRight 0.4s ease forwards;
}

.page.slide-in-left {
    animation: slideInLeft 0.4s ease forwards;
}

@keyframes slideOutLeft {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOutBox {
    0% {
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes revealMessage {
    0% {
        opacity: 0;
    }
    70% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* 반응형 - 작은 화면 */
@media (max-width: 375px) {
    .main-title {
        font-size: 32px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .main-text {
        font-size: 16px;
    }
    
    .emoji {
        font-size: 28px;
    }
    
    .mark-icon {
        font-size: 40px;
    }
}

/* 반응형 - 큰 화면 (태블릿) */
@media (min-width: 768px) {
    .page-content,
    .landing-content,
    .ending-content {
        max-width: 500px;
    }
    
    .reference-image {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* 터치 액션 - 가로 스와이프만 허용 */
.pages-container {
    touch-action: pan-x;
}

.page {
    touch-action: pan-x;
}

.page-content {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

/* 스크롤바 숨기기 */
::-webkit-scrollbar {
    display: none;
}

body, html {
    -ms-overflow-style: none;
    scrollbar-width: none;
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
}

.page-content::-webkit-scrollbar {
    display: none;
}