/* Importação de fontes: Comic Neue para texto e Noto Color Emoji para os ícones */
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Noto+Color+Emoji&display=swap');

:root { 
    --primary: #ff6b6b; 
    --secondary: #48dbfb; 
    --accent: #ffed3b; 
    /* Variável de fonte misturando texto infantil + emojis do Google */
    --font-infantil: "Comic Neue", "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Noto Color Emoji", cursive;
}

* { 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
    margin: 0; 
    padding: 0; 
    /* O segredo: colocar a Noto Color Emoji na lista de fallback */
    font-family: "Comic Neue", "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Noto Color Emoji", cursive !important;
}

body, html { 
    height: 100vh; 
    width: 100vw; 
    background: #fff; 
    overflow: hidden; 
    touch-action: none; 
    font-family: var(--font-infantil); 
}

/* Força emojis bonitos especificamente nos ícones do desktop */
figure div { 
    font-family: "Noto Color Emoji", sans-serif !important;
    font-size: clamp(4rem, 18vw, 7.5rem); 
    filter: drop-shadow(0 4px 4px rgba(0,0,0,0.1)); 
}

/* Garante que botões e entradas de texto sigam a regra */
button, input, textarea, select, figcaption, nav, .dudu-window {
    font-family: var(--font-infantil) !important;
}

#wallpaper { 
    position: fixed; 
    inset: 0; 
    z-index: 0; 
    object-fit: cover; 
}

#desktop { 
    position: relative; 
    z-index: 1; 
    height: 100%; 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    padding: 10px; 
    gap: 2vh; 
}

header h1 { 
    font-size: clamp(2.5rem, 10vh, 5.5rem); 
    color: var(--primary); 
    text-shadow: 2px 2px 0 var(--accent); 
    text-align: center; 
    line-height: 1; 
    max-width: 90vw; 
    font-weight: bold;
}

#icons { 
    display: flex; 
    flex-wrap: wrap; 
    gap: clamp(15px, 4vw, 40px); 
    justify-content: center; 
    align-content: center; 
    width: 100%; 
    max-width: 1100px; 
}

figure { 
    width: clamp(100px, 25vw, 180px); 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    cursor: pointer; 
}

figcaption { 
    font-weight: bold; 
    color: #444; 
    font-size: clamp(0.7rem, 2.5vw, 1.1rem); 
    text-transform: uppercase; 
    background: #fff; 
    padding: 5px 12px; 
    border-radius: 12px; 
    box-shadow: 0 3px 6px rgba(0,0,0,0.1); 
}

#window-layer { 
    position: fixed; 
    inset: 0; 
    z-index: 1000; 
    pointer-events: none; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 10px; 
}

.dudu-window { 
    pointer-events: auto; 
    width: 95%; 
    max-width: 480px; 
    max-height: 90vh; 
    background: white; 
    border: 5px solid var(--secondary); 
    border-radius: 25px; 
    display: flex; 
    flex-direction: column; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

nav { 
    background: var(--secondary); 
    padding: 8px 15px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    color: white; 
    flex-shrink: 0; 
    font-weight: bold;
}

.win-content { 
    display: flex; 
    flex-direction: column; 
    overflow-y: auto; 
    position: relative;
    padding: 10px;
}

.close-btn { 
    background: var(--primary); 
    border: 2px solid white; 
    color: white; 
    border-radius: 50%; 
    width: 28px; 
    height: 28px; 
    cursor: pointer; 
    font-weight: bold; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-click { pointer-events: none !important; }