:root {
    --bg: #1a0f12; /* Darker Sakura Background */
    --panel: #2d191e; /* Sakura Dark Brown-Pink */
    --panel-soft: #3a2228;
    --line: #5a3840;
    --text: #fff0f3;
    --muted: #d4a5b0;
    --accent: #ff8fa3;
    --accent-hover: #ff5c8a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
    background: radial-gradient(circle at 10% 0, #3d232a, var(--bg) 55%);
    color: var(--text);
}

.layout {
    max-width: 1800px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 18px;
    min-height: 100vh;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: color-mix(in oklab, var(--panel) 88%, black);
    padding: 20px;
}

h1,
h2 {
    margin: 0 0 8px;
}

.panel-description {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-grid {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--panel-soft);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

button {
    border: none;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    background: var(--accent);
    color: white;
    font-weight: 600;
}

button:hover {
    background: var(--accent-hover);
}

button.secondary {
    background: transparent;
    border: 1px solid var(--line);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.preview-panel {
    display: flex;
    flex-direction: column;
}

#profile-canvas {
    width: 100%;
    max-height: calc(100vh - 110px);
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0b0d1c;
}

.hint {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

@media (max-width: 1200px) {
    .layout {
        grid-template-columns: 1fr;
    }
}


.status {
    padding: 10px 12px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.9rem;
}

h3 {
    margin: 18px 0 10px;
    font-size: 1rem;
}

.stats-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
}

#stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
    background: var(--panel-soft);
}

#stats-table th,
#stats-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: center;
    font-size: 0.8rem;
}

#stats-table th {
    color: #dce2ff;
    font-weight: 700;
}
