/* ゲーム固有のスタイル */

/* ゲーム要素のアニメーション */
@keyframes missionPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

@keyframes playerMove {
    from {
        transform: translateY(0px);
    }
    to {
        transform: translateY(-5px);
    }
}

/* ミッション要素 */
.mission-marker {
    animation: missionPulse 2s infinite;
}

/* プレイヤー関連 */
.player-indicator {
    animation: playerMove 1s ease-in-out infinite alternate;
}

/* 建物ハイライト */
.building-highlight {
    border: 2px solid #ffff00 !important;
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.5);
}

/* 危険エリア表示 */
.danger-zone {
    background: rgba(255, 0, 0, 0.2);
    border: 2px dashed #ff0000;
}

/* 安全エリア表示 */
.safe-zone {
    background: rgba(0, 255, 0, 0.2);
    border: 2px dashed #00ff00;
}

/* ヘルスステータス色分け */
.health-critical {
    color: #ff4444 !important;
}

.health-warning {
    color: #ffaa00 !important;
}

.health-good {
    color: #44ff44 !important;
}

/* 温度ステータス色分け */
.temp-normal {
    color: #44ff44;
}

.temp-hot {
    color: #ffaa00;
}

.temp-danger {
    color: #ff4444;
}

/* 水分ステータス色分け */
.hydration-full {
    color: #44aaff;
}

.hydration-low {
    color: #ffaa00;
}

.hydration-critical {
    color: #ff4444;
}

/* ゲームオーバー画面 */
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-over h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ff4444;
}

.game-over .reason {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
}

.game-over .restart-button {
    padding: 15px 30px;
    font-size: 18px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.game-over .restart-button:hover {
    background: #45a049;
}

/* ゲームクリア画面 */
.game-clear {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.9), rgba(255, 140, 0, 0.9));
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.game-clear h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* エフェクト */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 季節・時間帯による色調整 */
.summer-hot .ui-overlay {
    filter: sepia(10%) saturate(110%);
}

.evening .ui-overlay {
    filter: sepia(20%) hue-rotate(15deg);
}

.night .ui-overlay {
    filter: brightness(80%) contrast(120%);
}