@font-face {
    font-family: 'OngleipParkDahyeon';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2411-3@1.0/Ownglyph_ParkDaHyun.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

html, body {
    margin: 0;
    height: 100%;
    overflow-x: hidden;
}

body {
    background-color: #0B3D2E;
    margin: 0;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-y: auto;
    align-items: center;
    min-height: 100vh;
    font-family: "OngleipParkDahyeon";
    padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom) + 12px) env(safe-area-inset-left);
    animation: fadeIn 0.6s ease;
}

.container {
    display: flex;
    flex-direction: column; /* 세로로 배열 */
    justify-content: center; /* 세로 중앙 정렬 */
    align-items: center; /* 가로 중앙 정렬 */
    gap: 4vh; /* 텍스트와 버튼 사이 간격 */
    height: 100%; /* 화면 전체 높이 차지 */
    padding-bottom: clamp(80px, 16vh, 220px);
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0.8;
    pointer-events: none;
    z-index: -1; /* 텍스트보다 뒤에 오도록 설정 */
}

.main-text h1 {
    position: relative; /* static → relative */
    top: -5vh; /* 화면 높이 기준으로 위로 올림, 값 조절 가능 */
}

h1 {
    color: #E2AC26;
    font-weight: 900;
    text-align: center;
    font-size: clamp(48px, 8vw, 130px);
    margin: 0 5vw;

    /* 그림자 2단계로 안정화 */
    text-shadow:
        0 2px 3px rgba(0,0,0,0.25),
        0 6px 12px rgba(0,0,0,0.15);
}


.button-container {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

/* 버튼 스타일 */
button {
  width: clamp(260px, 40vw, 420px);
  min-width: 260px;
  height: clamp(56px, 8vh, 82px);
  min-height: 56px;
  background: linear-gradient(145deg, #9C2C2C, #7A1C1C);
  color: #FFD56B;
  border: 2px solid #FFD56B;
  font-size: clamp(18px, 2.4vw, 26px);
  border-radius: 14px;
  font-family: "OngleipParkDahyeon", sans-serif;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
  z-index: 10;
  animation: popIn 0.8s ease;
  padding: 16px 24px;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(255, 213, 107, 0.3);
  touch-action: manipulation;
}

/* 호버 */
button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* 클릭 */
button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 눈 이미지 겹치기 */
.snow-overlay {
    position: absolute;
    top: -30%; /* 살짝 위로 */
    left: 63%;
    transform: translateX(-50%);
    width: 80%;
    height: auto;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
}

.bottom-img {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    display: block;
    z-index: 4;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.96); }
    60% { opacity: 1; transform: scale(1.02); }
    100% { transform: scale(1); }
}

@media (max-width: 600px) {
    h1 {
        color: #E2AC26;
    }
    .button-container {
        padding: 0 16px;
    }
    button {
        width: 100%;
        max-width: 100%;
        min-width: unset;
        padding: 18px 20px;
        min-height: 60px;
    }
}

@media (min-width: 900px) {
    .container {
        gap: 32px;
        padding-bottom: 140px;
    }
    .main-text h1 {
        top: -3vh;
    }
    /* PC 환경에서는 사진(이미지) 비노출 */
    .snow-overlay,
    .bottom-img {
        display: none;
    }
}

@media (min-width: 1200px) {
    h1 {
        font-size: clamp(72px, 6vw, 140px);
    }
    button {
        width: clamp(300px, 32vw, 460px);
        height: clamp(60px, 7vh, 90px);
    }
}