body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 50%, #F0E68C 100%);
    font-family: 'Arial', sans-serif;
    color: #2F4F2F;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    color: #8B4513;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 2.5em;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.score, .shots, .accuracy {
    background: linear-gradient(145deg, #DAA520, #B8860B);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid #8B4513;
}

main {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.game-area {
    flex: 1;
    position: relative;
}

#game-canvas {
    background: linear-gradient(180deg, #87CEEB 0%, #98FB98 30%, #F0E68C 70%, #8B4513 100%);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 4px solid #8B4513;
    display: block;
    margin: 0 auto;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.control-group label {
    font-weight: bold;
    color: #2F4F2F;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

input[type="range"] {
    width: 150px;
    height: 8px;
    border-radius: 4px;
    background: #DAA520;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8B4513;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.shoot-btn, .reset-btn {
    background: linear-gradient(145deg, #228B22, #006400);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.shoot-btn:hover {
    background: linear-gradient(145deg, #32CD32, #228B22);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.reset-btn {
    background: linear-gradient(145deg, #DC143C, #B22222);
}

.reset-btn:hover {
    background: linear-gradient(145deg, #FF6347, #DC143C);
}

.wind-indicator {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wind-text {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2F4F2F;
}

.wind-bar {
    width: 200px;
    height: 8px;
    background: #ddd;
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.wind-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6347, #FFD700, #32CD32);
    transition: width 0.5s ease;
}

.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.target-info h3, .achievements h3, .instructions h3 {
    color: #8B4513;
    margin-bottom: 15px;
    text-align: center;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-weight: bold;
}

.achievement-item {
    background: rgba(218, 165, 32, 0.1);
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    border-left: 4px solid #DAA520;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    background: rgba(34, 139, 34, 0.1);
    border-left-color: #228B22;
}

.achievement-item.unlocked .achievement-name {
    color: #228B22;
    font-weight: bold;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.4;
}

footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-style: italic;
}

/* Responsive design */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    #game-canvas {
        width: 100%;
        max-width: 100%;
        height: 400px;
    }

    .controls {
        flex-direction: column;
        gap: 15px;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    h1 {
        font-size: 2em;
    }
}

/* Target hit animation */
@keyframes targetHit {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.target-hit {
    animation: targetHit 0.5s ease;
}

/* Arrow trail effect */
.arrow-trail {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(139, 69, 19, 0.8);
    border-radius: 50%;
    pointer-events: none;
}