body {
    margin: 0;
    overflow: hidden;
    font-family: 'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #FFD700 0%, #FF69B4 50%, #87CEEB 100%);
}

#game-canvas {
    display: block;
}

.scoreboard-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr) auto;
    gap: 2px;
}

.frame {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    border: 2px solid #FF69B4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.frame-10 {
    grid-template-columns: 1fr 1fr 1fr;
}

.throw-box {
    grid-row: 1;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
    border-right: 1px solid #FF69B4;
    border-bottom: 1px solid #FF69B4;
    font-weight: 600;
    color: #2E8B57;
}

.frame-10 .throw-box:last-child,
.frame .throw-box:last-child {
    border-right: none;
}

.score-box {
    grid-row: 2;
    grid-column: 1 / -1;
    text-align: center;
    font-weight: bold;
    font-size: 1rem;
    line-height: 1.5;
    color: #FF6B6B;
    background: linear-gradient(45deg, #FFEB3B, #FFF176);
}

.total-score {
    border: 2px solid #FFD700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    background: linear-gradient(45deg, #FFD700, #FFEB3B);
    color: #2E8B57;
}

.frame-header {
    text-align: center;
    font-size: 0.75rem;
    padding: 4px 0;
    color: #2E8B57;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
}

.total-header {
    text-align: center;
    font-size: 0.75rem;
    padding: 4px 0;
    color: #2E8B57;
    font-weight: 700;
    font-family: 'Fredoka One', cursive;
}

.celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-20vh) translateX(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(120vh) translateX(var(--drift)) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

@keyframes confetti-fall-left {
    0% {
        transform: translateY(-30vh) translateX(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) translateX(-100px) rotate(-360deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes confetti-fall-right {
    0% {
        transform: translateY(-25vh) translateX(0px) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(120vh) translateX(100px) rotate(360deg) scale(0.4);
        opacity: 0;
    }
}

@keyframes rainbow {
    0% { color: #2E8B57; }
    25% { color: #FF6B6B; }
    50% { color: #4ECDC4; }
    75% { color: #45B7D1; }
    100% { color: #96CEB4; }
}
