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

body {
    font-family: "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.game-container {
    text-align: center;
}

h1 {
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.info {
    color: white;
    margin-bottom: 15px;
    font-size: 14px;
}

#gameCanvas {
    background: linear-gradient(180deg, #a8e6cf 0%, #dcedc1 100%);
    border: 4px solid #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: block;
    margin: 0 auto;
}

.dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 100;
    min-width: 300px;
}

.dialog.hidden {
    display: none;
}

.dialog-content p {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover {
    background: #764ba2;
    transform: scale(1.05);
}

.victory {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.5);
    z-index: 100;
}

.victory.hidden {
    display: none;
}

.victory h2 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 32px;
}
