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

body {
    overflow: hidden;
    background: #1a1a1a;
    font-family: 'Segoe UI', 'PingFang TC', sans-serif;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
}

#canvas-container canvas {
    display: block;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: #d4d4d4;
    transition: opacity 0.5s ease;
}

#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #333;
    border-top-color: #c9a962;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#info-panel {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(10px);
    padding: 25px 40px;
    border-radius: 4px;
    border: 1px solid #333;
    color: #e8e8e8;
    z-index: 100;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#info-panel.hidden {
    display: none;
}

#close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

#close-btn:hover {
    color: #c9a962;
}

#artwork-title {
    font-size: 20px;
    font-weight: 500;
    color: #c9a962;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

#artwork-desc {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}

#controls-hint {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    border-radius: 4px;
    color: #888;
    font-size: 12px;
    z-index: 50;
}

#gallery-name {
    position: fixed;
    top: 25px;
    left: 30px;
    color: #c9a962;
    z-index: 50;
}

#gallery-name h1 {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
}

#gallery-name p {
    font-size: 11px;
    color: #666;
    letter-spacing: 2px;
    margin-top: 3px;
}
