/* Intro Scene Styles */
.intro-scene {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.intro-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: all 0.8s ease;
}

.intro-bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.intro-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.intro-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.intro-title {
    font-size: 4rem;
    font-weight: bold;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
    letter-spacing: 2px;
    color: #FFD700;
    -webkit-text-stroke: 2px #333;
    font-family: 'Courier New', monospace;
}

.intro-start-btn {
    background: linear-gradient(45deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    border: 4px solid #FF4757;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.intro-start-btn:hover {
    background: linear-gradient(45deg, #FF4757 0%, #FF6B35 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.intro-start-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.intro-credits {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    z-index: 4;
}

.creator-text {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0 0 0.5rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-family: 'Courier New', monospace;
}

.copyright-text {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    font-family: 'Courier New', monospace;
}

/* Hide intro scene when not active */
.intro-scene:not(.active) {
    display: none;
}

/* Hide game content when intro is active */
.intro-scene.active ~ .game-header,
.intro-scene.active ~ .game-phases {
    display: none;
}

/* Weather-based Intro Background Effects */
.intro-background.weather-default {
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
}

/* Base Game Styles */
.game-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #87CEEB 0%, #98FB98 100%);
    min-height: 100vh;
    font-family: 'Courier New', monospace;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* Game background image overlay */
.game-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/lemonade-garage-sunny.png') center/contain no-repeat;
    z-index: -1;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

/* Hide background image when intro is active */
.intro-scene.active ~ .game-container::before {
    display: none;
}

/* Weather-based background image effects */
.game-container.weather-sunny .stand-scene {
    background: url('../assets/lemonade-garage-sunny.png') center/cover no-repeat;
}

.game-container.weather-hot .stand-scene {
    background: url('../assets/lemonade-garage-hot.png') center/cover no-repeat;
}

.game-container.weather-cloudy .stand-scene {
    background: url('../assets/lemonade-garage-cloud.png') center/cover no-repeat;
}

.game-container.weather-rainy .stand-scene {
    background: url('../assets/lemonade-garage-rain.png') center/cover no-repeat;
}

.game-container.weather-storm .stand-scene {
    background: url('../assets/lemonade-garage-rain.png') center/cover no-repeat;
}
