/* Olimp: Yıldırımın Kaderi - Game Styles */

.game-main {
    padding-top: 100px;
    min-height: 100vh;
    background: linear-gradient(to right, #ffe082, #ffecb3);
    position: relative;
    z-index: 1;
}

/* Стили для игры на главной странице */
.game-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 4rem auto;
    position: relative;
    z-index: 1;
}

.game-section .game-container {
    padding: 0;
}

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem;
}

/* Свиток интерфейс */
.scroll-container {
    background: linear-gradient(135deg, #f5e6d3 0%, #e8d5b7 100%);
    border-radius: 20px;
    padding: 2rem 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 3px solid #d4a574;
    min-height: 600px;
}

.scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 48px,
            rgba(139, 69, 19, 0.1) 48px,
            rgba(139, 69, 19, 0.1) 50px
        );
    pointer-events: none;
    opacity: 0.3;
}

.scroll-content {
    position: relative;
    z-index: 2;
}

/* Заголовок игры */
.game-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #8b4513;
}

.game-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.game-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: #6b4423;
    font-style: italic;
}

/* Статус героя */
.hero-status {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 2px solid #8b4513;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 4px solid #8b4513;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: all 0.3s ease;
}

.hero-avatar.light {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.hero-avatar.dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.avatar-glow {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.avatar-glow.active {
    opacity: 1;
    animation: glowPulse 2s infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    }
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #8b4513;
    min-width: 80px;
    font-size: 1rem;
}

.stat-bar {
    flex: 1;
    height: 24px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #8b4513;
}

.stat-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50, #8bc34a);
    transition: width 0.5s ease;
    border-radius: 10px;
}

.stat-fill.power {
    background: linear-gradient(90deg, #2196f3, #03a9f4);
}

.stat-fill.enemy {
    background: linear-gradient(90deg, #f44336, #e91e63);
}

.stat-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #8b4513;
    min-width: 50px;
    text-align: right;
    font-size: 1rem;
}

.karma-indicator {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.karma-bar {
    height: 24px;
    background: rgba(139, 69, 19, 0.2);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #8b4513;
    position: relative;
}

.karma-fill {
    height: 100%;
    transition: width 0.5s ease, background 0.5s ease;
    border-radius: 10px;
}

.karma-fill.light {
    background: linear-gradient(90deg, #ffeb3b, #ffc107);
}

.karma-fill.dark {
    background: linear-gradient(90deg, #424242, #212121);
}

.karma-value {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #8b4513;
    text-align: center;
    font-size: 0.9rem;
}

/* История */
.story-section {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 2px solid #8b4513;
    min-height: 150px;
}

.story-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5d4037;
}

.story-line {
    margin: 0;
    opacity: 0;
    animation: fadeInText 1s ease forwards;
}

@keyframes fadeInText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Боевая секция */
.battle-section {
    margin-bottom: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    border: 2px solid #8b4513;
}

.battle-info {
    margin-bottom: 1.5rem;
}

.enemy-info h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #8b4513;
    margin-bottom: 1rem;
}

.enemy-health {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.battle-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.action-btn {
    padding: 1rem;
    border: 3px solid #8b4513;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: #8b4513;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 100px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.attack {
    border-color: #f44336;
}

.action-btn.defend {
    border-color: #2196f3;
}

.action-btn.special {
    border-color: #ff9800;
}

.action-icon {
    font-size: 2rem;
}

.action-label {
    font-size: 0.9rem;
}

/* Выборы */
.choice-section {
    margin-bottom: 1rem;
}

.choice-buttons {
    display: grid;
    gap: 1rem;
}

.choice-btn {
    padding: 1.2rem 2rem;
    border: 3px solid #8b4513;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #8b4513;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.choice-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.3), transparent);
    transition: width 0.3s ease;
}

.choice-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 1);
}

.choice-btn:hover::before {
    width: 100%;
}

.choice-btn.light {
    border-color: #ffc107;
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.2), rgba(255, 193, 7, 0.2));
}

.choice-btn.dark {
    border-color: #424242;
    background: linear-gradient(135deg, rgba(66, 66, 66, 0.2), rgba(33, 33, 33, 0.2));
}

/* Эффект молнии */
.lightning-effect {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 10;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    animation: lightningFlash 0.5s ease;
}

@keyframes lightningFlash {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .game-main {
        padding-top: 80px;
    }

    .game-container {
        padding: 1rem 0.5rem;
    }

    .scroll-container {
        padding: 2rem 1rem;
        border-radius: 15px;
    }

    .game-title {
        font-size: 1.8rem;
    }

    .game-subtitle {
        font-size: 1rem;
    }

    .hero-status {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-avatar {
        margin: 0 auto;
    }

    .battle-actions {
        grid-template-columns: 1fr;
    }

    .action-btn {
        min-height: 80px;
    }

    .stat-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .stat-label {
        min-width: auto;
    }

    .stat-value {
        text-align: left;
    }

    .story-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5rem;
    }

    .scroll-container {
        padding: 1.5rem 0.8rem;
    }

    .hero-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .action-btn {
        padding: 0.8rem;
        min-height: 70px;
    }

    .choice-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

