* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 더블 탭 줌 방지 */
    touch-action: manipulation;
}

/* 기본 설정 */
html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Pretendard', sans-serif;
    background: #ffffff;
    color: #000000;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    /* 더블 탭 및 핀치 줌 방지 */
    touch-action: pan-x pan-y;
    -webkit-user-select: none;
    user-select: none;
}

/* 배경 그라데이션 - 반응형 (부모 컨테이너) */
.bg-gradient {
    background: #0a0e18 !important; /* 기본 배경색 */
    background-image:
        radial-gradient(ellipse 600px 400px at 100% 30%, rgba(152,99,255,0.6) 0%, rgba(152,99,255,0.3) 25%, rgba(152,99,255,0) 60%),
        radial-gradient(ellipse 700px 500px at 0% 70%, rgba(55,251,255,0.6) 0%, rgba(69,185,255,0.4) 15%, rgba(83,118,255,0.3) 30%, rgba(83,118,255,0) 65%) !important;
    background-color: #0a0e18 !important;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none; /* 배경 클릭 방지 */
}

/* 콘텐츠 래퍼 */
.content-wrapper {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    pointer-events: auto; /* 모든 콘텐츠 클릭 가능 */
}

/* 레거시 지원: app-container는 content-wrapper와 동일하게 처리 */
.app-container {
    width: 100%;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    position: relative;
    pointer-events: auto;
}

.bg-white {
    background: #ffffff;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* 상태바 */
.status-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3.6875rem; /* 59px */
    z-index: 1001;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem; /* 20px */
}

.status-bar-left {
    display: flex;
    align-items: center;
}

.status-bar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem; /* 8px */
}

.status-bar-time {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem; /* 16px */
    color: #ededed;
    letter-spacing: -0.02rem; /* -0.32px */
}

.status-bar-icon {
    width: 1.125rem; /* 18px */
    height: 1.125rem; /* 18px */
}

/* 헤더 */
.header {
    position: absolute;
    top: 3.6875rem; /* 59px */
    left: 0;
    height: 2.625rem; /* 42px */
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.375rem; /* 6px */
}

.header-btn {
    width: 2.625rem; /* 42px */
    height: 2.625rem; /* 42px */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 0.5rem; /* 8px */
}

.header-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-btn img {
    min-width: 1.5rem; /* 24px */
    min-height: 1.5rem; /* 24px */
    width: 1.5rem !important; /* 24px */
    height: 1.5rem !important; /* 24px */
}

.hidden {
    display: none !important;
}

.logo {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 1.25rem; /* 20px */
    color: #37fbff;
    text-align: center;
    letter-spacing: -0.02rem; /* -0.32px */
    line-height: 1.5rem; /* 24px */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    pointer-events: none;
}

.logo .logo-image {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* 하단 메뉴 */
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 7rem; /* 128px */
    width: 100%;
    z-index: 10;
}

.menu-content {
    position: relative;
    height: 100%;
}

/* 배경 레이어들 - 반응형 */
.menu-bg-layer1 {
    position: absolute;
    left: 0;
    top: calc(1.013rem + (100vh - 667px) * 0.008); /* 높이에 따라 위치 조정 */
    width: 100%;
    height: calc(6.987rem + (100vw - 375px) * 0.025 + (100vh - 667px) * 0.02); /* 화면 크기에 따라 높이 증가 */
    background: url('../assets/Vector 3.png') center/cover;
    background-size: 100% 100%; /* 비율 유지하며 늘어나도록 */
}

.menu-bg-layer2 {
    position: absolute;
    left: 0;
    top: calc(2.155rem + (100vh - 667px) * 0.01); /* 높이에 따라 위치 조정 */
    width: 100%;
    height: calc(5.845rem + (100vw - 375px) * 0.02 + (100vh - 667px) * 0.015); /* 화면 크기에 따라 높이 증가 */
    background: url('../assets/Vector 2.png') center/cover;
    background-size: 100% 100%; /* 비율 유지하며 늘어나도록 */
}

/* 메뉴 버튼 컨테이너 - 반응형 */
.menu-buttons {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: calc(80px + (100vh - 667px) * 0.02); /* 높이 반응형 */
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 30px 30px 30px;
    box-sizing: border-box;
}

/* 메뉴 아이템 */
.menu-item {
    width: 30px; /* 고정 크기 */
    height: 30px; /* 고정 크기 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.menu-item.home {
    position: relative;
}

.menu-item.profile {
    position: relative;
    border: 0.125rem solid #323232; /* 2px */
    border-radius: 50%; /* 원형으로 변경 */
}

/* 메뉴 아이템 내 이미지 크기 고정 */
.menu-item img {
    width: 30px !important;
    height: 30px !important;
    object-fit: contain;
}

.profile-icon-container {
    width: 100%; /* 부모 크기에 맞춤 */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item:hover {
    transform: scale(1.1);
}

/* 캐릭터 이미지 - 반응형 */
.character {
    position: fixed;
    bottom: 60px; /* 퍼센트 대신 고정값으로 변경하여 메뉴와 일정하게 겹치도록 */
    left: 0;
    width: 100%;
    height: 150px; /* 고정 높이로 변경 */
    z-index: 5;
    pointer-events: none;
}

.character-image {
    position: absolute;
    left: 60%;
    top: 1.5%;
    width: 36%;
    height: 100%;
    background: url('../assets/선글라스포즈 1.png') center/contain;
    background-size: contain; /* cover에서 contain으로 변경 */
    background-position: center bottom; /* 하단 기준으로 정렬 */
    background-repeat: no-repeat;
}

/* 홈 인디케이터 */
.home-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2.125rem; /* 34px */
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-indicator-bar {
    width: 8.375rem; /* 134px */
    height: 0.3125rem; /* 5px */
    background: #323232;
    border-radius: 6.25rem; /* 100px */
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(1.25rem); } /* 20px */
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
} 