* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
    background: #fff;
    color: #111;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #000;
    letter-spacing: -0.02em;
}

.subtitle {
    color: #666;
    font-size: 1rem;
    font-weight: 400;
}

.controls-panel {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    width: 100%;
    border: 1px solid #e5e5e5;
}

.control-group {
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #111;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider {
    flex: 1;
    height: 5px;
    border-radius: 2px;
    background: #e5e5e5;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #000;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.value-display {
    min-width: 35px;
    text-align: center;
    font-weight: 500;
    color: #111;
    font-size: 0.9rem;
}

.button-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    padding: 10px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: capitalize;
    letter-spacing: 0;
    background: white;
    color: #111;
}

.btn-primary {
    background: #000;
    color: white;
    border-color: #000;
}

.btn-primary:hover {
    background: #111;
    border-color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: white;
    color: #111;
    border-color: #e5e5e5;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn:active {
    opacity: 0.8;
}

.canvas-container {
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 10px;
    border: 2px solid #e9ecef;
}

#main {
    border: 2px sol8px;
    padding: 12px;
    border: 1px solid #e5e5e5;
    width: 100%;
    max-width: 500px;
}

#main {
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    width: 100%;
    height: auto;
    display: block;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 0.875rem;
    border-top: 1px solid #e5e5e5;
    margin-top: 40px;
}

.creator {
    color: #111;
    font-weight: 500;
}

@media (max-width: 640px) {
    .content-wrapper {
        padding: 24px 16px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header {
        margin-bottom: 32px;
    }

    .controls-panel {
        padding: 20px;
        margin-bottom: 20px;
    }

    .button-group {
        gap: 6px;
    }

    .btn {
        flex: 1;
        min-width: 60px;
    }

    .canvas-container {
        padding: 8px;
    }