body {
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    height: 100vh;
    background-color: #1a1a1a;
    color: #eee;
}

#sidebar {
    width: 280px;
    background: #252525;
    border-right: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#right-bar {
    width: 280px;
    background: #252525;
    border-left: 1px solid #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#sidebar h2 {
    margin: 0 0 10px 0;
    font-size: 1.4rem;
    color: #e50914;
    /* Red-ish */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-group {
    background: #333;
    padding: 15px;
    border-radius: 8px;
}

.tool-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #aaa;
    font-weight: 600;
    text-transform: uppercase;
}

button {
    width: 100%;
    padding: 10px;
    background: #444;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

button:hover {
    background: #555;
    transform: translateX(2px);
}

button:active {
    background: #666;
}

#asset-library {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 50px;
    background: #2a2a2a;
    padding: 8px;
    border-radius: 4px;
}

.asset-item {
    width: 60px;
    height: 60px;
    background: #555;
    border: 1px solid #777;
    border-radius: 4px;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    text-align: center;
    overflow: hidden;
    user-select: none;
    transition: transform 0.1s;
}

.asset-item:active {
    cursor: grabbing;
    transform: scale(0.95);
}

#game-container {
    flex-grow: 1;
    position: relative;
    background: #111;
}

canvas {
    display: block;
    outline: none;
}

.instructions {
    margin-top: auto;
    font-size: 0.8rem;
    color: #888;
    background: #222;
    padding: 10px;
    border-radius: 6px;
}

.instructions ul {
    padding-left: 20px;
    margin: 5px 0 0 0;
}

.instructions li {
    margin-bottom: 4px;
}