@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700&display=swap');

:root {
    --primary-color: #333;
    --accent-color: #6366f1;
    --bg-color: #ffffff;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

header {
    text-align: center;
    margin-bottom: 10px;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
}

/* Canvas Container */
#unity-container {
    position: relative;
    width: 960px;
    height: 600px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#unity-canvas {
    width: 100%;
    height: 100%;
    background: #000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Loading Screen */
#loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 10;
    transition: opacity 0.5s ease;
}

.loader-logo {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.progress-container {
    width: 200px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

#unity-progress-bar-full {
    width: 0%;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.2s ease;
}

.loading-text {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Controls */
.controls {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.btn {
    background: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--accent-color);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* Responsive */
@media (max-width: 1000px) {
    #unity-container {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
    }
}
