#rosterOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

#rosterOverlay.hidden {
    display: none;
}

#rosterPanel {
    background-color: #20232a;
    border: 2px solid #273657;
    border-radius: 8px;
    width: 90%;
    max-width: 350px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

#rosterHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #273657;
    color: #fff;
}

#rosterHeader h3 {
    margin: 0;
    font-size: 1.2rem;
}

#rosterCloseButton {
    background: none;
    border: none;
    color: #aaa;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.5rem;
}

#rosterCloseButton:hover {
    color: #fff;
}

#rosterContent {
    padding: 1rem;
    overflow-y: auto;
    color: #eee;
}

.roster-guild-header {
    font-size: 1rem;
    font-weight: bold;
    color: #3f8ff0;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #3a3f4b;
}

.roster-guild-header:first-child {
    margin-top: 0;
}

.roster-player-item {
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.roster-player-item:hover {
    background-color: #3f8ff0;
    color: #fff;
}