.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.gnb-wrapper .gnb-inner {
    max-width: 1440px !important;
    height: 60px;
    padding: 0 24px;
    gap: 18px;
    flex-wrap: nowrap;
}

.gnb-wrapper .gnb-left {
    gap: 14px;
}

.gnb-wrapper .gnb-nav {
    min-width: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 2px;
    height: 100%;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: none;
}

.gnb-wrapper .gnb-nav::after {
    display: none;
}

.gnb-group {
    position: relative;
    display: flex;
    align-items: stretch;
}

.gnb-group-trigger,
.gnb-direct {
    min-width: 64px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.gnb-group-trigger i {
    color: #64748b;
    font-size: 9px;
    transition: transform 0.16s ease;
}

.gnb-group.is-open .gnb-group-trigger i {
    transform: rotate(180deg);
}

.gnb-group-trigger:hover,
.gnb-group-trigger:focus-visible,
.gnb-direct:hover,
.gnb-direct:focus-visible {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.035);
    outline: none;
}

.gnb-group.is-active > .gnb-group-trigger,
.gnb-direct.is-active {
    color: #ffbc05;
    border-bottom-color: #ffbc05;
}

.gnb-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 1001;
    width: max-content;
    min-width: 196px;
    max-width: min(300px, calc(100vw - 24px));
    padding: 7px;
    border: 1px solid #334155;
    border-radius: 8px;
    background: #0b1220;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.46);
    transform: translateX(-50%);
}

.gnb-menu[hidden] {
    display: none !important;
}

.gnb-menu a {
    min-height: 40px;
    display: flex;
    align-items: center;
    padding: 8px 11px;
    border-radius: 5px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.gnb-menu a:hover,
.gnb-menu a:focus-visible {
    background: #172033;
    color: #f8fafc;
    outline: 2px solid rgba(255, 188, 5, 0.55);
    outline-offset: -2px;
}

.gnb-menu a.is-current {
    background: rgba(255, 188, 5, 0.1);
    color: #ffdc63;
}

.gnb-wrapper .gnb-my {
    width: auto;
    min-width: 58px;
    height: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #94a3b8;
    padding: 0 13px;
}

.gnb-wrapper .gnb-my:hover,
.gnb-wrapper .gnb-my:focus-visible,
.gnb-wrapper .gnb-my.is-active {
    border-color: transparent;
    border-bottom-color: #ffbc05;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: none;
    color: #ffbc05;
}

.gnb-mobile-toggle {
    display: none;
    min-width: 48px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #334155;
    border-radius: 6px;
    background: #0b1220;
    color: #f8fafc;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    cursor: pointer;
}

.gnb-mobile-toggle:focus-visible,
.gnb-server-box select:focus-visible,
.gnb-brand-mini:focus-visible {
    outline: 2px solid #ffbc05;
    outline-offset: 2px;
}

@media (min-width: 901px) and (max-width: 1120px) {
    .gnb-wrapper .gnb-inner {
        display: flex;
        padding-inline: 12px;
        gap: 8px;
    }

    .gnb-wrapper .gnb-left {
        width: auto;
        gap: 8px;
    }

    .gnb-wrapper .gnb-brand-name {
        display: none;
    }

    .gnb-group-trigger,
    .gnb-direct,
    .gnb-wrapper .gnb-my {
        min-width: 54px;
        padding-inline: 9px;
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .gnb-wrapper .gnb-inner {
        position: relative;
        display: flex;
        height: 60px;
        padding: 8px 12px;
        gap: 8px;
    }

    .gnb-wrapper .gnb-left {
        width: auto;
        min-width: 0;
        flex: 1;
        justify-content: flex-start;
    }

    .gnb-wrapper .gnb-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 10px;
        width: min(360px, calc(100vw - 20px));
        height: auto;
        max-height: calc(100vh - 78px);
        display: none;
        overflow-x: hidden;
        overflow-y: auto;
        align-items: stretch;
        justify-content: flex-start;
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        border: 1px solid #334155;
        border-radius: 8px;
        background: #0b1220;
        box-shadow: 0 22px 46px rgba(0, 0, 0, 0.55);
    }

    .gnb-wrapper .gnb-nav.is-mobile-open {
        display: flex;
    }

    .gnb-mobile-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .gnb-group {
        width: 100%;
        display: block;
    }

    .gnb-group-trigger,
    .gnb-direct,
    .gnb-wrapper .gnb-my {
        width: 100%;
        min-height: 46px;
        justify-content: space-between;
        padding: 0 12px;
        border: 0;
        border-radius: 5px;
        font-size: 14px;
    }

    .gnb-group.is-active > .gnb-group-trigger,
    .gnb-wrapper .gnb-my.is-active {
        border: 0;
        background: rgba(255, 188, 5, 0.08);
        color: #ffdc63;
    }

    .gnb-menu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        margin: 2px 0 6px;
        padding: 3px 0 3px 12px;
        border: 0;
        border-left: 1px solid #334155;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .gnb-menu a {
        min-height: 42px;
        padding-inline: 12px;
    }

    .gnb-wrapper .gnb-my {
        display: flex;
        color: #cbd5e1;
    }
}

@media (max-width: 520px) {
    .gnb-wrapper .gnb-brand-name {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .gnb-wrapper .gnb-left {
        gap: 7px;
    }

    .gnb-wrapper .gnb-server-box select {
        width: 128px;
        min-height: 42px;
        padding-inline: 28px 22px;
    }

    .gnb-mobile-toggle span {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gnb-group-trigger i {
        transition: none;
    }
}
