/* custom.css - Feature-specific styles */

/* Map Interface */
#map-container {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: #e9ecef;
}

/* Mobile Virtual Keyboard & Viewport Stabilization */
html, body {
    height: 100%;
    height: 100dvh;
    overscroll-behavior-y: none;
}

body.mobile-keyboard-active {
    overflow: hidden !important;
    touch-action: pan-y;
}

.modal {
    overscroll-behavior: contain;
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
    min-height: calc(100dvh - 1rem);
}

.modal-body {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.map-overlay {
    position: absolute;
    top: 140px; /* Adjusted for top buttons */
    left: 20px;
    z-index: 90;
    width: 320px;
    transition: var(--transition-smooth);
}

@media (max-width: 768px) {
    .map-overlay {
        width: calc(100% - 40px);
        bottom: 20px;
        top: auto;
        max-height: 40%;
    }
}

/* Mobile layout hidden standard footer */
.map-page footer {
    display: none;
}

footer {
    position: relative;
    z-index: 10;
}

/* Note Cards */
.note-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-bottom: 20px;
    position: relative; /* Added for badge positioning */
}

.note-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.note-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.badge-emotional { background-color: #ff9ff3; color: white; }
.badge-coupon { background-color: #feca57; color: white; }
.badge-barrier { background-color: var(--primary-green); color: white; }

/* MyPage Mission Progress */
.mission-list {
    list-style: none;
    padding: 0;
}

.mission-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stamp-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dee2e6;
}

.stamp-active {
    border-style: solid;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background-color: rgba(13, 110, 253, 0.1);
}

/* Lightbox Image Mobile Responsive Constraints */
@media (max-width: 576px) {
    #lightbox-img {
        max-height: 52vh !important;
    }
}


/* In-Game Bottom Sheet Override */
.bottom-sheet.game-active-sheet {
    top: auto !important;
    height: 220px !important;
    background: #ffffff !important;
    border-top: 2px solid #a51f24 !important; /* Bet style accent color */
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15) !important;
    transform: none !important;
    display: flex !important;
}

.bottom-sheet.game-active-sheet .sheet-handle-wrapper {
    display: none !important; /* Hide handle and title for compact look */
}

.bottom-sheet.game-active-sheet .sheet-content {
    padding: 8px 12px 75px 12px !important; /* Pad bottom for bottom nav */
    overflow-y: hidden !important;
}

/* 2x5 Grid for Game Scoreboard */
.game-bet-header {
    background-color: #FFEBE6 !important;
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border: 1px solid #FFD3C4;
}

.game-bet-title-text {
    color: #0d6efd; /* Deep blue for bet title */
    font-size: 1.05rem;
    font-weight: 700;
}

.game-bet-timer-text {
    color: #333;
    font-size: 1rem;
    font-weight: 700;
}

.game-bet-timer-text .timer-countdown {
    color: #dc3545; /* Red countdown */
    font-weight: 700;
}

.game-scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    border: 1.5px solid #888;
    background: #888; /* Shows through gap as grid lines */
    gap: 1.5px;
    border-radius: 0px;
    margin-bottom: 0px;
}

.game-scoreboard-cell {
    background: #fff !important; /* White background as requested */
    padding: 8px 2px;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 0px !important;
}

/* Styling for current player or top player */
.game-scoreboard-cell.current-user {
    background: #e3f2fd !important; /* Subtly highlight current user */
    font-weight: 700;
}

.game-scoreboard-cell.empty-cell {
    background: #fff !important; /* Empty cells are also white background */
}

.game-scoreboard-cell .found-count {
    color: #333; /* Black/dark count to match screenshot */
    font-weight: 600;
}

/* Custom Map Controls hover opacity effects */
.zoom-control-group:hover, .zoom-control-group:active,
#map-my-location-btn:hover, #map-my-location-btn:active {
    opacity: 0.9 !important;
}

/* Lightbox Navigation Buttons */
#lightbox-prev-btn, #lightbox-next-btn {
    opacity: 0.8;
    transition: all 0.2s ease;
}
#lightbox-prev-btn:hover, #lightbox-next-btn:hover {
    background: rgba(0, 0, 0, 0.6) !important;
    color: #ffffff !important;
    opacity: 1;
}

/* Global placeholder styling for user examples (light blue text) */
input::placeholder, textarea::placeholder {
    color: rgba(13, 110, 253, 0.45) !important;
    opacity: 1;
    font-weight: 400;
}

#lightbox-desc-input::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* System-generated non-placeholder input styling (darker input box) */
.coupon-code-input-disabled {
    background-color: #e2e8f0 !important; /* Darker/solid background */
    border: 1px solid #94a3b8 !important; /* Stronger border */
    color: #334155 !important; /* Bolder text */
    font-weight: bold !important;
}

.coupon-code-input-disabled::placeholder {
    color: #475569 !important; /* Bolder, darker placeholder text for system message */
    font-weight: bold !important;
    opacity: 1 !important;
}

/* Optimize all Google Maps InfoWindows on the map to have tight padding */
.gm-style-iw-c {
    padding: 1px !important;
    border-radius: 8px !important;
    background-color: rgba(255, 255, 255, 0.5) !important; /* 50% opacity (50% transparent, increased by 30%) */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}
.gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.gm-style-iw-tc::after {
    background: rgba(255, 255, 255, 0.5) !important;
}

/* Styled info window for distance tooltip */
.distance-tooltip-iw .gm-style-iw-c {
    background-color: rgba(33, 37, 41, 0.5) !important; /* 50% opacity (50% transparent, increased by 30%) */
    border-radius: 8px !important;
    padding: 1px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.distance-tooltip-iw .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0 !important;
}
.distance-tooltip-iw .gm-style-iw-tc::after {
    background: rgba(33, 37, 41, 0.5) !important;
    box-shadow: none !important;
}
.distance-tooltip-iw .gm-ui-hover-close {
    display: none !important;
}

/* Override proximity-toast border-radius for multi-line list alerts */
.proximity-toast {
    border-radius: 16px !important;
}

/* Global back button circle styling */
.back-btn-circle {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.25) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    color: #475569 !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 0 !important;
}
.back-btn-circle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
    color: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.back-btn-circle:active {
    transform: scale(0.9);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%);
}
.back-btn-circle i, .back-btn-circle svg {
    font-size: 0.72rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Premium bottom sheet header alignment and icon styling */
.sheet-handle-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 50px !important;
    padding: 0 15px !important;
}

.sheet-header-title {
    font-size: 1.12rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.sheet-header-icon {
    height: 42px !important; /* Maximize size leaving exactly 4px top/bottom margins */
    width: auto !important;
    margin-right: 8px !important;
    margin-top: 4px !important;
    margin-bottom: 4px !important;
    display: inline-block;
    vertical-align: middle !important;
    object-fit: contain !important;
}

/* Intro Overlay Splash (Landing Mode) styles */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 40%, #a8ff78 80%, #78ffd6 100%); /* 휴양지 노을과 맑은 라임 바다빛 비비드 오로라 */
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

#intro-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Scroll container style */
.intro-card-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Landing Layout Page */
.intro-landing-content {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    color: #0f172a; /* 짙은 슬레이트 톤으로 쨍한 가독성 확보 */
    background: rgba(255, 255, 255, 0.55); /* 투명도를 낮추고 비비드 배경의 투과를 돕는 글래스 질감 */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 0 60px rgba(255, 95, 109, 0.12);
    min-height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}

/* Control wrapper on top right */
#intro-control-wrap {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.intro-today-label {
    color: #1e293b;
    font-size: 0.72rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,95,109,0.06);
    user-select: none;
    transition: all 0.2s ease;
    margin: 0;
}

.intro-today-label:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,95,109,0.12);
}

.intro-today-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: #ff0844; /* 체리 핑크 */
}

#intro-skip-btn {
    background: rgba(255, 255, 255, 0.9);
    color: #ff0844 !important; /* 강렬한 체리 핑크 */
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 0.72rem;
    font-weight: bold;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(255,95,109,0.06);
}

#intro-skip-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,95,109,0.12);
}

/* 1. Hero Section */
.intro-hero-section {
    padding: 60px 24px 30px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
    position: relative;
}

.intro-logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.intro-logo-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(255, 95, 109, 0.35)); /* 붉은 노을빛 입체 섀도우 */
}

.intro-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.1;
}

.intro-logo-title {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.intro-logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
}

.intro-main-title {
    font-size: 2.3rem; /* 크기 및 가독성 업그레이드 */
    font-weight: 800;
    line-height: 1.38;
    margin-bottom: 25px;
    letter-spacing: -0.8px;
    word-break: keep-all;
    background: linear-gradient(135deg, #d946ef 0%, #ef4444 50%, #f59e0b 100%); /* 핫 마젠타 - 정열 레드 - 에너제틱 오렌지 3색 그라데이션 */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Video Container & PiP Mode */
.intro-video-container {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(255, 95, 109, 0.15); /* 붉은 노을빛 반사광 섀도우 */
    margin: 15px 0 25px 0;
    background: #000000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.intro-video-container.pip-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 140px;
    height: 85px;
    z-index: 9999999;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.95);
}

#intro-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.05) 50%, rgba(15,23,42,0.2) 100%);
    pointer-events: none;
    transition: all 0.4s;
}

.intro-video-container.pip-mode .video-overlay-gradient {
    background: rgba(0,0,0,0.1);
}

/* Video Subtitles */
.video-subtitles-wrap {
    position: absolute;
    bottom: 52px;
    left: 0;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    transition: all 0.3s;
}

.intro-video-container.pip-mode .video-subtitles-wrap {
    opacity: 0;
}

.subtitle-text {
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    text-shadow: 0 2px 8px rgba(15, 23, 42, 0.8);
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    word-break: keep-all;
}

.subtitle-text.active {
    display: block;
    opacity: 1;
}

.subtitle-text .highlight {
    color: #fffb00; /* 쨍한 형광 노랑 */
    font-size: 1.15rem;
    text-shadow: 0 2px 12px rgba(239, 68, 68, 0.5);
}

/* YouTube Style Video Controls Bar */
.video-controls-bar {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 3px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
    transition: all 0.3s ease;
}

.video-control-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.video-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    transform: scale(1.12);
}

.video-volume-group {
    display: flex;
    align-items: center;
    position: relative;
}

.volume-slider-wrap {
    width: 0;
    overflow: hidden;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    opacity: 0;
    display: flex;
    align-items: center;
}

.video-volume-group:hover .volume-slider-wrap,
.volume-slider-wrap:focus-within {
    width: 55px;
    opacity: 1;
    margin-right: 4px;
}

.video-volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.4);
    outline: none;
    cursor: pointer;
}

.video-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s;
}

.video-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

.intro-video-container.pip-mode .video-controls-bar {
    display: none;
}

.intro-hero-slogan {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 25px;
    word-break: keep-all;
    letter-spacing: -0.2px;
}

/* CTA buttons */
.intro-cta-btn {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%); /* 쨍한 에너제틱 네온 코랄-오렌지 */
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 15px 44px;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 12px 30px rgba(255, 8, 68, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.intro-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 36px rgba(255, 8, 68, 0.55);
}

.pulsing-btn {
    animation: pulseButton 1.8s infinite;
}

@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 8, 68, 0.65);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(255, 8, 68, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 8, 68, 0);
    }
}

/* 2. One-line Description */
.intro-description-section {
    padding: 30px 24px;
}

.description-card {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 24px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(255, 95, 109, 0.06);
}

.desc-text-bold {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.6;
    color: #0f172a;
    margin: 0;
    word-break: keep-all;
}

/* Section Title Style */
.section-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* 3. How to Use Section */
.intro-how-section {
    padding: 30px 24px;
}

.how-flow-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.how-step-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-shadow: 0 12px 36px rgba(255, 95, 109, 0.06);
    transition: all 0.3s ease;
}

.how-step-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%);
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}

.how-step-icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    animation: floatIcon 3s infinite ease-in-out;
}

.how-step-title {
    font-size: 1rem;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 4px;
}

.how-step-desc {
    font-size: 0.82rem;
    color: #334155;
    margin: 0;
    text-align: center;
}

.how-flow-arrow {
    font-size: 1.8rem;
    color: #ff0844;
    animation: bounceArrow 1.5s infinite;
}

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

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(5px); opacity: 1; }
}

/* 4. Features Section */
.intro-features-section {
    padding: 40px 24px;
}

.features-cards-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card-item {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 36px rgba(255, 95, 109, 0.06);
}

.feature-card-icon {
    font-size: 2.1rem;
    margin-bottom: 10px;
}

.feature-card-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #0f172a;
    margin-bottom: 6px;
}

.feature-card-desc {
    font-size: 0.82rem;
    color: #334155;
    margin: 0;
    line-height: 1.48;
    word-break: keep-all;
}

/* 5. Bottom Emotion Copy & Final CTA */
.intro-bottom-emotion-section {
    position: relative;
    padding: 80px 24px;
    text-align: center;
    background-image: url('../images/intro_bg.png');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bottom-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.94) 100%);
    z-index: 1;
}

.bottom-content-wrap {
    position: relative;
    z-index: 2;
}

.bottom-emotion-copy {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.8;
    color: #ff0844; /* 정열적인 체리 핑크 */
    margin-bottom: 40px;
    letter-spacing: -0.5px;
    word-break: keep-all;
    text-shadow: 0 1px 4px rgba(255,255,255,0.95);
}

/* Global Header Logo Image Style */
.header-logo-img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}
.header-logo-img.text-muted {
    filter: grayscale(1) opacity(0.6);
}

/* Disable body scroll when intro is visible */
body.intro-active {
    overflow: hidden !important;
    height: 100% !important;
}

/* 인트로 30초 사용법 가로형 카드 리뉴얼 */
/* 인트로 30초 사용법 가로형 카드 리뉴얼 (4개 카드 모두 흰색 반투명 배경 & 세로 높이 통일) */
.how-step-card-horizontal {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 16px 24px;
    width: 100%;
    min-height: 145px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 12px 36px rgba(255, 95, 109, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.how-step-card-horizontal:hover {
    transform: translateY(-4px) scale(1.02) !important;
    box-shadow: 0 16px 44px rgba(255, 95, 109, 0.15) !important;
}

.how-step-card-horizontal .card-left-visual {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-step-card-horizontal .card-left-visual img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(255, 95, 109, 0.12));
}

.how-step-card-horizontal .card-right-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    justify-content: center;
}

.how-step-card-horizontal .card-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.how-step-card-horizontal .badge-num {
    background: linear-gradient(135deg, #ff0844 0%, #ffb199 100%) !important;
    color: #ffffff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.how-step-card-horizontal .card-step-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.how-step-card-horizontal .card-step-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
    word-break: keep-all;
}

/* 인트로 Step 2 히든쪽지 알림 카드 (공통 세로 높이 & 흰색 반투명 배경 유지, 이미지는 글씨 아래 배치) */
.how-step-card-horizontal.card-vertical-layout {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 14px 20px;
}

.how-step-card-horizontal.card-vertical-layout .card-header-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.how-step-card-horizontal.card-vertical-layout .card-title-row {
    justify-content: center;
    margin-bottom: 3px;
}

.how-step-card-horizontal.card-vertical-layout .card-step-title {
    color: #0f172a !important;
}

.how-step-card-horizontal.card-vertical-layout .card-step-desc {
    color: #64748b !important;
    font-size: 0.82rem;
}

.how-step-card-horizontal.card-vertical-layout .card-bottom-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.how-step-card-horizontal.card-vertical-layout .card-bottom-visual img {
    max-width: 100%;
    max-height: 72px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.how-flow-separator {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.15);
    margin: 4px 0;
    animation: bounceArrow 1.8s infinite;
}

/* ==========================================================================
   모바일 가상 키보드 활성화 시 모달 입력 흔들림 및 닫힘 방지 보정 (Premium UX)
   ========================================================================== */
@media (max-width: 575.98px) {
    /* 1. 키보드가 올라오면 바디 스크롤 및 뷰포트 바운스 완전 고정 */
    body.mobile-keyboard-active,
    body.keyboard-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100dvh !important;
    }

    /* 2. 키보드가 올라오면 모달을 화면 상단에 차분하게 안착 (Flexbox 중앙 이동으로 인한 흔들림 제거) */
    body.mobile-keyboard-active .modal-dialog-centered,
    body.keyboard-open .modal-dialog-centered {
        align-items: flex-start !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        transition: align-items 0.15s ease-out;
    }

    /* 3. 지도 크기를 콤팩트하게 고정하고 터치 이벤트를 비활성화하여 작성 도중 지도 터치로 인한 포커스 이탈 완전 방지 */
    body.mobile-keyboard-active #modal-map-canvas,
    body.keyboard-open #modal-map-canvas,
    body.mobile-keyboard-active #modal-map-wrapper,
    body.keyboard-open #modal-map-wrapper,
    body.mobile-keyboard-active #sendMessageModal .position-relative.mb-3.rounded-4.overflow-hidden.border,
    body.keyboard-open #sendMessageModal .position-relative.mb-3.rounded-4.overflow-hidden.border {
        height: 110px !important;
        min-height: 110px !important;
        max-height: 110px !important;
        flex-shrink: 0 !important;
        pointer-events: none !important; /* 작성 중 지도 제스처로 인한 포커스 유실 원천 차단 */
        transition: height 0.15s ease-out;
    }
}



