:root {
    --bg-dark: #0a0a0a;
    --panel-dark: #111;
    --accent: #00A876;
    --text-light: #eee;
    --dot-inactive: #555;
    --dot-active: #ffd700;
}
* { box-sizing: border-box; margin:0; padding:0; }
body {
    background: var(--bg-dark);
    color: var(--text-light);
    font-family: system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin:0;
}
.container {
    text-align: center;
    width: 90%;
    max-width: 420px;
}
h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.subtitle {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}
.camera-box {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #000;
    margin-bottom: 1rem;
    overflow:hidden;
    border-radius: 8px;
}
#video {
    width:100%; height:100%; object-fit:cover;
}
#canvas {
    width:100%; height:100%;
}
button {
    background: var(--accent);
    color:#000;
    border:none;
    padding:0.75rem 1.5rem;
    font-size:1rem;
    border-radius:4px;
    cursor:pointer;
    margin-bottom:1rem;
    font-weight:600;
}
button:active { opacity:0.9; }
.output {
    min-height: 2.5rem;
    background: var(--panel-dark);
    border-radius:6px;
    padding:0.75rem;
    margin-bottom:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:1.1rem;
    letter-spacing:0.5px;
}
.confidence {
    display:flex;
    justify-content:center;
    gap:0.5rem;
}
.dot {
    width:12px; height:12px;
    background: var(--dot-inactive);
    border-radius:50%;
    display:inline-block;
}
.dot.active { background: var(--dot-active); }
@media (prefers-color-scheme: light) {
    :root {
        --bg-dark: #fafafa;
        --panel-dark: #e0e0e0;
        --text-light: #222;
        --dot-inactive: #bbb;
    }
}
