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

html, body {
    height: 100%;
    overflow: hidden;
    background: #05060a;
    font-family: 'Inter', system-ui, sans-serif;
    color: #eaf0ff;
    cursor: none;
}

#garden-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: block;
    z-index: 2;                         /* garden draws over the live feed */
}

/* Live camera feed as the full-screen background */
#cam-video {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    transform: scaleX(-1);              /* mirror so it matches the hand mapping */
    z-index: 1;
    transition: opacity 0.5s ease;
}
#cam-video.hidden { opacity: 0; }

/* Gesture hints */
#hud {
    position: fixed;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    z-index: 15;
    text-align: center;
    transition: opacity 0.8s ease;
    pointer-events: none;
}
#hud.faded { opacity: 0; }
#hud .hint {
    font-weight: 200;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: rgba(224, 232, 255, 0.72);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}
#hud .hint b { font-weight: 600; color: #fff; }
#hud .keys {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(150, 165, 205, 0.55);
}

/* Watercolor mode has a light paper background — switch hints to dark ink */
body.paper-ui #hud .hint {
    color: rgba(70, 58, 40, 0.82);
    text-shadow: 0 1px 10px rgba(255, 250, 235, 0.7);
}
body.paper-ui #hud .hint b { color: #34291a; }
body.paper-ui #hud .keys { color: rgba(110, 95, 70, 0.72); }

/* Start overlay — watercolor / paper theme */
#start-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 36%, rgba(255,251,240,0.92) 0%, rgba(231,220,196,0.6) 55%, rgba(214,199,168,0.55) 100%),
        #e9ddc5;
    transition: opacity 0.7s ease;
    cursor: default;
}
#start-overlay.gone { opacity: 0; pointer-events: none; }

/* soft blurred pigment washes behind the title */
#start-overlay::before,
#start-overlay::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(64px);
    opacity: 0.5;
    pointer-events: none;
}
#start-overlay::before {
    width: 42vw; height: 42vw;
    left: 16%; top: 14%;
    background: radial-gradient(circle, rgba(188,116,148,0.55), rgba(188,116,148,0) 70%);
}
#start-overlay::after {
    width: 46vw; height: 46vw;
    right: 12%; bottom: 10%;
    background: radial-gradient(circle, rgba(120,150,92,0.5), rgba(120,150,92,0) 70%);
}

.start-card { text-align: center; position: relative; z-index: 1; }
.start-card h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(56px, 11vw, 132px);
    line-height: 1;
    letter-spacing: 0.01em;
    background: linear-gradient(115deg, #9c5c73 0%, #7a6a45 46%, #4a6a5e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 18px rgba(120, 90, 70, 0.22));
}
.start-card .tagline {
    margin-top: 14px;
    font-weight: 300;
    font-size: clamp(14px, 2vw, 19px);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7a6a4e;
}
#start-btn {
    margin-top: 44px;
    padding: 15px 56px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #46402f;
    background: rgba(150, 165, 110, 0.16);
    border: 1.5px solid rgba(110, 125, 75, 0.55);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#start-btn:hover {
    background: rgba(150, 170, 110, 0.32);
    border-color: rgba(90, 110, 60, 0.9);
    box-shadow: 0 8px 30px rgba(120, 110, 70, 0.25);
    transform: translateY(-1px);
}
.start-card .status {
    margin-top: 28px;
    font-size: 12.5px;
    font-weight: 300;
    letter-spacing: 0.06em;
    color: rgba(90, 75, 55, 0.72);
    min-height: 18px;
}
.start-card .status.error { color: #b0503f; }
