* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
}

#hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

#crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
}

#crosshair::before,
#crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
}

#crosshair::before {
    width: 1px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#crosshair::after {
    height: 1px;
    width: 100%;
    top: 50%;
    transform: translateY(-50%);
}

#info-label {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#info-label.visible {
    opacity: 1;
}

#controls-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    white-space: nowrap;
}

#artwork-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    flex-direction: column;
    gap: 24px;
}

#artwork-panel.open {
    opacity: 1;
    pointer-events: all;
}

#artwork-panel img {
    max-width: 60vw;
    max-height: 55vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

#artwork-title {
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

#artwork-subtitle {
    color: #ddd;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0.1em;
}

#artwork-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0.05em;
    max-width: 90vw;
    text-align: justify;
    line-height: 1.8;
}

#artwork-link a {
    color: #c8a96e;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

#artwork-link a::after {
    content: '→';
    font-size: 11px;
}

#artwork-link a:hover {
    color: rgba(200, 169, 110, 0.7);
}

#artwork-close {
    position: absolute;
    top: 32px;
    right: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 28px;
    cursor: pointer;
    pointer-events: all;
    transition: color 0.2s;
    background: none;
    border: none;
}

#artwork-close:hover {
    color: #fff;
}

/* ── INFO PANELS ── */
#info-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 4, 6, 0.96);
    display: flex;
    align-items: stretch;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    overflow: hidden;
}

#info-panel.open {
    opacity: 1;
    pointer-events: all;
}

#info-panel-close {
    position: absolute;
    top: 32px;
    right: 40px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
    z-index: 10;
}

#info-panel-close:hover {
    color: #fff;
}

#info-panel-inner {
    display: flex;
    width: 100%;
    max-width: 1100px;
    padding: 80px 60px 60px;
    gap: 60px;
    overflow-y: auto;
}

#info-panel-sidebar {
    width: 220px;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#info-panel-sidebar .panel-tag {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 12px;
}

#info-panel-content {
    flex: 1;
    min-width: 0;
}

#info-panel-content h2 {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 32px;
}

.info-bio-para {
    font-size: 14px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    max-width: 640px;
}

.info-link-group-title {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin: 28px 0 10px;
}

.info-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-link-list a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-link-list a:hover {
    color: #c8a96e;
}

.info-link-list a::before {
    content: '→';
    color: rgba(200, 169, 110, 0.5);
    font-size: 11px;
}

.exhibit-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 24px;
    margin-bottom: 16px;
    max-width: 640px;
    transition: border-color 0.2s;
}

.exhibit-card:hover {
    border-color: rgba(200, 169, 110, 0.3);
}

.exhibit-card-title {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c8a96e;
    margin-bottom: 10px;
}

.exhibit-card-desc {
    font-size: 13px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.45);
}

.sidebar-nav-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s;
}

.sidebar-nav-btn:hover,
.sidebar-nav-btn.active {
    color: #c8a96e;
}

#welcome-screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
}

#welcome-screen h1 {
    color: #fff;
    font-size: 48px;
    font-weight: 200;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

#welcome-screen p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#enter-btn {
    padding: 14px 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

#enter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

#room-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
}

/* ── WELCOME SCREEN ADDITIONS ── */
#welcome-controls-hint {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
    max-width: 320px;
    line-height: 1.8;
}

#welcome-exit-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s;
    padding: 4px 0;
}

#welcome-exit-btn:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ── MOBILE JOYSTICK ── */
#joystick-zone {
    display: none;
    position: absolute;
    bottom: 40px;
    left: 30px;
    width: 120px;
    height: 120px;
    pointer-events: all;
    z-index: 50;
}

#joystick-base {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
}

#joystick-knob {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.5);
    border: 1px solid rgba(200, 169, 110, 0.8);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* ── MOBILE INTERACT BUTTON ── */
#mobile-interact-btn {
    display: none;
    position: absolute;
    bottom: 48px;
    right: 110px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(200, 169, 110, 0.15);
    border: 1px solid rgba(200, 169, 110, 0.4);
    color: rgba(200, 169, 110, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 18px;
    cursor: pointer;
    pointer-events: all;
    z-index: 50;
    transition: background 0.2s;
    align-items: center;
    justify-content: center;
}

#mobile-interact-btn:active {
    background: rgba(200, 169, 110, 0.35);
}

#mobile-interact-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── MOBILE EXIT BUTTON ── */
#mobile-exit-btn {
    display: none;
    position: absolute;
    bottom: 48px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: all;
    z-index: 50;
    transition: background 0.2s, color 0.2s;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
}

#mobile-exit-btn:active {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

/* ── MOBILE OVERRIDES ── */
@media (max-width: 768px) {
    #controls-hint {
        display: none;
    }

    #joystick-zone {
        display: block;
    }

    #mobile-interact-btn {
        display: flex;
    }

    #mobile-exit-btn {
        display: flex;
    }

    #room-label {
        font-size: 10px;
    }

    #info-label {
        font-size: 11px;
        bottom: 170px;
    }

    #info-panel-inner {
        flex-direction: column;
        padding: 60px 24px 40px;
        gap: 32px;
    }

    #info-panel-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 20px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    #artwork-panel img {
        max-width: 90vw;
        max-height: 45vh;
    }

    #artwork-title {
        font-size: 16px;
    }

    #artwork-desc {
        font-size: 12px;
        max-width: 90vw;
    }
}