html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    /*background: url('/images/background_1.png') no-repeat center center fixed;*/
    background-size: cover;
    font-family: sans-serif;
    color: white;
    overflow: hidden;
    user-select: none;
}

.header-wrapper {
    position: relative;
    z-index: 10;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 18px;
    font-weight: bold;
    background: transparent; /* ← 💥 완전 투명! */
    z-index: 20;
}


.back-btn {
    background: none;
    border: none;
    padding: 0;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}


.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 15;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0)); /* ✨ fade only */
}


.content-wrapper {
    position: absolute;
    top: 60px;
    bottom: 0;
    left: 0;
    right: 0;
    overflow-y: auto;
    padding: 40px 16px 20px;
    box-sizing: border-box;

    mask-image: linear-gradient(to bottom, transparent 0px, white 60px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0px, white 60px);
}

.card-box {
    display: flex;
    gap: 20px;
    width: 100%; /* 전체 너비 채움 */
    max-width: 500px; /* 너무 넓어지지 않게 제한 */
}

.card {
    flex: 1;
    aspect-ratio: 1/1; /* ⭐⭐ width와 height를 항상 같게, 정사각형 유지 ⭐⭐ */
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /*클릭시 배경색 안 바뀌게.*/
}


.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;

    /* ✨ 여기! 이미지만 부드럽게 숨쉬는 효과 */
    animation: float 3s ease-in-out infinite;
    transform-origin: center center;
}

.card span {
    color: white;
    font-weight: bold;
    font-size: 1rem;
}


@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); } /* 더 통통 튀게 하고 싶으면 1.2까지도 가능 */
    100% { transform: scale(1); }
}

@keyframes breathe-shake {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(2deg); }
    50% { transform: scale(1.15) rotate(0deg); }
    75% { transform: scale(1.1) rotate(-2deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
@keyframes rotate-breathe {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}