:root {
    --bg: #111;
    --panel: #222;
    --accent: #6fa8ff;
    --fg: #fff;
}

html,
body {
    height: 100%;
    margin: 0;
    background: var(--bg);
    color: var(--fg);
}

.wrap {
    max-width: 1100px;
    margin: 18px auto;
    padding: 18px;
}

h1 {
    margin: 0 0 12px;
}

.row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.panel {
    background: var(--panel);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.preview {
    width: 360px;
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    border-radius: 6px;
}

#character {
    position: relative;
    width: 164px;
    height: 219px;
    transform: translate(0px, 0px);
}

#body,
#head {
    position: absolute;
    left: 0;
    top: 0;
    width: 164px;
    height: 219px;
    background-repeat: no-repeat;
    background-color: transparent;
}

#head {
    pointer-events: auto;
    cursor: grab;
}

.controls {
    min-width: 300px;
}

button,
input,
select {
    font-size: 13px;
}

button {
    background: #333;
    color: var(--fg);
    border: 0;
    padding: 8px 10px;
    margin: 6px;
    border-radius: 6px;
    cursor: pointer;
}

input[type="number"] {
    width: 84px;
    padding: 6px;
    border-radius: 6px;
    border: 1px solid #333;
    background: #141414;
    color: var(--fg);
}

label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
}

.small {
    font-size: 12px;
    color: #aaa;
}

#canvas {
    width: 100%;
    height: 80px;
    background: #060606;
    border-radius: 6px;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
}