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

body {
    font-family: 'Noto Sans', sans-serif;
    overflow: hidden;
    background: #000;
}

#ui {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
    pointer-events: none;
}

.controls {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: all;
}

h2 {
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

h3 {
    margin-bottom: 10px;
    font-size: 16px;
    color: #333;
}

.brick-selector {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 15px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.brick-size-selector {
    margin-bottom: 15px;
}

.size-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}

.size-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.size-btn.active {
    border-color: #333;
    background: #f0f0f0;
}

.brick-selector::-webkit-scrollbar {
    width: 8px;
}

.brick-selector::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.brick-selector::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.brick-selector::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.brick-btn {
    padding: 0;
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.brick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.brick-btn.active {
    border-color: #333;
    background: #f0f0f0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.color-swatch {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    border: none;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.delete-btn.active {
    border-color: #ff0000;
    background: #ffe0e0;
}

.info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.info p {
    margin: 5px 0;
}