

.header {
    height: 60px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 100;
}

.left-section {
    display: flex;
    align-items: center;
    position: relative;
}

.right-section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 24px;
}

.logo {
    height: 40px;
    display: block;
    margin-left: 24px;
    margin-right: 20px;
    filter: brightness(0) invert(1);
}

.btn {
    font-family: "lores-12", monospace;
    background-color: #000;
    color: #fff;
    border: 3px solid #444;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #333;
    border-color: #FFB46B;
    color: #FFB46B;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 180, 107, 0.5);
}

.btn:active {
    transform: translateY(1px);
}

.back {
    font-family: "lores-12", monospace;
    font-size: 16px;
    font-weight: normal;
    background-color: #000;
    color: #fff;
    border: 3px solid #444;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 24px;
}

.back:hover {
    background-color: #333;
    border-color: #FFB46B;
    color: #FFB46B;
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(255, 180, 107, 0.5);
}

.back:active {
    transform: translateY(1px);
}

.map-button {
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
}

.map-button-icon {
    width: 24px;
    height: 24px;
    display: block;
    filter: invert(1);
    pointer-events: none;
}

.map-button:hover .map-button-icon {
    filter: invert(76%) sepia(42%) saturate(750%) hue-rotate(330deg) brightness(106%);
}

.map-button.is-active {
    border-color: #222;
    color: #fff;
}

.map-menu {
    position: fixed;
    bottom: 95px;
    right: 20px;
    width: 420px;
    max-width: calc(100vw - 40px);
    background: #1a1c1e;
    border: 3px solid #3E3C3A;
    outline: 3px solid #0d0e0f;
    box-shadow:
        inset 0 0 0 2px #5a5c5e,
        8px 8px 0 0 #0d0e0f;
    padding: 18px;
    z-index: 90;
    display: none;
    box-sizing: border-box;
    font-family: "lores-12", monospace;
    color: #a0a4a8;
}

.map-menu.is-open {
    display: block;
}

.menu-title {
    font-family: "lores-15", monospace;
    font-size: 20px;
    font-weight: normal;
    letter-spacing: 0;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #3E3C3A;
    color: #FFB46B;
}

.menu-body {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: stretch;
}

.menu-map {
    width: 82px;
    flex-shrink: 0;
    border: 2px solid #3E3C3A;
    box-shadow: inset 0 0 0 1px #0d0e0f;
    background: #131516;
    padding: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.menu-map-svg {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: block;
}

.menu-map-shaft {
    fill: #252729;
}

.menu-map-corridor {
    fill: #252729;
}

.menu-map-room {
    fill: #2d3032;
    stroke: #3E3C3A;
    stroke-width: 12px;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.menu-map-room:hover {
    fill: #383c3e;
}

.menu-map-room.is-current,
.menu-map-room.is-selected {
    fill: #3d2e14;
    stroke: #FFB46B;
    stroke-width: 20px;
}

.menu-map-vault {
    fill: #1e2022;
    stroke: #3E3C3A;
    stroke-width: 12px;
    stroke-dasharray: 40 20;
}

.menu-list {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    align-content: start;
}

.menu-list .menu-room:last-child {
    grid-column: 1 / -1;
}

.menu-room {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    border: 2px solid #3E3C3A;
    background: #232527;
    color: #636668;
    padding: 8px 10px;
    text-align: left;
    font-family: "lores-12", monospace;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
    box-sizing: border-box;
    gap: 4px;
}

.menu-room-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.menu-room-pip {
    width: 8px;
    height: 8px;
    background: #FFB46B;
    flex-shrink: 0;
    opacity: 0;
    image-rendering: pixelated;
    transition: opacity 0.15s ease;
}

.menu-room.is-home .menu-room-pip {
    opacity: 1;
}

.menu-room:hover {
    background: #2d3032;
    border-color: #5a5c5e;
    color: #b8bcbe;
}

.menu-room.is-selected,
.menu-room.is-current {
    background: #2e2c28;
    border-color: #FFB46B;
    color: #FFB46B;
}

.menu-room:disabled,
.menu-room.is-disabled {
    cursor: default;
    opacity: 0.35;
}

.menu-room:disabled:hover,
.menu-room.is-disabled:hover {
    background: #232527;
    border-color: #3E3C3A;
    color: #636668;
    box-shadow: none;
}

.menu-actions {
    border-top: 1px solid #3E3C3A;
    padding-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu-actions-gap {
    flex: 1;
}

.menu-actions .btn {
    border: 2px solid #3E3C3A;
    padding: 9px 14px;
    background: #232527;
    color: #a0a4a8;
    box-shadow: 3px 3px 0 0 #0d0e0f;
}

.menu-actions .btn:hover {
    background-color: #2d3032;
    border-color: #FFB46B;
    color: #FFB46B;
    transform: none;
    box-shadow: 3px 3px 0 0 #0d0e0f;
}

.menu-close {
    font-size: 16px;
    padding: 9px 12px;
}

.menu-enter:disabled,
.menu-enter:disabled:hover {
    opacity: 0.4;
    cursor: default;
    transform: none;
    box-shadow: 3px 3px 0 0 #0d0e0f;
    background-color: #232527;
    border-color: #3E3C3A;
    color: #636668;
}

@media (max-width: 700px) {
    .map-menu {
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-left: 0;
        border-right: 0;
        outline: none;
        box-shadow: inset 0 0 0 2px #5a5c5e, 0 -4px 0 0 #0d0e0f;
        bottom: 0;
    }
}
