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

:root {
    --secondary-gradient: linear-gradient(145deg, #FF69B4, #FF69B4);
    --white: #000000;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease-in-out;
}

body {
    background: url('5329113.jpg') no-repeat center center/cover;
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    line-height: 1.6;
    color: var(--white);
}

h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    animation: bounce 1.5s infinite alternate;
}

.container {
    width: 90%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game {
    width: 120%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
}

.box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 1rem;
    border: 2px solid var(--white);
    box-shadow: var(--shadow);
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: var(--white);
    background: var(--secondary-gradient);
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.box:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button {
    background-color: antiquewhite;
    font-weight: 700;
    padding: 1rem;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--white);
    border-radius: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 200px;
    margin-top: 1rem;
    background-color: #A7F1E8;
    box-shadow: var(--shadow);
    border: 2px solid var(--white);
}

button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

#msg {
    color: var(--white);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    margin-top: 1rem;
}

.msg-container {
    position: fixed;
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.hide {
    display: none;
}

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

@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 600px) {
    .box {
        font-size: 1.5rem;
    }

    button {
        font-size: 1rem;
    }

    .msg-container {
        padding: 1rem;
    }
}