
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #111;
    color: white;
    text-align: center;
}

header {
    padding: 30px;
}

.app {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

.camera-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.brightness-control {
    height: 300px;
    display: flex;
    align-items: center;
}

.brightness-control input {
    writing-mode: vertical-lr;
    direction: rtl;
    height: 300px;
    cursor: pointer;
}

.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid #333;
    background: black;
}

video {
    width: 100%;
    display: block;
}

.mask-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.35;
    pointer-events: none;
}

canvas {
    width: 100%;
    max-width: 640px;
    border-radius: 16px;
    border: 4px solid #333;
    background: black;
    margin: 15px 0;
}

button {
    padding: 14px 22px;
    margin: 12px 8px;
    border: none;
    border-radius: 10px;
    background: #e63946;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

button:hover {
    background: #ff4d5a;
}

.info {
    color: #ccc;
    font-size: 14px;
}
