* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    overflow: hidden;
    background: linear-gradient(to bottom, #0a0a23 0%, #1a1a3e 50%, #2d2d5f 100%);
    height: 100vh;
    position: relative;
}

/* キャンバスエリア */
#fireworksCanvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: pointer;
}

/* UI要素 */
.ui-container {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    color: white;
    font-size: 18px;
}

.controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* 自動花火ボタンのトグル状態 */
.btn.auto-active {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    color: white;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    }
}

.btn.auto-active:hover {
    background: linear-gradient(135deg, #ff5722, #e65100);
    border-color: #ff5722;
    transform: translateY(-2px);
}

/* 花火量調節スライダー */
.firework-control {
    position: absolute;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.firework-control.show {
    display: flex;
}

.control-label {
    color: white;
    font-size: 14px;
    white-space: nowrap;
}

.firework-slider {
    width: 120px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.firework-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.firework-slider::-moz-range-thumb {
    appearance: none;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

.speed-indicator {
    color: #ff6b35;
    font-size: 12px;
    font-weight: bold;
}

/* 地面のシルエット */
.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    z-index: 3;
}

.city-silhouette {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    background: #000;
    z-index: 4;
}

.building {
    position: absolute;
    bottom: 0;
    background: #000;
}
