* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 640px;
    text-align: center;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
}

.hint {
    color: #94a3b8;
    margin-bottom: 20px;
}

.camera-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

video, img {
    width: 100%;
    max-width: 100%;
    border-radius: 12px;
    display: block;
    background: #000;
}

.controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    min-height: 20px;
}

[hidden] {
    display: none !important;
}
