body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #fce4ec;
    font-family: 'Arial', sans-serif;
    position: relative;
    overflow: hidden;
}

.game-container {
    text-align: center;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(244, 143, 177, 0.3);
}

h1 {
    color: #ec407a;
    margin-bottom: 20px;
    font-size: 28px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

#gameCanvas {
    background: #fff5f8;
    border: 4px solid #f48fb1;
    border-radius: 10px;
}

.game-stats {
    color: #ec407a;
    font-size: 18px;
    margin: 10px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.game-stats span {
    background: #fce4ec;
    padding: 5px 15px;
    border-radius: 15px;
    border: 2px solid #f48fb1;
}

.controls {
    margin-top: 20px;
}

#startBtn {
    background: #f48fb1;
    border: none;
    padding: 12px 25px;
    color: white;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

#startBtn:hover {
    background: #ec407a;
    transform: translateY(-2px);
}

.instructions {
    color: #ec407a;
    font-size: 14px;
    margin-top: 15px;
}

/* 添加装饰元素 */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23f48fb1" d="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z"/></svg>');
    background-size: contain;
    opacity: 0.2;
    animation: float 6s infinite;
    pointer-events: none;
}

body::before {
    top: 10%;
    left: 10%;
    animation-delay: -2s;
}

body::after {
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

/* 添加浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* 添加更多装饰元素 */
.decoration {
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

.star {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23f48fb1" d="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z"/></svg>');
    background-size: contain;
    position: absolute;
    opacity: 0.15;
    animation: twinkle 3s infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.3; }
}

.mode-selection {
    margin-bottom: 20px;
}

.mode-btn {
    background: #f8bbd0;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.mode-btn:hover {
    background: #f48fb1;
    transform: translateY(-2px);
}

.character-selection {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.character-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.character-option {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    width: 100px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.character-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.character-option img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
}

.character-option span {
    display: block;
    color: #ec407a;
    font-size: 14px;
}

.character-option.selected {
    background: #fce4ec;
    border: 2px solid #f48fb1;
}

.random-btn {
    background: #f48fb1;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.random-btn:hover {
    background: #ec407a;
    transform: translateY(-2px);
}

#player2CharacterSelection {
    border-top: 2px dashed #f48fb1;
    margin-top: 30px;
    padding-top: 30px;
} 