* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-color: #f0f5f5;
    padding: 20px;
}

/* 顶部信息栏 */
.top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* 星星生成的画布 */
#star-canvas {
    width: 100%;
    height: 70vh;
    background-color: #333;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

/* 星星样式 */
.star {
    position: absolute;
    font-size: 30px;
    color: #ffd700;
    cursor: pointer;
    animation: rotate 3s linear infinite;
}

/* 星星旋转动画 */
@keyframes rotate {
    0% {transform: rotate(0deg);}
    100% {transform: rotate(360deg);}
}

/* 游戏状态提示 */
.status {
    margin-top: 15px;
    font-size: 18px;
    color: #666;
    text-align: center;
}

#restart-btn {
    display: none;
    margin: 15px auto;
    padding: 8px 16px;
    cursor: pointer;
}