body {
    margin: 0;
    padding: 0;
}

html,
body,
#map {
    height: 100%;
}

#character-controls {
    position: absolute;
    top: 35px;
    left: 35px;
    z-index: 10;
}

.character-selector,
.character-btn {
    width: 100px;
    height: 100px;
    padding: 0;
    overflow: visible;
    position: relative;
    border-radius: 50%;
    cursor: pointer;
}

.character-selector {
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: box-shadow 180ms ease;
}

.character-selector:hover {
    box-shadow: none;
}

.character-menu {
    position: absolute;
    top: 0px;
    left: 110px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100px;
    box-sizing: border-box;
    max-width: calc(100vw - 130px);
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0.05);
    transform-origin: left center;
    transition:
        opacity 200ms ease,
        transform 600ms ease;
}

.character-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleX(1);
}

.character-btn {
    flex: 0 0 76px;
    width: 76px;
    height: 80px;
    border: none;
    background: transparent;
}

.character-selector img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: box-shadow 180ms ease;
}

.character-selector:hover img,
.character-btn:hover img,
.character-btn.active img {
    box-shadow: 0 0 0 2px #0a8aad;
}

.character-btn img {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 50%;
    transition: box-shadow 180ms ease;
}

.character-btn span {
    display: block;
    margin-top: 5px;
    color: #606060;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

#basemap-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    z-index: 10;
}

.basemap-selector,
.basemap-btn {
    width: 80px;
    height: 80px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: 20%;
    cursor: pointer;
}

.basemap-selector {
    border: 3px solid #ffffff;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
    transition: box-shadow 180ms ease;
}

.basemap-selector:hover {
    box-shadow: none;
}

.basemap-menu {
    position: absolute;
    top: 0px;
    left: 90px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 80px;
    box-sizing: border-box;
    max-width: calc(100vw - 130px);
    overflow: hidden;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transform: scaleX(0.05);
    transform-origin: left center;
    transition:
        opacity 200ms ease,
        transform 600ms ease;
}

.basemap-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scaleX(1);
}

.basemap-btn {
    flex: 0 0 60px;
    width: 60px;
    height: 68px;
    border: none;
    background: transparent;
}

.basemap-selector img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20%;
    transition: box-shadow 180ms ease;
}

.basemap-btn img {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto;
    object-fit: cover;
    border-radius: 20%;
    transition: box-shadow 180ms ease;
}

.basemap-selector:hover img,
.basemap-btn:hover img,
.basemap-btn.active img {
    box-shadow: 0 0 0 2px #0a8aad;
}

.basemap-btn span {
    display: block;
    margin-top: 5px;
    color: #606060;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}
