* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

html,
body {
    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(255, 196, 110, 0.9),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(255, 92, 130, 0.85),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 90%,
            rgba(255, 145, 85, 0.8),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #FF6B35 0%,
            #FF4F6D 38%,
            #E83E72 68%,
            #C92F5B 100%
        ) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.game-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
}

#game-board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    gap: 4px;
}

.candy {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    user-select: none;
    transition: transform 0.15s ease;
    box-shadow: inset 0 -3px 0 rgba(0,0,0,0.2);
}

.candy.selected {
    transform: scale(1.12);
    box-shadow: 0 0 0 3px #fff;
}

/* 糖果颜色 */
.candy-1 { background:#ffd147; color:#fff; }
.candy-2 { background:#ff5e88; color:#fff; }
.candy-3 { background:#42c9ff; color:#fff; }
.candy-4 { background:#82e870; color:#fff; }
.candy-5 { background:#b87dff; color:#fff; }

.game-footer {
    margin-top: 20px;
    text-align: center;
}

button {
    padding: 10px 24px;
    border: none;
    border-radius: 10px;
    background:#ff477e;
    color:white;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

button:hover {
    background:#e0356a;
}

.modal {
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.7);
    display:flex;
    justify-content:center;
    align-items:center;
}

.modal-content {
    background:#fff;
    padding:32px;
    border-radius:16px;
    text-align:center;
}

.hidden {
    display: none !important;
}
