* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gothic A1', sans-serif;
}

body {
    background-color: #FFFFFF;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    padding: 40px; 
    pointer-events: none;
    opacity: 0.14; 
    color: #2D4AB7;

    font-size: 1rem;
    line-height: 1.8;       
    letter-spacing: 0.5rem;   
    word-break: break-all;    
    
    text-align: justify;    
    text-align-last: left;  
}

.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 100; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 50px;
    background-color: #ffffffa0; 
}

.back-btn {
    position: absolute;
    left: 40px;
    z-index: 100;
}

.lang-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2D4AB7;
}

.wheel-container {
    position: relative;
    z-index: 10;
    height: 100vh;
    overflow-y: scroll;
    scrollbar-width: none;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
.wheel-container::-webkit-scrollbar { display: none; }

.wheel-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 40vh; 
    padding-bottom: 60vh; 
}

.word-item {
    font-size: 3rem;
    color: #fa050133;
    text-decoration: none;
    margin: 60px 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
                color 0.4s ease, 
                border-color 0.4s ease;
    
    scroll-snap-align: center;
    scroll-snap-stop: always;
    font-weight: 400;
    display: inline-block;
    
    border-bottom: 5px solid transparent; 
    padding-bottom: 5px;
    
    will-change: transform;
    transform: scale(1); 
}

.word-item.active {
    color: #2847E0;
    font-weight: 900;
    transform: scale(1.4); 
    border-bottom: 5px solid #FA0701;
    opacity: 1;
    cursor: pointer;
}

.word-item.active:hover {
    color: #FF2D43
}

.word-item:not(.active):hover {
    color: rgba(183, 45, 137, 0.15);
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px; /* 상단 바 좁게 */
    }
    .back-btn {
        left: 17px;
    }
    .word-item {
        font-size: 1.8rem; /* 단어 크기 줄임 */
        margin: 35px 0;
    }
    .word-item.active {
        font-size: 2.2rem;
        transform: scale(1.1); /* 너무 커지지 않게 */
    }
    .wheel-list {
        padding-top: 42vh; /* 중앙 위치 맞춤 */
    }
}