* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body { font-family: 'OngleipKonkon', sans-serif; }

:root {
  --teal: #5bbcad;
  --teal-dark: #3a8a80;
  --teal-border: rgba(91, 188, 173, 0.6);
  --bg-from: #d8eaf4;
  --bg-mid: #ccdde8;
  --bg-to: #bdd0dc;
  --text-muted: #4a6070;
}

html, body {
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #b8cdd8;
  font-family: 'SF Pro Display', -apple-system, 'Helvetica Neue', sans-serif;
}

.screen {
  width: min(390px, 100vw);
  height: min(844px, 100vh);
  height: min(844px, 100dvh);
  flex-shrink: 0;
  background: url('../images/intro_01.webp') center / cover no-repeat;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* subtle noise texture overlay */
.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* status bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: 16px;
  height: 16px;
  fill: var(--text-muted);
}

/* main content */
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 36px 96px;
  position: relative;
  z-index: 1;
}

.logo-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* logo */
.logo-wrap {
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.logo-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(91, 188, 173, 0.35);
}

/* enter button */
.btn-enter {
  width: 100%;
  padding: 16px 0;
  border-radius: 32px;
  border: 1.5px solid var(--teal-border);
  background: rgba(255, 255, 255, 0.45);
  color: var(--teal-dark);
  font-size: 16px;
  font-weight: 500;
  font-family: inherit;
  letter-spacing: 0.03em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  animation: fadeUp 0.7s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.btn-enter:hover {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 20px rgba(91, 188, 173, 0.2);
}

.btn-enter:active {
  transform: scale(0.97);
  background: rgba(255, 255, 255, 0.55);
}

/* home indicator */
.home-indicator {
  display: flex;
  justify-content: center;
  padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  position: relative;
  z-index: 1;
}

.home-bar {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: rgba(74, 96, 112, 0.22);
}

/* animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PWA fullscreen adjustments */
@media (display-mode: standalone) {
  .status-bar { padding-top: max(14px, env(safe-area-inset-top)); }
}

/* 모바일 디바이스 최적화 레이아웃 (주소창 가림 및 상하단 짤림 방지) */
@media (max-width: 480px) {
  body {
    align-items: flex-start; /* 상단 기준 정렬로 변경하여 주소창 가림 방지 */
  }
  .screen {
    width: 100vw;
    height: 100dvh; /* 다이나믹 뷰포트 높이 꽉 차게 설정 */
    height: 100svh; /* fallback */
  }
}
