:root {
        --cream: #2c2724;
        --ink: #fffefc;
        --gold: #f4bd25;
    }

    * { box-sizing: border-box; }

    html, body {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
        background: var(--cream);
    }

    body {
        font-family: Georgia, "Times New Roman", serif;
        color: var(--ink);
    }

    #canvas-container {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    canvas {
        display: block;
        width: 100%;
        height: 100%;
        touch-action: none;
    }

    /* Presentación minimalista: aparece después del florecimiento. */
    #message {
        position: fixed;
        left: 50%;
        bottom: clamp(18px, 3.2vh, 34px);
        transform: translate(-50%, 18px);
        width: min(90vw, 620px);
        padding: 18px 24px;
        text-align: center;
        pointer-events: none;
        opacity: 0;
        transition: opacity 1.4s ease, transform 1.4s ease;
        color: #fffefc;
        text-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 16px rgba(0,0,0,0.3);
    }

    #message.visible {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    #message .eyebrow {
        margin: 0 0 8px;
        font-family: Arial, sans-serif;
        font-size: 10px;
        letter-spacing: .28em;
        text-transform: uppercase;
        opacity: .9;
    }

    #message h1 {
        margin: 0;
        font-size: clamp(28px, 5vw, 48px);
        font-weight: 400;
        letter-spacing: .02em;
    }

    #message p {
        margin: 9px 0 0;
        font-size: clamp(13px, 2vw, 17px);
        line-height: 1.55;
        opacity: .95;
    }

    .heart-divider {
        margin-top: 18px;
        font-size: 11px;
        letter-spacing: .2em;
        opacity: .8;
    }

    .floricienta-quote {
        margin-top: 14px !important;
        font-size: clamp(12px, 1.8vw, 15px) !important;
        font-style: italic;
        opacity: 1 !important;
        line-height: 1.4 !important;
        transition: opacity 1s ease;
    }

    .floricienta-quote.fade-out {
        opacity: 0 !important;
    }

    #lyrics-container {
        position: absolute;
        top: 8%;
        left: 5%;
        width: 90%;
        height: 25%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        pointer-events: none; /* Que no bloquee el movimiento 3D */
        z-index: 10;
    }

    .lyric-line {
        font-size: clamp(16px, 3.5vw, 24px);
        color: #fffaed;
        font-weight: 300;
        font-style: italic;
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        text-shadow: 0 2px 10px rgba(0,0,0,0.6);
        margin: 0;
    }

    .lyric-line.active {
        opacity: 1;
        transform: translateY(0);
    }

    #hint {
        position: fixed;
        top: 22px;
        left: 50%;
        transform: translateX(-50%);
        font-family: Arial, sans-serif;
        font-size: 9px;
        letter-spacing: .18em;
        text-transform: uppercase;
        opacity: .38;
        pointer-events: none;
        white-space: nowrap;
    }

    #loading {
        position: fixed;
        inset: 0;
        display: grid;
        place-items: center;
        background: var(--cream);
        z-index: 10;
        transition: opacity 1s ease, visibility 1s ease;
    }

    #loading.hidden {
        opacity: 0;
        visibility: hidden;
    }

    #loading span {
        font-family: Arial, sans-serif;
        font-size: 9px;
        letter-spacing: .25em;
        text-transform: uppercase;
        opacity: .42;
    }

    @media (max-width: 600px) {
        #message { bottom: 28px; }
        #hint { top: 14px; }
    }
    /* ============================================================
       CREADOR UI
       ============================================================ */
    #btn-create {
        position: fixed;
        top: 20px;
        right: 20px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255,255,255,0.3);
        color: #fff;
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        z-index: 100;
        font-family: "Georgia", serif;
        backdrop-filter: blur(5px);
        transition: background 0.3s;
    }
    #btn-create:hover { background: rgba(255, 255, 255, 0.2); }

    #creator-modal {
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.85);
        z-index: 200;
        display: flex;
        align-items: center;
        justify-content: center;
        font-family: sans-serif;
    }
    .creator-content {
        background: #2c2724;
        padding: 30px;
        border-radius: 12px;
        width: 90%;
        max-width: 450px;
        color: #fffaed;
        position: relative;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    .creator-content h2 { margin-top: 0; font-family: "Georgia", serif; font-weight: normal; color: #ffcc00;}
    .creator-content label { display: block; margin-top: 15px; font-size: 13px; opacity: 0.8; margin-bottom: 5px;}
    .creator-content input, .creator-content textarea {
        width: 100%;
        padding: 12px;
        background: rgba(0,0,0,0.3);
        border: 1px solid rgba(255,255,255,0.1);
        color: #fff;
        border-radius: 6px;
        box-sizing: border-box;
        font-family: inherit;
    }
    .creator-content button.main-btn {
        width: 100%;
        padding: 12px;
        margin-top: 20px;
        background: #ffcc00;
        color: #000;
        font-weight: bold;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        font-size: 16px;
        transition: opacity 0.2s;
    }
    .creator-content button.main-btn:hover { opacity: 0.9; }
    .close-btn {
        position: absolute; top: 15px; right: 15px;
        background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; opacity: 0.6;
    }
    .close-btn:hover { opacity: 1; }
    
    .btn-donate {
        padding: 8px 12px;
        border-radius: 6px;
        border: none;
        font-size: 12px;
        font-weight: bold;
        cursor: pointer;
        text-decoration: none;
        color: #fff;
        transition: transform 0.2s;
    }
    .btn-donate:hover { transform: scale(1.05); }
    .btn-donate.bmac { background: #FF813F; }
    .btn-donate.yape { background: #742384; }