body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

#container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Particles on top */
}

/* Make video the fullscreen background for AR effect */
.input_video {
    display: none; /* Keep original hidden */
}

.output_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1; /* Video in background */
    transform: scaleX(-1); /* Mirror */
    opacity: 0.4; /* Dim the background to make particles pop */
    filter: brightness(0.6) contrast(1.2); /* Further darken and enhance contrast */
}

#ui {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 255, 204, 0.3);
    pointer-events: none;
    max-width: 350px;
}

#ui h2 {
    margin-top: 0;
    color: #00ffcc;
    font-size: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 10px;
}

#ui .status-line {
    font-size: 14px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
}

#ui .status-label {
    color: #aaa;
}

#ui .status-value {
    color: #00ffcc;
    font-weight: bold;
}

#ui .rules {
    margin-top: 15px;
    font-size: 12px;
    line-height: 1.6;
    color: #ddd;
}

#status {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 255, 0, 0.2);
    border-left: 4px solid #ffcc00;
    font-weight: bold;
    font-size: 14px;
}
