body {
    margin: 0;
    background-color: #F9F9F6;
    color: #1A1A1A;
    font-family: system-ui, -apple-system, sans-serif;
    display: flex;
    justify-content: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 900px;
}

h1 {
    font-family: Georgia, serif;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    color: #4b5563;
    font-size: 1.125rem;
    margin-top: 0;
}

.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.canvas-container {
    background: white;
    border: 1px solid #E5E5E0;
    border-radius: 8px;
    height: 450px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.controls {
    background: white;
    padding: 1.5rem;
    border: 1px solid #E5E5E0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.control-group label span {
    font-family: monospace;
    color: #1f2937;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
}

.hint {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.explanation {
    border-top: 1px solid #E5E5E0;
    padding-top: 1.5rem;
    color: #4b5563;
    line-height: 1.6;
}

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