:root {
    --bg: #0f1216;
    --panel: #1a1f26;
    --text: #e6e9ef;
    --muted: #9aa3af;
    --accent: #4f9cf9;
    --face1: #60a5fa;
    --face2: #34d399;
    --face3: #fbbf24;
    --face4: #f472b6;
    --face5: #a78bfa;
    --face6: #fb7185;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.split {
    display: flex;
    width: 100vw;
    height: 100vh;
}

.left {
    position: relative;
    flex: 7;
    min-width: 0;
}

.right {
    flex: 3;
    min-width: 280px;
    max-width: 540px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--panel);
    padding: 12px;
    overflow-y: auto;
}

#sceneCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

#labelsOverlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.top-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #999999;
    font-size: 16px;
    pointer-events: none;
    z-index: 20;
}

.section-title {
    font-size: 13px;
    color: var(--muted);
    margin: 4px 0 8px;
}

.options {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 10px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: #232a32;
    cursor: pointer;
}

.option:hover {
    background: #2a323c;
}

.option.active {
    border-color: var(--accent);
    background: rgba(79, 156, 249, 0.1);
}

.option.active .name {
    color: var(--accent);
}

.option.active:hover {
    background: rgba(79, 156, 249, 0.15);
}

.thumb {
    width: 72px;
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: #1f2530;
    display: grid;
    place-items: center;
}

.option .detail {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.option .detail .name {
    font-weight: 600;
    color: #ffffff;
}

.option .detail .desc {
    font-size: 12px;
    color: var(--muted);
}

.controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
    background: rgba(26, 31, 38, 0.7);
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.controls button {
    cursor: pointer;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #232a32;
    color: var(--text);
}

.controls button.primary {
    background: var(--accent);
    border-color: #3e83df;
    color: #0b1220;
    font-weight: 600;
}

.hint {
    font-size: 12px;
    color: var(--muted);
    margin-top: 8px;
}