* {
    margin: 0;
    text-decoration: none;
}

.wrap {
    min-width: 1500px;
    box-sizing: border-box;
}

.top-wrap {
    width: 1500px;
    height: 80px;
    margin: auto;
}

.top-menus {
    width: 1200px;
    height: 100%;
    margin: auto;
    display: flex;
    justify-content: space-between;
}

.top-left-menus,
.top-right-menus {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-left-menu {
    padding: 5px 20px;
    margin-left: 10px;
    color: #2a2a2a;
    font-weight: 700;
    cursor: pointer;
    position: relative;
}

.top-sub-menu {
    left: 0;
    top: 35px;
    position: absolute;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    color: #4a4a4a;
    border: 1px solid #e3e3e3;
    padding: 5px 0;
    border-radius: 15px;
    z-index: 200;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
}

.top-sub-menu span {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: #404040;
}

.top-sub-menu span:hover {
    background-color: #f1f5f9;
}

.left-item:hover {
    cursor: pointer;
    border-radius: 30px;
    background-color: #F5F7F8;
}

.logo {
    font-size: 48px;
    font-weight: 900;
    color: #4351ff;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(90deg, #4351ff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    display: flex;
    align-items: center;
}

.join-item {
    border: 1px solid #4351ff;
    border-radius: 30px;
    color: #4351ff;
    font-weight: 500;
}

.login-item {
    border-radius: 30px;
    background-color: #4351ff;
    color: #ffffff;
    font-weight: 500;
}

.hidden {
    display: none;
}

main,
footer {
    min-width: 1500px;
    margin: auto;
}

footer {
    background-color: #F7F9FC;
    border-top: 1px solid #e5e8eb;
}

.bt-wrap,
.main-wrap {
    width: 1200px;
    margin: auto;
    color: #2a2a2a;
    padding-bottom: 15px;
}

.bt-top-menus {
    display: flex;
}

.bt-top-menu {
    padding: 10px 20px;
    color: #2a2a2a;
    font-weight: 600;
}

.bt-ft-menus {
    margin-top: 30px;
    display: flex;
    height: 100%;
    padding-left: 20px;
}

.bt-left-menu {
    width: 430px;
    height: 100%;
}

.bt-right-menu {
    width: 700px;
    height: 100%;
}

.casino-info {
    color: #2a2a2a;
}

.bt-icons {
    display: flex;
}

.bt-icon {
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.bt-icon img {
    width: 20px;
}

.bt-icon span {
    padding: 0 5px;
    color: #2a2a2a;
    font-weight: 600;
    margin-right: 10px;
}


@media (max-width: 430px) {
    * {
        box-sizing: border-box;
    }

    .wrap,
    .top-wrap,
    main,
    footer {
        width: 100%;
        min-width: 100%;
    }

    .top-wrap {
        height: auto;
        padding: 10px;
    }

    .top-menus {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .top-left-menus,
    .top-right-menus {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .top-left-menu {
        margin: 0;
        padding: 8px 12px;
        font-size: 14px;
        position: relative; /* ✅ 이게 있어야 span absolute 사용 가능 */
    }

    .top-sub-menu {
        position: absolute;  /* ✅ 다시 absolute로 해야 "펼쳐지는 메뉴" 느낌 */
        top: 100%;
        left: 0;
        width: max-content;
        border-radius: 10px;
        box-shadow: none;
        padding: 0;
        z-index: 100;
        background: #fff;
    }

    .top-sub-menu span {
        padding: 12px;
        font-size: 14px;
        text-align: center;
    }

    .logo {
        font-size: 28px;
        text-align: center;
        justify-content: center;
    }

    .join-item,
    .login-item {
        font-size: 14px;
        padding: 8px 16px;
    }

    .bt-wrap,
    .main-wrap {
        width: 100%;
        padding: 20px 10px;
    }

    .bt-top-menus {
        flex-direction: column;
        align-items: center;
    }

    .bt-ft-menus {
        flex-direction: column;
        align-items: center;
        padding-left: 0;
        margin-top: 20px;
    }

    .bt-left-menu,
    .bt-right-menu {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .bt-icons {
        justify-content: center;
    }

    .bt-icon {
        justify-content: center;
        padding: 8px 0;
    }

    .bt-icon img {
        width: 18px;
        height: auto;
    }

    .bt-icon span {
        font-size: 13px;
    }
}
