* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-image: url("pictures/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    margin-top: 120px; 
}

/* بخش اطلاعات بازی */
.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hearts {
    display: flex;
    gap: 10px;
}

.heart {
    font-size: 2rem;
    color: #ff4d4d;
    transition: all 0.3s ease;
}

.heart.lost {
    color: #666;
    transform: scale(0.8);
}

.score {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.stars {
    display: flex;
    gap: 5px;
    align-items: center;
}

.star {
    font-size: 1.8rem;
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.golden-star {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

.time-info {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 8px;
}

/* بخش پیشرفت بازی */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.progress-circle {
    position: relative;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 12;
}

.progress-bar {
    fill: none;
    stroke: #4CAF50;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.5s ease;
    stroke-dasharray: 339.292; /* 2 * π * r */
    stroke-dashoffset: 339.292; /* مقدار اولیه (خالی) */
}

.progress-text {
    font-size: 14px;
    font-weight: bold;
    fill: #333;
    transform: rotate(90deg);
    transform-origin: center;
}

.progress-level {
    font-size: 12px;
    fill: #666;
    transform: rotate(90deg);
    transform-origin: center;
}

.progress-info {
    text-align: right;
    flex: 1;
}

.current-phase {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.completed-phases {
    font-size: 1rem;
    color: #666;
}

/* بخش اصلی بازی */
.game-area {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 30px;
}

.map-container {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    height: 500px;
}

.map-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

/* نقشه ایران */
.iran-map {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

/* بخش سوال */
.question-container {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    backdrop-filter: blur(10px);
    height: 500px;
}

.question-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    color: #333;
}

.question-area {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
    overflow: hidden;
}

.question-welcome {
    text-align: center;
    padding: 20px;
}

.question-full {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.selected-province {
    width: 90%;
    height: 90%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    padding: 20px;
    position: relative;
}

.selected-province h3 {
    font-size: 2.5rem;
    margin: 20px 0;
    color: #000;
}

/* تصویر نقشه */
.iran-map-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
}

/* نقاط قابل کلیک استان‌ها */
.province-point {
    position: absolute;
    width: 16px; 
    height: 16px; 
    background: rgba(128, 128, 128, 0.6); 
    border: 2px solid rgba(211, 209, 209, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.425);
    z-index: 10;
    backdrop-filter: blur(5px); 
}

.province-point.active {
    background: rgba(128, 128, 128, 0.7); 
    cursor: pointer;
}

.province-point:not(.active) {
    background: rgba(128, 128, 128, 0.4); 
    cursor: not-allowed;
}

.province-point:hover {
    transform: translate(-50%, -50%) scale(1.2); 
    box-shadow: 0 4px 12px rgba(128, 128, 128, 0.5);
    z-index: 20;
}

/* حالت‌های مختلف نقاط */
.province-point.correct {
    background: rgba(76, 175, 80, 0.9); /* سبز برای پاسخ صحیح */
    border-color: #4CAF50;
    z-index: 100;
}

.province-point.wrong {
    background: rgba(244, 67, 54, 0.9); /* قرمز برای پاسخ غلط */
    border-color: #f44336;
    z-index: 100;
}

.province-point.selected {
    background: rgba(255, 193, 7, 0.9); /* زرد برای استان انتخاب شده */
    border-color: #FFC107;
    z-index: 100;
}

/* انیمیشن پالس سبز برای نقطه صحیح */
@keyframes pulse-green {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
        transform: translate(-50%, -50%) scale(1.3);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* انیمیشن پالس طلایی برای پاسخ صحیح */
@keyframes pulse-gold {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
        transform: translate(-50%, -50%) scale(1.3);
    }
    50% { 
        box-shadow: 0 0 0 10px rgb(211, 182, 18);
        transform: translate(-50%, -50%) scale(1.5);
    }
}

/* انیمیشن تکان خوردن برای پاسخ غلط */
@keyframes shake {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    25% { 
        transform: translate(-50%, -50%) rotate(-5deg); 
    }
    75% { 
        transform: translate(-50%, -50%) rotate(5deg); 
    }
}

.province-point.correct.answered {
    background: rgba(255, 215, 0, 0.9); /* زرد درخشان برای پاسخ صحیح */
    border-color: #ffd700;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    animation: pulse-gold 1s infinite;
}

.province-point.wrong.answered {
    background: rgba(244, 67, 54, 0.9); /* قرمز برای پاسخ غلط */
    border-color: #f44336;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.8);
    animation: shake 0.5s ease-in-out;
}

@keyframes pulse-gold {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(255, 217, 0, 0.854);
    }
}

/* تصویر استان در باکس سوال */
.province-image-wrapper-full {
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.province-shape-full {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

/* برای حالت‌های مختلف بازی */
.game-phase-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* شمارشگر پاسخ‌های صحیح */
.progress-counter {
    font-size: 1.1rem;
    font-weight: bold;
    color: #4CAF50;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(76, 175, 80, 0.3);
}

/* استایل‌های برای قلب‌های شکسته */
.heart.lost {
    opacity: 0.3;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

/* استایل برای اعداد طلایی */
.golden-text {
    color: #FFD700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
    font-weight: bold !important;
}

.score-value {
    color: #FFD700 !important;
    font-weight: bold !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}

.star-count {
    color: #FFD700 !important;
    font-weight: bold !important;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5) !important;
    margin-right: 5px;
    font-size: 1.5rem;
}

/* انیمیشن برای بازگشت قلب‌ها */
@keyframes heartRestore {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.heart.restored {
    animation: heartRestore 0.5s ease-out;
}

/* بخش کنترل‌ها */
.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

button {
    padding: 12px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}

#start-btn {
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
}

#start-btn.playing {
    background: linear-gradient(to right, #ff9800, #f57c00);
}

#start-btn.game-over {
    background: linear-gradient(to right, #FF6B6B, #C62828);
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

#guide-btn {
    background: linear-gradient(to right, #2196F3, #1976D2);
    color: white;
}

#practice-btn {
    background: linear-gradient(to right, #9C27B0, #7B1FA2);
    color: white;
}

button:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

button:active {
    transform: translateY(1px);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* پیام‌های بازی - حالت تمام صفحه */
.message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    flex-direction: column;
}

.message.show {
    opacity: 1;
    visibility: visible;
}

.message.success {
    background: rgba(76, 175, 80, 0.95);
}

.message.error {
    background: rgba(244, 67, 54, 0.95);
}

.message.game-over {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message.level-up {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.message.game-finished {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 80%;
    animation: messageAppear 0.3s ease-out;
}

@keyframes messageAppear {
    0% {
        transform: scale(0.2) translateY(50px);
        opacity: 0;
    }
    100% {
        transform: scale(0.5) translateY(0);
        opacity: 1;
    }
}

/* پنجره پاپ‌آپ راهنما */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 20px;
    width: 500px;
    margin: 50px auto;
    border-radius: 15px;
    text-align: right;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.close {
    position: absolute;
    left: 15px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.close:hover {
    color: red;
}

/* افکت‌های بصری */
.effect {
    position: fixed;
    pointer-events: none;
    z-index: 1000;
    animation: floatUp 1.5s ease-out forwards;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

.star-effect {
    color: #FFD700;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.heart-effect {
    font-size: 3rem;
    color: #ff4d4d;
}

.broken-heart-effect {
    font-size: 3rem;
    color: #666;
    animation: breakHeart 1s ease-out forwards;
}

@keyframes breakHeart {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.5) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(0.5) rotate(360deg);
        opacity: 0;
    }
}

.pulse {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* نمایشگر تایمر */
.timer-display {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.timer-display.warning {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.15);
    animation: pulse 1s infinite;
    border-color: rgba(255, 68, 68, 0.3);
}

/* انیمیشن جام */
@keyframes trophyBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    40% {
        transform: translate(-50%, -50%) scale(1.3);
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* انیمیشن برای ستاره‌های رنگی */
.star-effect {
    font-size: 3rem;
    text-shadow: 0 0 10px currentColor;
}

/* بخش مراحل بازی */
.phases-container {
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.phases-title {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.phase-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.phase-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.phase-card.active {
    border-color: #4CAF50;
    background: linear-gradient(to right, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    animation: pulse-active 2s infinite;
}

.phase-card.completed {
    border-color: #2196F3;
    background: linear-gradient(to right, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    opacity: 1 !important;
    cursor: pointer !important;
}

.phase-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

@keyframes pulse-active {
    0%, 100% {
        box-shadow: 0 3px 10px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 3px 15px rgba(76, 175, 80, 0.5);
    }
}

.phase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.phase-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background: #e0e0e0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-feature-settings: "ss01";
    font-variant-numeric: persian;
}

.phase-card.active .phase-number {
    background: #4CAF50;
    color: white;
}

.phase-card.completed .phase-number {
    background: #2196F3;
    color: white;
}

.phase-status {
    font-size: 0.8rem;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: bold;
}

.phase-status.completed {
    background: #4CAF50;
    color: white;
}

.phase-status.in-progress {
    background: #FF9800;
    color: white;
}

.phase-status.locked {
    background: #757575;
    color: white;
}

.phase-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.phase-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
}

.phase-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.level-indicator {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    font-feature-settings: "ss01";
    font-variant-numeric: persian;
}

.level-indicator.completed {
    background: #4CAF50;
}

.level-indicator.current {
    background: #FF9800;
}

.level-indicator.locked {
    background: #e0e0e0;
    color: #666;
}

.phase-card.unlocked {
    border-color: #2196F3;
    background: linear-gradient(to right, rgba(33, 150, 243, 0.1), rgba(33, 150, 243, 0.05));
    opacity: 1 !important;
    cursor: pointer !important;
}

.phase-status.unlocked {
    background: #2196F3;
    color: white;
}

/* استایل‌های سوالات */
.question-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.question-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.question-image {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.question-hint {
    font-size: 1rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* استایل برای حالت تمرین */
.practice-mode .progress-container {
    background: linear-gradient(to right, rgba(156, 39, 176, 0.1), rgba(123, 31, 162, 0.05));
    border: 2px solid #9C27B0;
}

.practice-mode .progress-bar {
    stroke: #9C27B0;
}

.practice-mode .heart {
    color: #9C27B0 !important;
}

/* انیمیشن برای پر شدن دایره پیشرفت */
@keyframes fillProgress {
    0% {
        stroke-dashoffset: 339.292;
    }
    100% {
        stroke-dashoffset: 0;
    }
}
/* ========== استایل‌های فوتر جدید ========== */
.game-footer {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    border-top: 3px solid #667eea;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    text-align: right;
}

.footer-name {
    font-size: 1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.footer-email {
    font-size: .87rem;
    color: #666;
    margin-bottom: 5px;
    direction: ltr;
    text-align: left;
}
a {
    text-decoration: none;
}

.footer-goal {
    font-size: 0.85rem;
    color: #764ba2;
    margin-top: 5px;
}

.footer-coffee {
    text-align: center;
}

.coffee-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #FFDD00, #FFB800);
    color: #3b2f2f;
    padding: 12px 25px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.coffee-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 184, 0, 0.3);
    background: linear-gradient(135deg, #FFE44D, #FFCC00);
}

.coffee-icon {
    font-size: 1.3rem;
}

.footer-copyright {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    color: #888;
}

/* استایل‌های واکنش‌گرا برای فوتر */
@media (max-width: 768px) {
    .game-footer {
        padding: 15px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-email {
        text-align: center;
    }
    
    .coffee-link {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .game-footer {
        padding: 12px 15px;
    }
    
    .footer-name {
        font-size: 0.85rem;
    }
    
    .footer-email {
        font-size: 0.75rem;
    }
    
    .coffee-link {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}
/* افکت درخشش برای ستاره‌ها وقتی کاربر امتیاز می‌گیرد */
.star.pulse-effect {
    animation: starGlow 0.5s ease-in-out;
}

@keyframes starGlow {
    0%, 100% { 
        transform: scale(1);
        color: #FFD700;
    }
    50% { 
        transform: scale(1.3);
        color: #FFEB3B;
        text-shadow: 0 0 15px rgba(255, 235, 59, 0.8);
    }
}

/* زمان‌بندی حالت خطر */
.time-info.warning {
    color: #ff4444;
    animation: pulse 1s infinite;
}

/* استایل برای نمایشگر اعداد فارسی */
.score-value, .time-value, .progress-text, .progress-level,
.phase-number, .level-indicator {
    font-feature-settings: "ss01";
    font-variant-numeric: persian;
}

/* انیمیشن برای ظاهر شدن محتوا */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.info-container:hover .info-content {
    animation: slideInFromLeft 0.3s ease-out;
}

/* استایل برای متن‌های طلایی */
.golden-score {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-weight: bold;
    animation: golden-glow 2s infinite alternate;
}

@keyframes golden-glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.5);
    }
}

/* استایل‌های واکنش‌گرا */
@media (max-width: 768px) {
    .game-info {
        flex-direction: column;
        gap: 15px;
        padding: 10px 15px;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .phases-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-wrap: wrap;
    }
    
    .phase-card {
        padding: 12px;
    }
    
    .timer-display {
        font-size: 1.1rem;
        padding: 6px 12px;
    }
    
    .message {
        font-size: 1.8rem;
    }
    
    .message-content {
        padding: 20px;
    }
    
    button {
        min-width: 120px;
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .info-container {
        bottom: 15px;
        left: 15px;
    }
    
    .info-circle {
        width: 50px;
        height: 50px;
    }
    
    .info-circle span {
        font-size: 1.3rem;
    }
    
    .info-container:hover .info-slide {
        width: 250px;
    }
    
    .info-content {
        padding: 15px;
    }
    
    .info-content h3 {
        font-size: 1.1rem;
    }
    
    .info-content p {
        font-size: 0.8rem;
    }
    
    .game-area {
        flex-direction: column;
    }
    
    .map-container, .question-container {
        min-width: 100%;
        height: 400px;
    }
    
    .selected-province h3 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .info-container {
        bottom: 10px;
        left: 10px;
    }
    
    .info-circle {
        width: 45px;
        height: 45px;
    }
    
    .info-container:hover .info-slide {
        width: 200px;
    }
    
    .info-content h3 {
        font-size: 1rem;
    }
    
    .info-content p {
        font-size: 0.75rem;
    }
    
    .selected-province h3 {
        font-size: 1.8rem;
    }
    
    .stars {
        font-size: 0.9rem;
    }
    
    .star {
        font-size: 1.5rem;
    }
    
    .game-phase-indicator {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
}

/* استایل برای تصویر شکل استان در مرحله دوم */
.game-phase-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

/* ========== استایل‌های جدید برای مودال‌ها ========== */

/* استایل‌های مودال انتخاب سطح */
.level-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.level-selection-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    text-align: right;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.level-selection-content h3 {
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.5rem;
}

.level-selection-content .phase-description {
    color: #666;
    text-align: center;
    margin-bottom: 25px;
    font-size: 1rem;
}

.level-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.level-option {
    background: #f5f5f5;
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.level-option.available {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.level-option.available:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
    border-color: #FFD700;
}

.level-option.completed {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
}

.level-option.locked {
    background: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.level-number {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.level-time {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.level-status {
    font-size: 0.9rem;
    opacity: 0.9;
}

.level-selection-buttons {
    text-align: center;
    margin-top: 25px;
}

.cancel-btn {
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

/* استایل‌های مودال تأیید مرحله بعد */
.confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.confirmation-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.confirmation-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.confirmation-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.next-phase-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    text-align: right;
    border-right: 5px solid #667eea;
}

.next-phase-info h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.phase-levels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.level-badge {
    background: #667eea;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
}

.confirmation-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.btn-yes, .btn-later {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.btn-yes {
    background: linear-gradient(to right, #4CAF50, #45a049);
    color: white;
}

.btn-later {
    background: linear-gradient(to right, #9e9e9e, #757575);
    color: white;
}

.btn-yes:hover {
    background: linear-gradient(to right, #45a049, #388e3c);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-later:hover {
    background: linear-gradient(to right, #757575, #616161);
    transform: translateY(-2px);
}

/* استایل‌های واکنش‌گرا برای مودال‌ها */
@media (max-width: 768px) {
    .level-selection-content,
    .confirmation-content {
        padding: 20px;
        margin: 10px;
    }
    
    .level-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .confirmation-buttons {
        flex-direction: column;
    }
    
    .btn-yes, .btn-later {
        min-width: 100%;
    }
    
    .phase-levels {
        flex-direction: column;
        align-items: center;
    }
    
    .level-badge {
        width: 100%;
        text-align: center;
    }
}





/* نقاط نواحی آب و هوایی */
.climate-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(76, 175, 80, 0.7);
    border: 1.5px solid white;
    border-radius: 12px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0rem;
    backdrop-filter: blur(3px);
    z-index: 10;
}

.climate-point:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(76, 175, 80, 0.9);
}

.climate-point.correct {
    background: #4CAF50;
    animation: correctPulse 0.5s;
    box-shadow: 0 0 20px #4CAF50;
}

.climate-point.wrong {
    background: #f44336;
    animation: shake 0.3s;
    box-shadow: 0 0 20px #f44336;
}

@keyframes correctPulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
    100% { transform: translate(-50%, -50%) scale(1); }
}


/* استایل برای ناحیه انتخاب شده در مرحله آب و هوا */
.climate-point.selected-climate {
    background: #FFC107 !important;
    border: 3px solid white;
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.8);
    animation: pulse-gold 0.5s infinite;
}

/* استایل راهنمای تعداد پاسخ‌ها */
.climate-hint {
    font-size: 1rem;
    line-height: 1.5;
}

.selected-count-display {
    font-size: 1.1rem;
    font-weight: bold;
}

.selected-count-display span {
    color: #4CAF50;
    font-size: 1.3rem;
}






/* ========== استایل‌های موبایل و orientation ========== */

/* پیام چرخش دستگاه به حالت افقی */
.orientation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

.orientation-overlay-content {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeInUp 0.5s ease;
}

.orientation-rotate-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: rotatePhone 1.5s ease-in-out infinite;
}

.orientation-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.orientation-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.orientation-subtext {
    font-size: 0.9rem;
    margin-top: 20px;
    opacity: 0.7;
}

@keyframes rotatePhone {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(90deg); }
    100% { transform: rotate(0deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل‌های واکنش‌گرا برای موبایل (حالت افقی) */
@media (orientation: landscape) and (max-width: 900px) {
    body {
        padding: 10px;
    }
    
    .container {
        margin-top: 100px;
    }
    
    .game-info {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .heart {
        font-size: 1.2rem;
    }
    
    .score {
        font-size: 1rem;
    }
    
    .star {
        font-size: 1.2rem;
    }
    
    .time-info {
        font-size: 0.9rem;
    }
    
    .map-container, .question-container {
        height: 350px;
        min-width: 200px;
    }
    
    .selected-province h3 {
        font-size: 1.3rem;
    }
    
    .game-phase-indicator {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    
    .phase-card .phase-title {
        font-size: 0.9rem;
    }
    
    .phase-card .phase-description {
        font-size: 0.75rem;
    }
    
    button {
        padding: 8px 15px;
        font-size: 0.9rem;
        min-width: 100px;
    }
    
    .phases-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .progress-circle svg {
        width: 80px;
        height: 80px;
    }
    
    .progress-text, .progress-level {
        font-size: 10px;
    }
    
    .climate-point {
        width: 16px;
        height: 16px;
    }
    
    .province-point {
        width: 12px;
        height: 12px;
    }
}

/* برای موبایل‌های خیلی کوچک */
@media (orientation: landscape) and (max-width: 700px) {
    .map-container, .question-container {
        height: 280px;
    }
    
    .selected-province h3 {
        font-size: 1rem;
    }
    
    .game-phase-indicator {
        font-size: 0.5rem;
    }
    
    .climate-hint {
        font-size: 0.7rem;
    }
}

/* برای تبلت‌ها */
@media (orientation: landscape) and (min-width: 901px) and (max-width: 1200px) {
    .map-container, .question-container {
        height: 450px;
    }
}