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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Fundo de estrelas animado */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
}

@keyframes sparkle {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}

/* Sistema de páginas */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page.active {
    opacity: 1;
    visibility: visible;
}

/* Página de Boas-Vindas */
.welcome-container {
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient 3s ease infinite;
    line-height: 1.2;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.sparkle {
    display: inline-block;
    animation: sparkleRotate 2s ease-in-out infinite;
}

@keyframes sparkleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

.welcome-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.welcome-question {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #ffeaa7;
}

.enter-button {
    position: relative;
    background: linear-gradient(45deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.enter-button:hover .button-glow {
    left: 100%;
}

/* Página de Expressão */
.expression-container {
    max-width: 1000px;
    padding: 2rem;
    width: 100%;
    overflow-y: auto;
    max-height: 100vh;
}

.expression-header {
    text-align: center;
    margin-bottom: 3rem;
}

.expression-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expression-header p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Paleta de Cores */
.color-palette {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid transparent;
}

.color-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

.color-option.selected {
    border-color: #ffeaa7;
    background: rgba(255, 234, 167, 0.1);
    transform: translateY(-5px) scale(1.05);
}

.color-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.color-option:hover .color-circle {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transform: scale(1.1);
}

.color-option span {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

/* Seletor de Brilho */
.brightness-selector {
    margin-bottom: 3rem;
    text-align: center;
}

.brightness-selector label {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #ffeaa7;
}

.brightness-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.brightness-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-width: 80px;
}

.brightness-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.brightness-option.selected {
    border-color: #ffeaa7;
    background: rgba(255, 234, 167, 0.1);
    transform: translateY(-3px) scale(1.05);
}

.brightness-option .star {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.brightness-option span {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Campo de Palavra */
.word-input {
    margin-bottom: 3rem;
    text-align: center;
}

.word-input label {
    display: block;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #dda0dd;
}

.word-input input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: white;
    text-align: center;
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.word-input input:focus {
    outline: none;
    border-color: #dda0dd;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(221, 160, 221, 0.3);
}

.word-input input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Botão de Expressar */
.express-button {
    position: relative;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    display: block;
    margin: 0 auto 3rem;
}

.express-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.express-button:not(:disabled):hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* Visualização Coletiva */
.collective-visualization {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.collective-visualization h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #96ceb4, #ffeaa7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stars-container {
    min-height: 200px;
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 0.5rem;
}

.expression-star {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    position: relative;
    animation: twinkle 2s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expression-star:hover {
    transform: scale(1.5);
    z-index: 10;
}

.expression-star::before {
    content: attr(data-word);
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 10px;
    font-size: 0.7rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.expression-star:hover::before {
    opacity: 1;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.stats {
    font-size: 1rem;
    opacity: 0.8;
    color: #96ceb4;
}

/* Responsividade */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .color-palette {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }
    
    .brightness-options {
        gap: 0.5rem;
    }
    
    .brightness-option {
        min-width: 60px;
        padding: 0.8rem;
    }
    
    .expression-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .color-palette {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .brightness-options {
        flex-direction: column;
        align-items: center;
    }
}

