:root {
    --cor-principal: #4e007a;
    --cor-secundaria: #ffffff;
    --cor-claro: #c9a0ff;
    --cor-escuro: #2e004a;
    --cor-gradiente: linear-gradient(135deg, #7b33ff 30%, #4e007a 100%);

    --pattern-roxo-suave:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(255, 255, 255, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0%, transparent 25%),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 70%, rgba(255, 255, 255, 0.06) 0%, transparent 30%);
}

body {
    background: linear-gradient(to bottom, var(--cor-secundaria) 70%, var(--cor-claro) 100%);
    color: var(--cor-escuro);
    font-family: Arial, sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    background: var(--cor-principal);
    padding: 80px 30px 30px 30px;
    text-align: right;
    position: relative;
    overflow: hidden;
    color: var(--cor-secundaria);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: auto;
    animation: fadeIn 1.5s ease-in-out, floatText 3s infinite alternate 1.5s;
}

.logo a {
    text-decoration: none;
    color: var(--cor-secundaria);
}

.logo a:hover {
    color: #d1b3ff;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.animated-title {
    font-size: 2.5rem;
    font-weight: bold;
    animation: fadeIn 1.5s ease-in-out, floatText 3s infinite alternate;
    color: var(--cor-principal);
}

.animated-subtitle {
    font-size: 1.2rem;
    margin-top: 10px;
    animation: fadeIn 2s ease-in-out;
    color: var(--cor-escuro);
}

.fases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.fase-card {
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--cor-secundaria);
    text-align: center;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.fase-facil { background: #28a745; border: gray 2px solid; }
.fase-medio { background: #ffc107; border: gray 2px solid; }
.fase-dificil { background: #fd7e14; border: gray 2px solid; }
.fase-extremo { background: #dc3545; border: gray 2px solid; }

.fase-card:hover {
    transform: scale(1.1);
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.locked {
    background-color: gray;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .fases-grid {
        grid-template-columns: 1fr;
    }

    .fase-card {
        width: 100%;
        font-size: 16px;
        padding: 10px;
    }

    .logo {
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .container {
        padding: 10px;
    }

    .animated-title {
        font-size: 2rem;
    }

    .animated-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .animated-title {
        font-size: 1.8rem;
    }

    .animated-subtitle {
        font-size: 0.9rem;
    }

    .fase-card {
        font-size: 14px;
        padding: 8px;
    }
}

footer {
    width: 100%;
    text-align: center;
    background: var(--cor-principal);
    color: var(--cor-secundaria);
    padding: 30px 0;
    position: relative;
    overflow: hidden;
}

header::before,
footer::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 25% 30%, rgba(201, 160, 255, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 75% 70%, rgba(123, 51, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
    animation: backgroundMove 20s linear infinite;
    z-index: 0;
}

header > *,
footer > * {
    position: relative;
    z-index: 1;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(10%, 10%) rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes floatText {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}