html {
    --accent-color: #0a5f38;
    --body-bg-color: #000;
}

body {
    background-color: var(--body-bg-color);
}

#game-row {
    max-width: 1200px;
    gap: 1.5rem;
}

#map-panel {
    flex-shrink: 0;
}

#metroCanvas {
    background-color: #111;
    border-radius: 12px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 700px;
    height: auto;
}

#info-panel {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-block {
    margin-bottom: 1.2rem;
}

.info-label {
    font-size: 0.85em;
    color: #fff;
    opacity: 0.6;
    margin-bottom: 0.2rem;
}

.current-station {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--accent-color);
}

.target-station {
    font-size: 1.6em;
    font-weight: bold;
    color: #ffd166;
}

#localMapCanvas {
    background-color: #111;
    border-radius: 10px;
    box-shadow: 0px 0px 8px rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 320px;
    height: auto;
}

.neighbor-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.neighbor-list li {
    font-size: 0.95em;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    transition: opacity 0.15s, background-color 0.15s;
}

.neighbor-list li.matched {
    background-color: var(--accent-color);
    color: #fff;
}

.neighbor-list li.unmatched {
    opacity: 0.3;
}

.neighbor-list li.is-target {
    border: 1px solid #ffd166;
}

#typing_area {
    width: 90%;
    max-width: 280px;
    padding: 0.5em 0.6em;
    text-align: center;
    font-size: 1.4em;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    background-color: #fff;
    color: #111;
    outline: none;
}

#typing_area:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 6px var(--accent-color);
}

#typing_area.missed {
    animation: missType 0.4s;
}

@keyframes missType {
    0% {
        background-color: #ff8080;
    }
}

#cleared-station-name {
    display: inline-block;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
    min-height: 1.6em;
    opacity: 0;
}

#cleared-station-name.show {
    animation: clearedStationFade 0.5s ease-out;
}

@keyframes clearedStationFade {
    0% {
        opacity: 0;
        transform: translateY(6px);
    }

    15% {
        opacity: 1;
        transform: translateY(0);
    }

    75% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-6px);
    }
}

@media (max-width: 1050px) {
    #game-row {
        flex-direction: column;
        align-items: center;
    }

    #info-panel {
        width: 100%;
        max-width: 500px;
    }
}
