body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    background-color: #faf8ef;
}

button {
    padding: 12px 30px;
    font-size: 18px;
    margin: 0 10px;
    cursor: pointer;
    background: linear-gradient(135deg, #fce19c 0%, #f4d06f 100%);
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #776e65;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

p {
    font-size: 24px;
    margin: 10px 0;
}

#grid-container {
    width: 460px;
    height: 460px;
    padding: 20px;
    background-color: #bbada0;
    border-radius: 10px;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-template-rows: repeat(4, 100px);
    gap: 20px;
}

.grid-cell {
    width: 100px;
    height: 100px;
    background-color: #ccc0b3;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #776e65;
}

#gameover {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 48px;
    padding: 20px;
    border-radius: 10px;
}


/* 大标题样式 */
h1 {
    font-size: 60px;
    margin: 0;
    text-align: center;
    color: #776e65;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    font-family: 'Press Start 2P', cursive, Arial, sans-serif;
}

/* 游戏分数和提示信息样式 */
.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.001);
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.01);
}

#score {
    font-size: 18px;
    font-weight: bold;
    color: #776e65;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#score span {
    color: #f4d06f;
    font-size: 24px;
}

/* 提示信息样式 */
p {
    font-size: 16px;
    font-weight: bold;
    color: #776e65;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#hint {
    margin-top: 10px;
    color: #f4d06f;
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { text-shadow: 0 0 10px #f4d06f; }
    50% { text-shadow: 0 0 20px #f4d06f; }
    100% { text-shadow: 0 0 10px #f4d06f; }
}