:root {
    --bg-color: #f5f0e1;        /* Old footer color for background */
    --surface-color: #e7e2d1;   /* Slightly deeper stone for footer */
    --primary-color: #fca5a5;   /* Pale Dusty Red */
    --text-color: #64748b;      /* Muted Slate */
    --accent-color: #a3a3a3;    
    --border-color: #d6d1c0;
    --muted-text: #94a3b8;      
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
}

footer {
    background-color: var(--surface-color);
    padding: 0.75rem 1.5rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    user-select: none;
    -webkit-user-select: none;
}

.acknowledgement {
    font-size: 0.7rem;
    color: var(--muted-text);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .acknowledgement {
        display: none; /* Hide on small screens to save space */
    }
    
    footer {
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
        justify-content: center;
    }

    .controls {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }

    button {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        flex: 1;
    }

    .stats {
        display: none; /* Hide stats on very small screens or make it compact */
    }
}

.controls { 
    display: flex; 
    gap: 0.75rem; 
    align-items: center; 
}

button {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-weight: 500;
    font-size: 0.8rem;
    white-space: nowrap;
}

button:hover { 
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.02);
}

button.primary { 
    background: transparent; 
    color: var(--primary-color); 
    border-color: var(--primary-color);
}

button.primary:hover { 
    background: rgba(252, 165, 165, 0.1); 
    border-color: var(--primary-color);
}

.slider-group { 
    display: flex; 
    align-items: center; 
    gap: 0.5rem; 
    font-size: 0.75rem; 
    color: #94a3b8;
}

input[type=range] {
    cursor: pointer;
    accent-color: var(--primary-color);
}

main { 
    flex: 1; 
    position: relative; 
    cursor: crosshair; 
    background-image: 
        radial-gradient(circle at 1px 1px, var(--border-color) 1px, transparent 0);
    background-size: 40px 40px;
}

canvas { 
    display: block; 
    width: 100%; 
    height: 100%; 
}

.bio-card {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(241, 245, 249, 0.95); /* Solid greyish-blue */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1; /* Darker grey border */
    max-width: 450px;
    width: 85%;
    z-index: 5;
    text-align: left;
    cursor: default; /* Reset cursor from crosshair */
}

@media (max-width: 480px) {
    .bio-card {
        padding: 1.5rem;
        border-radius: 16px;
        width: 80%; /* Slightly narrower relative to screen for better framing */
    }

    .bio-card h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .bio-card p, .bio-card li {
        font-size: 0.85rem;
        line-height: 1.4;
    }

    .bio-card li {
        margin-bottom: 0.5rem;
    }
}

.bio-card h2 {
    margin-top: 0;
    color: #000000; /* Black header */
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.bio-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bio-card li {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--text-color);
}

.bio-card li strong {
    color: var(--text-color);
    font-weight: 500;
}

.stats { 
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.75rem; 
    color: var(--text-color);
    background: rgba(0,0,0,0.05);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}