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

body {
    font-family: 'Arial', sans-serif;
    background: #1a1a1a;
    color: #fff;
    overflow: hidden;
}

#game-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

#loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
}

.loading-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.loading-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #aaa;
}

.loading-bar {
    width: 400px;
    height: 20px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 1rem;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

.loading-text {
    font-size: 0.9rem;
    color: #666;
}

#ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

#ui-overlay > * {
    pointer-events: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.resources {
    display: flex;
    gap: 2rem;
}

.resource {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: bold;
}

.resource .icon {
    font-size: 1.5rem;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

#player-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #4CAF50;
}

.gold {
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
}

canvas {
    display: block;
}
