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

/* ---------- BASE ---------- */
body {
    background: #0f1115;
    color: #eaeaea;
    font-family: 'Comfortaa', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ---------- TYPOGRAPHY ---------- */
h1 {
    margin: 2.2rem 0 1.2rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    font-size: 1.8rem;
}

/* ---------- COLOR PALETTE ---------- */
.palette {
    display: flex;
    gap: 22px;
    margin-top: 2.2rem;
    margin-bottom: 2.5rem;
}

.box {
    width: 82px;
    height: 82px;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.box:hover {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- COLORS ---------- */
.blue {
    background: #005dff;
}

.green {
    background: #00d084;
}

.red {
    background: #ff3b3b;
}

.pink {
    background: #ff4fd8;
}

.orange {
    background: #ffb703;
}

.yellow {
    background: #ffe66d;
}

/* ---------- CAMERA ---------- */
.camera {
    position: relative;
    width: min(90vw, 680px);
    margin-bottom: 2rem;
    border-radius: 18px;
    overflow: hidden;
    background: #151822;
}

/* Video + Canvas */
video,
canvas {
    width: 100%;
    height: auto;
    display: block;
}

/* Canvas overlay */
canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 520px) {
    .palette {
        gap: 14px;
    }

    .box {
        width: 68px;
        height: 68px;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.5rem;
    }
}
/* ---------- FOOTER ---------- */
.site-footer {
    margin-top: auto;
    padding: 1.5rem 0 1.2rem;
    width: 100%;
    text-align: center;
    color: #9a9a9a;
    font-size: 0.85rem;
    letter-spacing: 0.4px;
}

.site-footer .brand {
    color: #eaeaea;
    font-weight: 500;
}

.site-footer .author {
    color: #cfcfcf;
    font-weight: 500;
}