body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(to right, #74ebd5, #ACB6E5);
    font-family: 'Arial', sans-serif;
    color: #333;
}

.game-wrapper {
    width: 90%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

h1 {
    font-size: 28px;
    color: #2a2a72;
    margin-bottom: 10px;
}

.description {
    font-size: 18px;
    text-align: center;
    color: #444;
    margin-bottom: 20px;
    line-height: 1.5;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#puzzle-container {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    border: 2px solid #333;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.8);
}

.tile {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #78C2AD;
    color: white;
    font-size: calc(10px + 1vmin);
    user-select: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.tile:hover {
    background-color: #66a19d;
    transform: scale(1.1);
}

button {
    padding: 10px 20px;
    font-size: calc(10px + 1vmin);
    cursor: pointer;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background-color 0.2s;
}

button:hover {
    background-color: #555;
}
