html, body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
}

#map {
    width: 100%;
    height: 100%;
    background-color: hsl(0, 0%, 16%);
}

.axis-box {
    color: hsl(0, 0%, 100%);
    font-size: 12px;
    position: fixed;
    z-index: 9999;
    left: 4px;
    bottom: 4px;
    background-color: hsla(0, 0%, 0%, 0.8);
    padding: 2px 6px;
    border-radius: 4px;
}

.map-switch {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    gap: 6px;
    background-color: hsla(0, 0%, 0%, 0.8);
    padding: 6px;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}
.map-switch-btn {
    color: hsl(0, 0%, 85%);
    background-color: transparent;
    border: 1px solid hsla(0, 0%, 100%, 0.25);
    padding: 5px 14px;
    border-radius: 5px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.map-switch-btn:hover {
    background-color: hsla(0, 0%, 100%, 0.12);
}
.map-switch-btn.active {
    background-color: #2196F3;
    border-color: #2196F3;
    color: #ffffff;
}
.map-switch-btn.color-btn.active {
    background-color: #FFC84D;
    border-color: #FFC84D;
    color: #1a1a1a;
}

.country-box {
    width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    opacity: var(--country-opacity);
    transition: opacity 0.3s;
}
.country-box .flag {
    width: 36px !important;
}
.country-box .name {
    color: #ffffff;
    font-size: 14px;
    background-color: hsla(0, 0%, 0%, 0.5);
    padding: 0 6px;
    margin-top: 4px;
}

.city-box {
    width: 200px;
    color: hsl(0, 0%, 100%);
    font-size: 16px;
    text-align: center;
    transform: translate(-50%, -50%);
    opacity: var(--city-opacity);
    transition: opacity 0.3s;
}

.city-box span {
    display: inline-block;
    padding: 2px 6px;
    background-color: hsla(0, 0%, 0%, 0.5);
}

.point-box {
    width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    opacity: var(--point-opacity);
    transition: opacity 0.3s;
}
.point-box .point {
    height: 22px !important;
}
.point-box .company {
    height: 18px !important;;
}

.player-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
}
.player-box .player-dot {
    width: 14px;
    height: 14px;
    background-color: #2196F3;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(33, 150, 243, 0.8);
}
.player-box .player-name {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    background-color: hsla(210, 80%, 40%, 0.75);
    padding: 1px 6px;
    border-radius: 3px;
    margin-top: 2px;
    white-space: nowrap;
}

.player-info {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 9999;
    background-color: hsla(0, 0%, 0%, 0.85);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    display: none;
    min-width: 180px;
}
.player-info.active {
    display: block;
}
.player-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.player-info-row + .player-info-row {
    border-top: 1px solid hsla(0, 0%, 100%, 0.15);
}
.player-info-label {
    color: hsla(0, 0%, 70%, 1);
    margin-right: 16px;
}
.player-info-value {
    font-weight: bold;
}
