body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    text-align: center;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

header {
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    color: #ffcc00;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}

.top {
    position: absolute;
    top: 10px;
    left: 10px;
}

.top img {
    height: 40px;
    padding: 5px;
    margin: 5px;
}

.game-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    width: 90%;
    max-width: 500px;
    animation: fadeIn 0.8s ease-in-out;
}

.shuffled-word {
    font-size: 32px;
    margin-bottom: 20px;
    letter-spacing: 8px;
    font-weight: bold;
    color: #ffdf6b;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

input[type="text"] {
    padding: 12px;
    font-size: 18px;
    border: 2px solid #ffcc00;
    border-radius: 8px;
    outline: none;
    width: 70%;
    margin-bottom: 15px;
    text-align: center;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: #00e1ff;
    box-shadow: 0 0 10px #00e1ff;
}

button {
    margin: 8px;
    padding: 12px 18px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffcc00, #ff8800);
    color: #222;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.3s;
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

#wordResult {
    font-size: 20px;
    font-weight: bold;
    margin-top: 15px;
}

#score {
    font-size: 22px;
    font-weight: bold;
    color: #00e1ff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .shuffled-word {
        font-size: 26px;
        letter-spacing: 6px;
    }

    input[type="text"] {
        width: 85%;
        font-size: 16px;
        padding: 10px;
    }

    button {
        padding: 10px 16px;
        font-size: 15px;
    }

    #score {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .game-section {
        padding: 20px;
    }

    .shuffled-word {
        font-size: 22px;
        letter-spacing: 4px;
    }

    input[type="text"] {
        width: 95%;
        font-size: 15px;
    }

    button {
        padding: 8px 14px;
        font-size: 14px;
    }

    #score {
        font-size: 18px;
    }
}