* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    background: #0E21A0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px
        );
    min-height: 100vh;
    padding: 0;
    padding-top: 80px;
    overflow-x: hidden;
    position: relative;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* 픽셀 폰트 임포트 */
/* DungGeunMo - 픽셀 한글 폰트 */
@font-face {
    font-family: 'DungGeunMo';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_six@1.2/DungGeunMo.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* NeoDunggeunmoPro - 개선된 픽셀 한글 폰트 */
@font-face {
    font-family: 'NeoDunggeunmoPro';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2310@1.0/NeoDunggeunmoPro-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* 픽셀 네비게이션 헤더 */
.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #4D2FB2;
    border-bottom: 5px solid #F375C2;
    box-shadow: 
        0 0 0 2px #0E21A0,
        0 6px 0 0 rgba(0, 0, 0, 0.3);
    z-index: 1000;
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-logo {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #fff;
    text-shadow: 
        3px 3px 0 #0E21A0,
        4px 4px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-link {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    font-weight: normal;
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    background: #B153D7;
    border: 3px solid #F375C2;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
    white-space: nowrap;
}

.nav-link:hover {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.nav-link.active {
    background: #F375C2;
    border-color: #fff;
}

/* 배경 장식 요소들 - 픽셀 스타일 */
.decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.ribbon, .cat, .sparkle {
    position: absolute;
    font-size: 2.5rem;
    animation: pixelFloat 4s ease-in-out infinite;
    opacity: 0.9;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.3));
}

.ribbon-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.ribbon-2 {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.ribbon-3 {
    bottom: 15%;
    left: 20%;
    animation-delay: 2s;
}

.cat-1 {
    top: 30%;
    right: 10%;
    animation-delay: 0.5s;
}

.cat-2 {
    bottom: 25%;
    right: 20%;
    animation-delay: 1.5s;
}

.cat-3 {
    top: 60%;
    left: 15%;
    animation-delay: 2.5s;
}

.sparkle {
    font-size: 2rem;
}

.sparkle-1 {
    top: 15%;
    left: 30%;
    animation-delay: 0.3s;
}

.sparkle-2 {
    top: 50%;
    right: 25%;
    animation-delay: 1.3s;
}

.sparkle-3 {
    bottom: 20%;
    left: 40%;
    animation-delay: 2.3s;
}

.sparkle-4 {
    top: 70%;
    right: 35%;
    animation-delay: 1.8s;
}

@keyframes pixelFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(-20px) translateX(-5px);
    }
    75% {
        transform: translateY(-10px) translateX(5px);
    }
}

/* 메인 컨테이너 */
.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 20px;
}

html {
    scroll-behavior: smooth;
}

/* 현수막 스타일 - 픽셀 게임 스타일 */
.banner {
    background: #4D2FB2;
    border: 6px solid #F375C2;
    box-shadow: 
        0 0 0 2px #0E21A0,
        8px 8px 0 0 rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.4);
    padding: 40px 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

/* 반짝이는 별 테두리 애니메이션 */
.banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #fbbf24, #F375C2, #B153D7, #fbbf24, #F375C2);
    background-size: 400% 400%;
    animation: starBorder 3s ease-in-out infinite;
    z-index: -1;
    opacity: 0.6;
}

@keyframes starBorder {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* 그라데이션 배경 파티클 효과 */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 8px,
            rgba(255, 255, 255, 0.05) 8px,
            rgba(255, 255, 255, 0.05) 16px
        );
    pointer-events: none;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

.banner-top, .banner-bottom {
    text-align: center;
    font-size: 2.5rem;
    margin: 10px 0;
}

.emoji-deco {
    display: inline-block;
    margin: 0 15px;
    animation: pixelBounce 1.2s ease-in-out infinite;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.4));
}

.emoji-deco:nth-child(2) {
    animation-delay: 0.3s;
}

.emoji-deco:nth-child(3) {
    animation-delay: 0.6s;
}

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

.banner-title {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2.8rem;
    font-weight: normal;
    color: #fff;
    text-align: center;
    text-shadow: 
        4px 4px 0 #0E21A0,
        6px 6px 0 rgba(0, 0, 0, 0.5),
        0 0 20px rgba(251, 191, 36, 0.6),
        0 0 40px rgba(243, 117, 194, 0.4);
    line-height: 1.5;
    margin: 20px 0;
    position: relative;
    z-index: 1;
    letter-spacing: 2px;
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 
            4px 4px 0 #0E21A0,
            6px 6px 0 rgba(0, 0, 0, 0.5),
            0 0 20px rgba(251, 191, 36, 0.6),
            0 0 40px rgba(243, 117, 194, 0.4);
    }
    50% {
        text-shadow: 
            4px 4px 0 #0E21A0,
            6px 6px 0 rgba(0, 0, 0, 0.5),
            0 0 30px rgba(251, 191, 36, 0.9),
            0 0 60px rgba(243, 117, 194, 0.7);
    }
}

/* 호연님 이름 하이라이트 */
.name-highlight {
    position: relative;
    color: #fbbf24;
    text-shadow: 
        3px 3px 0 #0E21A0,
        0 0 20px rgba(251, 191, 36, 1),
        0 0 40px rgba(251, 191, 36, 0.8),
        0 0 60px rgba(243, 117, 194, 0.6);
    animation: nameGlow 1.5s ease-in-out infinite;
}

@keyframes nameGlow {
    0%, 100% {
        text-shadow: 
            3px 3px 0 #0E21A0,
            0 0 20px rgba(251, 191, 36, 1),
            0 0 40px rgba(251, 191, 36, 0.8);
    }
    50% {
        text-shadow: 
            3px 3px 0 #0E21A0,
            0 0 30px rgba(251, 191, 36, 1),
            0 0 60px rgba(251, 191, 36, 1),
            0 0 80px rgba(243, 117, 194, 0.8);
    }
}

/* 배너 파티클 */
.banner-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.banner-particles .particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.7;
    animation: floatParticle 4s ease-in-out infinite;
}

.banner-particles .particle:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.banner-particles .particle:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: 0.5s;
}

.banner-particles .particle:nth-child(3) {
    top: 60%;
    left: 15%;
    animation-delay: 1s;
}

.banner-particles .particle:nth-child(4) {
    top: 70%;
    left: 85%;
    animation-delay: 1.5s;
}

.banner-particles .particle:nth-child(5) {
    top: 30%;
    left: 50%;
    animation-delay: 2s;
}

.banner-particles .particle:nth-child(6) {
    top: 80%;
    left: 40%;
    animation-delay: 2.5s;
}

.banner-particles .particle:nth-child(7) {
    top: 40%;
    left: 70%;
    animation-delay: 3s;
}

.banner-particles .particle:nth-child(8) {
    top: 50%;
    left: 25%;
    animation-delay: 3.5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-30px) translateX(-10px) rotate(180deg) scale(1);
    }
    75% {
        transform: translateY(-15px) translateX(15px) rotate(270deg) scale(1.1);
    }
}

.banner-subtitle {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    color: #F375C2;
    text-align: center;
    font-weight: normal;
    text-shadow: 
        2px 2px 0 #0E21A0,
        3px 3px 4px rgba(0, 0, 0, 0.6);
    margin: 20px 0;
    position: relative;
    z-index: 1;
}

/* 축하하기 버튼 섹션 - 픽셀 게임 스타일 */
.celebrate-section {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.celebrate-btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #0E21A0;
    border: 6px solid #F375C2;
    box-shadow: 
        0 0 0 3px #B153D7,
        8px 8px 0 0 rgba(0, 0, 0, 0.4),
        0 0 30px rgba(251, 191, 36, 0.5);
    padding: 25px 50px;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2rem;
    font-weight: normal;
    cursor: pointer;
    transition: all 0.1s ease;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 10;
    animation: btnPulse 2s ease-in-out infinite;
}

@keyframes btnPulse {
    0%, 100% {
        box-shadow: 
            0 0 0 3px #B153D7,
            8px 8px 0 0 rgba(0, 0, 0, 0.4),
            0 0 30px rgba(251, 191, 36, 0.5);
    }
    50% {
        box-shadow: 
            0 0 0 3px #B153D7,
            8px 8px 0 0 rgba(0, 0, 0, 0.4),
            0 0 50px rgba(251, 191, 36, 0.8);
    }
}

.celebrate-btn:hover {
    transform: translate(4px, 4px);
    box-shadow: 
        0 0 0 3px #B153D7,
        4px 4px 0 0 rgba(0, 0, 0, 0.4),
        0 0 40px rgba(251, 191, 36, 0.8);
}

.celebrate-btn:active {
    transform: translate(8px, 8px);
    box-shadow: 
        0 0 0 3px #B153D7,
        0px 0px 0 0 rgba(0, 0, 0, 0.4),
        0 0 60px rgba(251, 191, 36, 1);
}

.btn-icon {
    font-size: 2.5rem;
    animation: btnIconSpin 2s linear infinite;
}

.btn-icon:last-child {
    animation-delay: 1s;
}

@keyframes btnIconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-15deg) scale(1.1);
    }
    75% {
        transform: rotate(15deg) scale(1.1);
    }
}

.celebrate-hint {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.1rem;
    color: #F375C2;
    margin-top: 15px;
    text-shadow: 2px 2px 0 #0E21A0;
    font-weight: normal;
    animation: hintBlink 2s ease-in-out infinite;
}

@keyframes hintBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* 축하 카운터 */
.celebrate-counter {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.4rem;
    color: #fbbf24;
    margin-top: 20px;
    text-shadow: 
        2px 2px 0 #0E21A0,
        0 0 10px rgba(251, 191, 36, 0.8);
    font-weight: normal;
}

.counter-number {
    display: inline-block;
    font-size: 2rem;
    color: #F375C2;
    text-shadow: 
        3px 3px 0 #0E21A0,
        0 0 20px rgba(243, 117, 194, 1);
    animation: counterGlow 1s ease-in-out infinite;
    min-width: 60px;
}

@keyframes counterGlow {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* 버튼 주변 파티클 */
.btn-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.idle-particle {
    position: absolute;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: idleFloat 3s ease-in-out infinite;
}

.idle-particle:nth-child(1) {
    top: 0;
    left: 50%;
    animation-delay: 0s;
}

.idle-particle:nth-child(2) {
    top: 50%;
    right: 0;
    animation-delay: 0.75s;
}

.idle-particle:nth-child(3) {
    bottom: 0;
    left: 50%;
    animation-delay: 1.5s;
}

.idle-particle:nth-child(4) {
    top: 50%;
    left: 0;
    animation-delay: 2.25s;
}

@keyframes idleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* 픽셀 폭죽 효과 */
.pixel-firework {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 1.5rem;
    font-weight: 900;
    animation: fireworkExplode 1s ease-out forwards;
}

@keyframes fireworkExplode {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) scale(0.5);
    }
}

.pixel-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    width: 12px;
    height: 12px;
    animation: particleFall 1.5s ease-out forwards;
}

@keyframes particleFall {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(var(--tx), var(--ty)) rotate(360deg);
    }
}

/* 말풍선 인터뷰 섹션 - 픽셀 게임 스타일 */
.interview-section {
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.speech-bubble {
    background: #fff;
    border: 5px solid;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.3);
    padding: 25px 30px;
    position: relative;
    animation: bubbleAppear 0.6s steps(6, end);
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

@keyframes bubbleAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* 픽셀 아바타 */
.avatar-pixel {
    font-size: 4rem;
    min-width: 60px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 4px solid;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    animation: avatarBounce 2s ease-in-out infinite;
}

.question-avatar {
    border-color: #B153D7;
}

.answer-avatar {
    border-color: #F375C2;
}

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

.bubble-content {
    flex: 1;
}

.speech-bubble.question {
    border-color: #B153D7;
    margin-left: 0;
    margin-right: auto;
    max-width: 80%;
}

.speech-bubble.question::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 70px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #B153D7;
}

.speech-bubble.answer {
    border-color: #F375C2;
    margin-left: auto;
    margin-right: 0;
    max-width: 80%;
    animation-delay: 0.3s;
    flex-direction: row-reverse;
}

.speech-bubble.answer::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 70px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #F375C2;
}

.bubble-label {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
    color: #0E21A0;
    margin-bottom: 10px;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
}

.bubble-text {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.2rem;
    color: #374151;
    line-height: 1.7;
    font-weight: normal;
}

/* 타이핑 애니메이션 */
.typing-text {
    overflow: hidden;
    border-right: 3px solid #B153D7;
    white-space: nowrap;
    animation: typing 3s steps(40, end), blink 0.75s step-end infinite;
    animation-fill-mode: forwards;
}

.answer .typing-text {
    border-right-color: #F375C2;
    animation-delay: 0.5s;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: currentColor;
    }
}

.bubble-emoji {
    position: absolute;
    bottom: -40px;
    right: 20px;
    font-size: 2.5rem;
    animation: float 2s ease-in-out infinite;
}

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

/* 타이머 섹션 - 8비트 게임 스타일 */
.timer-section {
    margin-bottom: 40px;
    position: relative;
}

/* 타이머 주변 도는 별 파티클 */
.timer-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 0;
}

.orbit-star {
    position: absolute;
    font-size: 2rem;
    opacity: 0.8;
}

.orbit-star:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitStar 8s linear infinite;
}

.orbit-star:nth-child(2) {
    top: 25%;
    right: 0;
    animation: orbitStar 8s linear infinite 1.33s;
}

.orbit-star:nth-child(3) {
    bottom: 25%;
    right: 0;
    animation: orbitStar 8s linear infinite 2.66s;
}

.orbit-star:nth-child(4) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: orbitStar 8s linear infinite 4s;
}

.orbit-star:nth-child(5) {
    bottom: 25%;
    left: 0;
    animation: orbitStar 8s linear infinite 5.33s;
}

.orbit-star:nth-child(6) {
    top: 25%;
    left: 0;
    animation: orbitStar 8s linear infinite 6.66s;
}

@keyframes orbitStar {
    0% {
        transform: rotate(0deg) translateX(300px) rotate(0deg) scale(1);
        opacity: 0.8;
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) translateX(300px) rotate(-180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) translateX(300px) rotate(-360deg) scale(1);
        opacity: 0.8;
    }
}

.timer-box {
    background: #B153D7;
    border: 6px solid #F375C2;
    box-shadow: 
        0 0 0 2px #0E21A0,
        8px 8px 0 0 rgba(0, 0, 0, 0.3),
        0 0 30px rgba(177, 83, 215, 0.5);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: boxPulse 2s ease-in-out infinite;
}

@keyframes boxPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 
            0 0 0 2px #0E21A0,
            8px 8px 0 0 rgba(0, 0, 0, 0.3),
            0 0 30px rgba(177, 83, 215, 0.5);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 
            0 0 0 2px #0E21A0,
            8px 8px 0 0 rgba(0, 0, 0, 0.3),
            0 0 50px rgba(177, 83, 215, 0.8);
    }
}

.timer-box h2 {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 30px;
    text-shadow: 
        3px 3px 0 #0E21A0,
        4px 4px 0 rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0E21A0;
    border: 4px solid #F375C2;
    box-shadow: 
        0 0 0 2px #fff,
        6px 6px 0 0 rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    min-width: 90px;
    position: relative;
    overflow: hidden;
}

/* 플립 애니메이션 */
.flip-number {
    position: relative;
    display: inline-block;
}

.flip-number.flipping {
    animation: flipAnimation 0.6s ease-in-out;
}

@keyframes flipAnimation {
    0% {
        transform: rotateX(0deg);
    }
    50% {
        transform: rotateX(90deg);
        opacity: 0;
    }
    51% {
        transform: rotateX(-90deg);
        opacity: 0;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 1;
    }
}

.time-value {
    font-family: 'DungGeunMo', 'Courier New', monospace;
    font-size: 3.5rem;
    font-weight: normal;
    color: #F375C2;
    line-height: 1;
    text-shadow: 
        2px 2px 0 rgba(0, 0, 0, 0.5),
        0 0 10px rgba(243, 117, 194, 0.8);
}

.time-label {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1rem;
    color: #fff;
    margin-top: 8px;
    font-weight: normal;
}

.time-separator {
    font-family: 'DungGeunMo', 'Courier New', monospace;
    font-size: 3rem;
    color: #fff;
    font-weight: normal;
    text-shadow: 
        2px 2px 0 #0E21A0;
    animation: separatorBlink 1s ease-in-out infinite;
}

@keyframes separatorBlink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

/* 타이핑 메시지 */
.typing-message {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    color: #fff;
    font-weight: normal;
    text-shadow: 
        2px 2px 0 #0E21A0,
        0 0 10px rgba(251, 191, 36, 0.6);
    animation: messageGlow 2s ease-in-out infinite;
}

@keyframes messageGlow {
    0%, 100% {
        text-shadow: 
            2px 2px 0 #0E21A0,
            0 0 10px rgba(251, 191, 36, 0.6);
    }
    50% {
        text-shadow: 
            2px 2px 0 #0E21A0,
            0 0 20px rgba(251, 191, 36, 1);
    }
}

/* 편지 섹션 - 픽셀 아트 스타일 */
.letter-section {
    margin-bottom: 40px;
    animation: pixelFadeIn 0.8s steps(8, end);
}

@keyframes pixelFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter-box {
    background: #fff;
    border: 6px solid #B153D7;
    box-shadow: 
        0 0 0 2px #4D2FB2,
        8px 8px 0 0 rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.letter-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 4px dashed #B153D7;
}

.letter-header h2 {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 2.8rem;
    color: #4D2FB2;
    text-shadow: 
        3px 3px 0 #F375C2;
}

.letter-content {
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.3rem;
    line-height: 2;
    color: #0E21A0;
}

.letter-signature {
    text-align: right;
    font-style: italic;
    color: #4D2FB2;
    margin-top: 20px;
    font-weight: 700;
}

/* 네비게이션 버튼 - 게임 버튼 스타일 */
.nav-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #B153D7;
    color: #fff;
    text-decoration: none;
    padding: 20px 40px;
    font-family: 'DungGeunMo', 'NeoDunggeunmoPro', 'Noto Sans KR', sans-serif;
    font-size: 1.6rem;
    font-weight: normal;
    border: 5px solid #F375C2;
    box-shadow: 
        0 0 0 2px #0E21A0,
        6px 6px 0 0 rgba(0, 0, 0, 0.4);
    transition: all 0.1s ease;
    letter-spacing: 1px;
}

.nav-btn:hover {
    transform: translate(3px, 3px);
    box-shadow: 
        0 0 0 2px #0E21A0,
        3px 3px 0 0 rgba(0, 0, 0, 0.4);
}

.nav-btn:active {
    transform: translate(6px, 6px);
    box-shadow: 
        0 0 0 2px #0E21A0,
        0px 0px 0 0 rgba(0, 0, 0, 0.4);
}

.btn-emoji {
    font-size: 2.2rem;
    filter: drop-shadow(2px 2px 0px rgba(0, 0, 0, 0.3));
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav-logo {
        font-size: 1.2rem;
        text-align: center;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-link {
        font-size: 0.95rem;
        padding: 8px 15px;
    }

    .container {
        padding: 10px;
    }

    .banner-title {
        font-size: 2rem;
    }

    .banner-subtitle {
        font-size: 1.1rem;
    }

    .banner-particles .particle {
        font-size: 1.2rem;
    }

    .celebrate-btn {
        font-size: 1.5rem;
        padding: 20px 35px;
        gap: 10px;
    }

    .btn-icon {
        font-size: 2rem;
    }

    .celebrate-hint {
        font-size: 1rem;
    }

    .celebrate-counter {
        font-size: 1.2rem;
    }

    .counter-number {
        font-size: 1.6rem;
    }

    .avatar-pixel {
        font-size: 3rem;
        width: 50px;
        height: 50px;
        min-width: 50px;
    }

    .speech-bubble {
        max-width: 95% !important;
        padding: 20px;
        gap: 15px;
    }

    .bubble-label {
        font-size: 1.3rem;
    }

    .bubble-text {
        font-size: 1.05rem;
    }

    .bubble-emoji {
        font-size: 2rem;
        bottom: -35px;
    }

    .typing-text {
        animation: none;
        border-right: none;
        white-space: normal;
        width: auto !important;
    }

    .timer-box h2 {
        font-size: 1.7rem;
    }

    .time-value {
        font-size: 2.5rem;
    }

    .time-unit {
        min-width: 70px;
        padding: 12px 15px;
    }

    .nav-btn {
        padding: 15px 30px;
        font-size: 1.3rem;
    }

    .letter-content {
        font-size: 1.1rem;
    }

    .letter-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 160px;
    }

    .nav-logo {
        font-size: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-subtitle {
        font-size: 0.95rem;
    }

    .celebrate-btn {
        font-size: 1.2rem;
        padding: 15px 25px;
        gap: 8px;
    }

    .btn-icon {
        font-size: 1.5rem;
    }

    .celebrate-hint {
        font-size: 0.9rem;
    }

    .celebrate-counter {
        font-size: 1rem;
    }

    .counter-number {
        font-size: 1.3rem;
    }

    .avatar-pixel {
        font-size: 2.5rem;
        width: 45px;
        height: 45px;
        min-width: 45px;
    }

    .bubble-label {
        font-size: 1.1rem;
    }

    .bubble-text {
        font-size: 0.95rem;
    }

    .speech-bubble {
        padding: 15px;
        gap: 10px;
    }

    .time-value {
        font-size: 2rem;
    }

    .time-unit {
        min-width: 60px;
        padding: 10px 12px;
    }

    .time-separator {
        font-size: 2rem;
    }
}
