body {
    margin: 0;
    overflow: hidden;
    background-color: #cccccc;
    color: #000;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Consolas', monospace;
}

.debug-info {
    transition: opacity 0.3s ease;
}

.debug-info.hidden {
    opacity: 0;
    pointer-events: none;
}

#controls-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #111;
    backdrop-filter: blur(8px);
    padding: 12px 16px;
    font-family: monospace;
    z-index: 100;
}

.overlay-hint {
    font-size: 0.7rem;
    color: #DC143C;
    text-align: right;
    margin-bottom: 4px;
}

.overlay-hint kbd {
    background: #111;
    border: 1px solid #444;
    padding: 0 4px;
    font-family: monospace;
    color: #888;
}

#controls-overlay h3 {
    color: #DC143C;
    font-size: 0.9rem;
    margin: 0 0 8px 0;
}

.controls-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
}

.controls-grid kbd {
    background: #111;
    border: 1px solid #444;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 0.8rem;
    color: #DC143C;
    text-align: center;
}

.controls-grid span {
    font-size: 0.8rem;
    color: #ccc;
}

.legend-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 10px;
    align-items: center;
}

.legend-swatch {
    width: 12px;
    height: 12px;
    display: inline-block;
}

.legend-grid span {
    font-size: 0.8rem;
    color: #ccc;
}
