/* ============================================
   DingDong 인트로 화면 (index.php)
   ============================================ */

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

html, body {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.app-container {
    position: relative;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    /* 안드로이드 WebView(useWideViewPort+loadWithOverviewMode)에서 raw %/vh/dvh가
       0으로 붕괴하는 문제 확인됨. MainActivity.kt가 주입하는 --vh(실제 화면 높이,px)만 사용. */
    min-height: calc(var(--vh, 1vh) * 100);
    margin: 0 auto;
    overflow: hidden;
}

/* 인트로 화면 전체 (클릭 영역) */
.intro-screen {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 32px;
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    /* 어두운 네이비 → 딥퍼플 그라데이션 배경 */
    background:
        radial-gradient(120% 80% at 80% 15%, rgba(91, 60, 160, 0.45) 0%, rgba(13, 16, 36, 0) 55%),
        radial-gradient(120% 90% at 10% 90%, rgba(40, 70, 150, 0.40) 0%, rgba(13, 16, 36, 0) 60%),
        linear-gradient(160deg, #14122b 0%, #0d1024 45%, #0b0e20 100%);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* 중앙 로고 영역 */
.intro-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.intro-logo {
    width: min(52vw, 201px);
    max-width: 201px;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 40px rgba(120, 70, 220, 0.30));
    pointer-events: none;
}

/* 하단 액션 영역 */
.intro-actions {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    cursor: default;
}

/* LOG IN 버튼 (그라데이션 알약) */
.intro-login-btn {
    display: inline-flex;
    height: 45px;
    padding: 4px 72px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    border: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: radial-gradient(651.51% 138.83% at 12.5% 113.54%, #F95C9B 0%, #9C1FB5 25%, #6815D4 50%, #5A70F6 75%, #4BB0FA 100%);
    box-shadow: 0 0 10px 0 rgba(152, 99, 255, 0.70);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.intro-login-btn:hover {
    box-shadow: 0 0 16px 0 rgba(152, 99, 255, 0.85);
}

.intro-login-btn:active {
    transform: scale(0.98);
    opacity: 0.92;
}

/* Sign Up 안내 */
.intro-signup {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.intro-signup a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    margin-left: 2px;
}

.intro-signup a:active {
    opacity: 0.8;
}
