.tabbed-menu {
    position: absolute;
    bottom:0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    z-index: 2000;
    color: white;
    backdrop-filter: blur(5px);
}

.tab-header {
    display: flex;
    position: relative;
    background: #013247;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    margin:20px;
    border-radius: 20px;   
}

.tab-header button
{
    box-shadow: 
        inset 0 1px rgba(255,255,255,0.30),
        inset 0 -2px rgba(0,0,0,0.55);
}

.tab-header .tab-button-menu:first-of-type {
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.tab-header .tab-button-menu:last-of-type {
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.tab-button-menu {
    position: relative;
    flex: 1;
    padding: 12px;
    font-size: 1.5em;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.tab-button-menu.active {
    z-index: 2;
    background: #02638a;
}

.tab-button-menu.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: -42px;         /* déborde vers l’onglet d’à côté */
    width: 42px;
    height: 100%;
    pointer-events: none; /* ne bloque pas les clics */
    z-index: 3;           /* au-dessus des autres boutons */

    box-shadow: 
        inset 0 1px rgba(255,255,255,0.30),
        inset 0 -2px rgba(0,0,0,0.55),
        0 6px 12px rgba(0,0,0,0.75);

    /* trapèze incliné */
    background: #02638a;/*#013247;*/
    clip-path: polygon(42px 0, 100% 0, 100% 100%, 0% 100%);
}

.tab-button-menu.active::after {
    content: "";
    position: absolute;
    top: 0;
    right: -42px;         /* déborde vers l’onglet d’à côté */
    width: 42px;
    height: 100%;
    pointer-events: none; /* ne bloque pas les clics */
    z-index: 3;           /* au-dessus des autres boutons */

    box-shadow: 
        inset 0 1px rgba(255,255,255,0.30),
        inset 0 -2px rgba(0,0,0,0.55),
        0 6px 12px rgba(0,0,0,0.75);

    /* trapèze incliné */
    background: #02638a;
    clip-path: polygon(0px 0px, 100% 0px, 100% 0%, 0 100%);
}

.tab-button-menu.active:first-of-type::before
{
    width: 0;
}

.tab-button-menu.active:last-of-type::after
{
    width: 0;
}

.tab-content {
    padding: 0px;
    display: none;
    position: relative;
}

.close-tab-menu
{
    position: absolute;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    right: 13px;
    transform: translateY(-50%);
    font-size: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.705);
}

.close-tab-menu:hover
{
    background-color: rgba(0, 5, 29, 0.646);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 1);
}

#passivesTab {
    flex: 1;
    flex-direction: column;
    height: 100%;
    position: relative;
}

#questsTab, #craftTab, #glossaryTab
{
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100%;
    font-size: 3em;
    color:#737373;
    display: none;
    text-align: center;
}

/* CONTROLS*/
.controls
{
    position: absolute;
   
    top: 78px;
    left: 25px;
    z-index: 1000;
    text-transform: uppercase;
    color:#a5a5a5;
    font-weight: bold;
    font-size: 1.2em;
    user-select: none;
}

.controls img
{
    width:50px;
    margin-right: 20px;
}

.controls_action
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin:20px 0;
}